1. Orders
Cekat Open API
  • Chat
    • Connected Platforms
      • List inboxes
      • List inboxes (legacy) (deprecated)
    • Broadcast
      • Create a template
      • Synchronize templates
      • Delete a template
      • List templates
      • Send a template
      • List recipient lists
      • Upload a recipient list
      • List campaigns
      • Create a campaign
      • Get campaign details
      • List campaign messages (deprecated)
      • Check or reserve template-message balance
    • Conversation
      • List conversations
      • Get a conversation
      • Update a conversation
      • List agent assignments
    • Message
      • List messages
      • Get AI credit usage
      • Check or reserve service-message balance
      • List messages in a conversation
      • Get a message
      • Send a WhatsApp message
  • CRM
    • Contact
      • List contacts
      • Create a contact
      • Search contacts
      • Get contact filter fields
      • Get the contact board
      • Create a contact property
      • Get a contact
      • Update a contact
      • Get contact properties
      • Update contact properties
    • Board
      • List CRM boards
      • Get a CRM board
      • Get a CRM column
      • Get a CRM column by name
      • List CRM board items
      • List CRM board items (page-based) (deprecated)
      • Create a CRM board item
      • Delete CRM board items
      • Search CRM board items
      • Get a CRM board item
      • Update a CRM board item
  • AI
    • List Q&A documents
      GET
    • Create Q&A documents
      POST
    • Delete Q&A documents
      DELETE
    • Generate an AI response (beta)
      POST
    • Get the OrderOnline integration
      GET
    • Delete the OrderOnline integration
      DELETE
  • Orders
    • List orders
      GET
    • Create an order
      POST
    • Get an order
      GET
    • Update an order
      PUT
  • Settings
    • List agents
      GET
    • List agents (v2)
      GET
  • Tickets
    • List ticket boards
      GET
    • List ticket templates
      GET
    • List tickets
      POST
    • Create a ticket
      POST
    • Update a ticket
      PUT
    • Add a product to a ticket
      POST
    • Update a ticket product
      PUT
  1. Orders

Create an order

POST
/api/orders
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.

Request

Authorization
Add parameter in header
api_key
Example:
api_key: ********************
Header Params

Body Params application/json

Examples

Responses

🟢201
application/json
Bodyapplication/json

🟠400
🟠401
Request Request Example
Shell
JavaScript
Java
Swift
curl --location '/api/orders' \
--header 'api_key: <api-key>' \
--header 'Content-Type: application/json' \
--data '{
  "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"
}'
Response Response Example
201 - 201 Order and invoice created.
{
  "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"
      }
    ]
  }
}
Modified at 2026-10-13 05:32:46
Previous
List orders
Next
Get an order
Built with