List orders

Halaman ini belum tersedia dalam Bahasa Indonesia. Menampilkan bahasa default (English).

List orders

GEThttps://api.cekat.ai/api/orders

Lists orders with filters, search and sorting.

Authorization

api_keystringheaderrequired

Your Cekat API key, from Settings → Developers & API in the Cekat dashboard.

Authorizationstringheader

Alternative to api_key: send the same key as Bearer YOUR_API_KEY.

Query parameters

pageinteger
default: 1min: 1
limitinteger
default: 100min: 1max: 1000
order_statusstring
Available options: pending, processing, shipping, cancelled, completed
payment_statusstring
Available options: PENDING, PAID, EXPIRED, SETTLED
inbox_idstring<uuid>

Only orders from conversations in this inbox.

sort_fieldstring
Available options: created_at, order_number, subtotal
default: "created_at"
sort_directionstring
Available options: asc, desc
default: "desc"
start_datestring<date>

Only include items created on or after this date (YYYY-MM-DD). Cannot be combined with start_datetime.

end_datestring<date>

Only include items created on or before the end of this date (YYYY-MM-DD). Cannot be combined with end_datetime.

start_datetimestring

Only include items created at or after this time (YYYY-MM-DDTHH:mm:ss, optional offset such as +07:00 or Z). Cannot be combined with start_date.

end_datetimestring

Only include items created at or before this time (YYYY-MM-DDTHH:mm:ss, optional offset). Cannot be combined with end_date.

Headers

X-User-Timezonestring

IANA time zone used to read date filters that have no offset. Defaults to Asia/Jakarta.

Response

200
400
401
429

A page of orders.

messagestring
dataobject
Show child attributes
ordersOrder[]
Show child attributes
idstring<uuid>
order_numberinteger
created_atstring<date-time>
order_statusstring
Available options: pending, processing, shipping, cancelled, completed
payment_methodstring
Available options: manual, xendit, custom
subtotalnumber
discountnumber
shipping_feenumber
vatnumber
grand_totalnumber
currencystring | null
addressstring | null
notesstring | null
contact_idstring<uuid>
conversation_idstring<uuid> | null
contactobject
Show child attributes
idstring<uuid>
display_namestring
phone_numberstring | null
emailstring | null
cekat_orders_productsOrderProduct[]
Show child attributes
idstring<uuid>
product_idstring<uuid> | null
product_namestring
quantityinteger
pricenumber
invoicesInvoice[]

The order's invoices, newest first.

Show child attributes
idstring
statusstring
Available options: PENDING, PAID, EXPIRED, SETTLED
amountnumber
is_sentboolean | null
expiry_datestring | null
created_atstring<date-time>
filtersobject

The filters that were applied.

A filter value is invalid.

successboolean
messagestring
statusCodeinteger
errorobject
Show child attributes
messagestring
correlationIdstring

Request ID. Include it when contacting Cekat support.

The API key is missing or invalid.

successboolean
messagestring
statusCodeinteger
errorobject
Show child attributes
messagestring
correlationIdstring

Request ID. Include it when contacting Cekat support.

Rate limit exceeded. Wait and retry.

messagestring
GET/api/orders
cURL
JavaScript
Python
PHP
curl --request GET \
  --url 'https://api.cekat.ai/api/orders' \
  --header 'api_key: YOUR_API_KEY'
const response = await fetch('https://api.cekat.ai/api/orders', {
  method: 'GET',
  headers: { 'api_key': 'YOUR_API_KEY' },
});

const data = await response.json();
console.log(data);
import requests

url = "https://api.cekat.ai/api/orders"
headers = {"api_key": "YOUR_API_KEY"}

response = requests.get(url, headers=headers)
print(response.json())
<?php
$curl = curl_init();

curl_setopt_array($curl, [
  CURLOPT_URL => 'https://api.cekat.ai/api/orders',
  CURLOPT_RETURNTRANSFER => true,
  CURLOPT_CUSTOMREQUEST => 'GET',
  CURLOPT_HTTPHEADER => ['api_key: YOUR_API_KEY'],
]);

$response = curl_exec($curl);
curl_close($curl);
echo $response;
Response
200
400
401
429
{
  "message": "<string>",
  "data": {
    "orders": [
      {
        "id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
        "order_number": 1,
        "created_at": "2026-01-15T09:30:00Z",
        "order_status": "pending",
        "payment_method": "manual",
        "subtotal": 10000,
        "discount": 10000,
        "shipping_fee": 10000,
        "vat": 10000,
        "grand_total": 10000,
        "currency": "<string>",
        "address": "<string>",
        "notes": "<string>",
        "contact_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
        "conversation_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
        "contact": {
          "id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
          "display_name": "Jane Doe",
          "phone_number": "6281234567890",
          "email": "[email protected]"
        },
        "cekat_orders_products": [
          {}
        ],
        "invoices": [
          {}
        ]
      }
    ],
    "pagination": {
      "page": 1,
      "limit": 1,
      "total_items": 1,
      "total_pages": 1
    },
    "filters": {}
  }
}
{
  "success": true,
  "message": "<string>",
  "statusCode": 1,
  "error": {
    "message": "<string>"
  },
  "correlationId": "<string>"
}
{
  "success": true,
  "message": "<string>",
  "statusCode": 1,
  "error": {
    "message": "<string>"
  },
  "correlationId": "<string>"
}
{
  "message": "<string>"
}