For the complete documentation index, see llms.txt. This page is also available as Markdown.

Update an order

Updates an order's status, payment status, address, notes, or invoice. Send only the fields you want to change. changed in the response lists what changed, with old and new values.

Cancelling an order with a pending invoice expires the invoice (and its Xendit payment link). Payment status can't be set by hand for Xendit orders.

put
Authorizations
api_keystringRequired

Your business's Cekat API key, from Settings → Developers & API in the Cekat dashboard (https://chat.cekat.ai/developers?section=apikeys). Available on the Business and Enterprise plans.

Path parameters
idstring · uuidRequired
Body
order_statusstring · enumOptionalPossible values:
payment_statusstring · enumOptionalPossible values:
invoice_is_sentbooleanOptional
addressstringOptional
notesstringOptional
custom_invoice_urlstring · uriOptional

Only for custom orders.

Responses
200

Order updated.

application/json
messagestringOptional
put/api/orders/{id}
PUT /api/orders/{id} HTTP/1.1
Host: api.cekat.ai
api_key: YOUR_API_KEY
Content-Type: application/json
Accept: */*
Content-Length: 51

{
  "order_status": "shipping",
  "payment_status": "paid"
}
{
  "message": "text",
  "data": {
    "id": "123e4567-e89b-12d3-a456-426614174000",
    "order_number": 1,
    "created_at": "2026-01-01T00:00:00.000Z",
    "order_status": "pending",
    "payment_method": "manual",
    "subtotal": 1,
    "discount": 1,
    "shipping_fee": 1,
    "vat": 1,
    "grand_total": 1,
    "currency": "IDR",
    "address": "text",
    "notes": "text",
    "contact_id": "123e4567-e89b-12d3-a456-426614174000",
    "conversation_id": "123e4567-e89b-12d3-a456-426614174000",
    "contact": {
      "id": "123e4567-e89b-12d3-a456-426614174000",
      "display_name": "text",
      "phone_number": "text",
      "email": "text"
    },
    "cekat_orders_products": [
      {
        "id": "123e4567-e89b-12d3-a456-426614174000",
        "product_id": "123e4567-e89b-12d3-a456-426614174000",
        "product_name": "text",
        "quantity": 1,
        "price": 1,
        "ANY_ADDITIONAL_PROPERTY": "anything"
      }
    ],
    "invoices": [
      {
        "id": "text",
        "status": "PENDING",
        "amount": 1,
        "payment_link": "text",
        "pdf_link": "text",
        "is_sent": true,
        "expiry_date": "text",
        "paid_at": "text",
        "created_at": "2026-01-01T00:00:00.000Z",
        "ANY_ADDITIONAL_PROPERTY": "anything"
      }
    ],
    "ANY_ADDITIONAL_PROPERTY": "anything"
  },
  "changed": {
    "ANY_ADDITIONAL_PROPERTY": {
      "old_value": null,
      "new_value": null
    }
  }
}

Last updated