Create an order
Creates an order and its invoice. Identify the customer with conversation_id, contact_id or phone_number; if no contact matches, a new one is created from phone_number and display_name.
For each product, send a product_id from your catalog (its catalog name and price are used) or a product_name and price for a custom item. The grand total (subtotal − discount + shipping fee + VAT) must be between 1 and 9,999,999,999.
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.
6281234567890Required with phone_number when the contact is new.
Required for manual. A payment bank account set up in Cekat.
Required for custom.
000Optional order ID (UUID v4) to use instead of a generated one.
Optional order date, for importing past orders.
Order and invoice created.
A required field is missing, or a value is out of range.
The API key is missing or invalid.
The bank account was not found.
Rate limit exceeded. Wait and retry.
POST /api/orders HTTP/1.1
Host: api.cekat.ai
api_key: YOUR_API_KEY
Content-Type: application/json
Accept: */*
Content-Length: 327
{
"payment_method": "manual",
"bank_account_number": "1234567890",
"phone_number": "6281234567890",
"display_name": "Jane Doe",
"orders_products": [
{
"product_id": "8f7e6d5c-4b3a-4291-8e7d-6c5b4a392817",
"quantity": 2
},
{
"product_name": "Gift wrapping",
"price": 15000,
"quantity": 1
}
],
"shipping_fee": 20000,
"address": "Jl. Sudirman No. 1, Jakarta"
}{
"message": "success",
"data": {
"id": "0a1b2c3d-4e5f-4a6b-8c7d-9e0f1a2b3c4d",
"order_number": 1042,
"created_at": "2026-10-12T11:00:00.000000+00:00",
"order_status": "pending",
"payment_method": "manual",
"subtotal": 315000,
"discount": 0,
"shipping_fee": 20000,
"vat": 0,
"grand_total": 335000,
"currency": "IDR",
"address": "Jl. Sudirman No. 1, Jakarta",
"notes": null,
"contact_id": "5c6d7e8f-9a0b-4c1d-2e3f-4a5b6c7d8e9f",
"conversation_id": null,
"contact": {
"id": "5c6d7e8f-9a0b-4c1d-2e3f-4a5b6c7d8e9f",
"display_name": "Jane Doe",
"phone_number": "6281234567890",
"email": null
},
"cekat_orders_products": [
{
"id": "3c4d5e6f-7a8b-4c9d-0e1f-2a3b4c5d6e7f",
"product_id": "8f7e6d5c-4b3a-4291-8e7d-6c5b4a392817",
"product_name": "Kaos Polos",
"quantity": 2,
"price": 150000
},
{
"id": "4d5e6f7a-8b9c-4d0e-1f2a-3b4c5d6e7f8a",
"product_id": null,
"product_name": "Gift wrapping",
"quantity": 1,
"price": 15000
}
],
"invoices": [
{
"id": "5e6f7a8b-9c0d-4e1f-2a3b-4c5d6e7f8a9b",
"status": "PENDING",
"amount": 335000,
"payment_link": null,
"pdf_link": "https://cdn.example.com/invoices/5e6f7a8b.pdf",
"is_sent": false,
"expiry_date": null,
"paid_at": null,
"created_at": "2026-10-12T11:00:01.000000+00:00"
}
]
}
}Last updated