Get an order
Get an order
Halaman ini belum tersedia dalam Bahasa Indonesia. Menampilkan bahasa default (English).
Get an order
GET
https://api.cekat.ai/api/orders/{id}Returns an order with its contact, conversation, products, invoices and bank account.
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.
Path parameters
idstring<uuid>required
Response
200
401
429
The order.
messagestring
dataOrder
An order with its contact, products and invoices. Additional fields may be present.
Show child attributes
idstring<uuid>
order_numberinteger
created_atstring<date-time>
order_statusstring
Available options:
pending, processing, shipping, cancelled, completedpayment_methodstring
Available options:
manual, xendit, customsubtotalnumber
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, SETTLEDamountnumber
payment_linkstring | null
Xendit payment link, for xendit orders.
pdf_linkstring | null
Invoice PDF, or your own invoice URL for custom orders.
is_sentboolean | null
expiry_datestring | null
paid_atstring | null
created_atstring<date-time>
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/{id}
cURL
JavaScript
Python
PHP
curl --request GET \
--url 'https://api.cekat.ai/api/orders/3c90c3cc-0d44-4b50-8888-8dd25736052a' \
--header 'api_key: YOUR_API_KEY'
const response = await fetch('https://api.cekat.ai/api/orders/3c90c3cc-0d44-4b50-8888-8dd25736052a', {
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/3c90c3cc-0d44-4b50-8888-8dd25736052a"
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/3c90c3cc-0d44-4b50-8888-8dd25736052a',
CURLOPT_RETURNTRANSFER => true,
CURLOPT_CUSTOMREQUEST => 'GET',
CURLOPT_HTTPHEADER => ['api_key: YOUR_API_KEY'],
]);
$response = curl_exec($curl);
curl_close($curl);
echo $response;
Response
200
401
429
{
"message": "<string>",
"data": {
"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": [
{
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"product_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"product_name": "Kopi Susu",
"quantity": 1,
"price": 10000
}
],
"invoices": [
{
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"status": "PENDING",
"amount": 10000,
"payment_link": "<string>",
"pdf_link": "<string>",
"is_sent": true,
"expiry_date": "2026-01-15",
"paid_at": "2026-01-15T09:30:00Z",
"created_at": "2026-01-15T09:30:00Z"
}
]
}
}
{
"success": true,
"message": "<string>",
"statusCode": 1,
"error": {
"message": "<string>"
},
"correlationId": "<string>"
}
{
"message": "<string>"
}