Elmatajer · API docs
Orders

Record a customer confirmation

For WhatsApp and calling apps: report that the customer confirmed — or asked to cancel — an open order. It is written to the order's timeline and the merchant is notified; the order status itself is not changed (the merchant decides).

POSThttps://elmatajer.com/api/v1/vendor/orders/{id}/customer-response
Permission: orders.confirm

Path parameters

NameTypeRequiredDescription
idintegerYesThe order id.

Request body

NameTypeRequiredDescription
answerstringYesconfirmed or cancelled.

Request

curl -X POST "https://elmatajer.com/api/v1/vendor/orders/4904/customer-response" \
  -H "Api-Key: YOUR_API_KEY" \
  -H "Accept: application/json" \
  -H "Content-Type: application/json" \
  -d '{"answer":"confirmed"}'

Response 200

{
    "status": "ok",
    "data": {
        "recorded": true,
        "order_id": 4904,
        "answer": "confirmed"
    }
}

Once per answer per order: a repeat returns recorded: false, reason: already_recorded. A closed order returns 409 order_not_open.