Orders
List and retrieve orders
Money taken for something: its lines, payments, refunds and what is still owed.
The order object
A test key sees and writes only test rows of this object. See Test data.
idstringrequiredA order id, ord_ and 22 characters.
object"order"requirednumberstringrequiredreferencestringrequirednullabletypestringrequirednullablebooking, event, gift_card or pos.
statusstringrequirednullablevenuestringrequirednullableA venue id, ven_ and 22 characters.
customerstringrequirednullableA customer id, cus_ and 22 characters.
bookingstringrequirednullableA booking id, bkg_ and 22 characters.
eventstringrequirednullableA event id, evt_ and 22 characters.
billing_detailsobjectrequiredWho the order was for when it was taken. Can differ from the customer today.
billing_details.namestringrequirednullablebilling_details.emailstringrequirednullablebilling_details.phonestringrequirednullablecurrencystringrequiredISO 4217 currency code, lowercase, e.g. aud.
subtotalintegerrequiredAn amount in whole cents.
discountintegerrequiredAn amount in whole cents.
discount_codestringrequirednullablegift_cardintegerrequiredAn amount in whole cents.
store_creditintegerrequiredAn amount in whole cents.
totalintegerrequiredAn amount in whole cents.
amount_paidintegerrequiredPaid, net of refunds.
amount_refundedintegerrequiredAn amount in whole cents.
amount_dueintegerrequiredAn amount in whole cents.
due_datestringrequirednullableA UTC instant, ISO 8601, e.g. 2026-10-08T03:00:00.000Z.
linesarray of objectsrequiredlines[].idstringrequiredlines[].namestringrequirednullablelines[].typestringrequirednullablelines[].categorystringrequirednullablelines[].quantityintegerrequiredlines[].unit_priceintegerrequiredAn amount in whole cents.
lines[].totalintegerrequiredAn amount in whole cents.
lines[].discountintegerrequiredAn amount in whole cents.
lines[].taxintegerrequiredAn amount in whole cents.
lines[].tax_ratestringrequirednullablelines[].adjustsstringrequirednullableThe line this one adjusts. Lines are never edited.
paymentsarray of objectsrequiredpayments[].amountintegerrequiredAn amount in whole cents.
payments[].methodstringrequirednullablepayments[].statusstringrequirednullablepayments[].cardobjectrequirednullablepayments[].card.brandstringrequirednullablepayments[].card.last4stringrequiredpayments[].processed_atstringrequirednullableA UTC instant, ISO 8601, e.g. 2026-10-08T03:00:00.000Z.
refundsarray of objectsrequiredrefunds[].amountintegerrequiredAn amount in whole cents.
refunds[].reasonstringrequirednullablerefunds[].statusstringrequirednullablerefunds[].processed_atstringrequirednullableA UTC instant, ISO 8601, e.g. 2026-10-08T03:00:00.000Z.
livemodebooleanrequiredFalse for test data, true for real data.
created_atstringrequiredA UTC instant, ISO 8601, e.g. 2026-10-08T03:00:00.000Z.
updated_atstringrequiredA UTC instant, ISO 8601, e.g. 2026-10-08T03:00:00.000Z.
{
"id": "ord_0TMXp8QPR6yGvKuV2GZQ10",
"object": "order",
"number": "<string>",
"reference": "<string>",
"type": "<string>",
"status": "<string>",
"venue": "ven_0TMXp8QPR6yGvKuV2GZQ10",
"customer": "cus_0TMXp8QPR6yGvKuV2GZQ10",
"booking": "bkg_0TMXp8QPR6yGvKuV2GZQ10",
"event": "evt_0TMXp8QPR6yGvKuV2GZQ10",
"billing_details": {
"name": "<string>",
"email": "alex@example.com",
"phone": "<string>"
},
"currency": "aud",
"subtotal": 4500,
"discount": 4500,
"discount_code": "<string>",
"gift_card": 4500,
"store_credit": 4500,
"total": 4500,
"amount_paid": 1,
"amount_refunded": 4500,
"amount_due": 4500,
"due_date": "2026-10-08T03:00:00.000Z",
"lines": [
{
"id": "<string>",
"name": "<string>",
"type": "<string>",
"category": "<string>",
"quantity": 1,
"unit_price": 4500,
"total": 4500,
"discount": 4500,
"tax": 4500,
"tax_rate": "<string>",
"adjusts": "<string>"
}
],
"payments": [
{
"amount": 4500,
"method": "<string>",
"status": "<string>",
"card": {
"brand": "<string>",
"last4": "<string>"
},
"processed_at": "2026-10-08T03:00:00.000Z"
}
],
"refunds": [
{
"amount": 4500,
"reason": "<string>",
"status": "<string>",
"processed_at": "2026-10-08T03:00:00.000Z"
}
],
"livemode": true,
"created_at": "2026-10-08T03:00:00.000Z",
"updated_at": "2026-10-08T03:00:00.000Z"
}List orders
Every order the key can see, newest first, a page at a time.
Query parameters
limitintegerHow many to return, 1 to 100. Defaults to 25.
starting_afterstringThe next_cursor of the page before. Omit it for the first page.
updated_sincestringOnly rows changed at or after this instant, ISO 8601 with an offset.
customerstringOnly those for this customer, by its cus_ id.
bookingstringOnly those for this booking, by its bkg_ id.
venuestringOnly those for this venue, by its ven_ id.
numberstringThe order number.
curl "https://api.hatcel.com/orders?limit=25" \
-H "Authorization: Bearer $HATCEL_API_KEY" \
-H "Hatcel-Version: 2026-10-08"{
"object": "list",
"data": [
{
"id": "ord_0TMXp8QPR6yGvKuV2GZQ10",
"object": "order",
"number": "<string>",
"reference": "<string>",
"type": "<string>",
"status": "<string>",
"venue": "ven_0TMXp8QPR6yGvKuV2GZQ10",
"customer": "cus_0TMXp8QPR6yGvKuV2GZQ10",
"booking": "bkg_0TMXp8QPR6yGvKuV2GZQ10",
"event": "evt_0TMXp8QPR6yGvKuV2GZQ10",
"billing_details": {
"name": "<string>",
"email": "alex@example.com",
"phone": "<string>"
},
"currency": "aud",
"subtotal": 4500,
"discount": 4500,
"discount_code": "<string>",
"gift_card": 4500,
"store_credit": 4500,
"total": 4500,
"amount_paid": 1,
"amount_refunded": 4500,
"amount_due": 4500,
"due_date": "2026-10-08T03:00:00.000Z",
"lines": [
{
"id": "<string>",
"name": "<string>",
"type": "<string>",
"category": "<string>",
"quantity": 1,
"unit_price": 4500,
"total": 4500,
"discount": 4500,
"tax": 4500,
"tax_rate": "<string>",
"adjusts": "<string>"
}
],
"payments": [
{
"amount": 4500,
"method": "<string>",
"status": "<string>",
"card": {
"brand": "<string>",
"last4": "<string>"
},
"processed_at": "2026-10-08T03:00:00.000Z"
}
],
"refunds": [
{
"amount": 4500,
"reason": "<string>",
"status": "<string>",
"processed_at": "2026-10-08T03:00:00.000Z"
}
],
"livemode": true,
"created_at": "2026-10-08T03:00:00.000Z",
"updated_at": "2026-10-08T03:00:00.000Z"
}
],
"has_more": true,
"next_cursor": "eyJ0IjoiMjAyNi0xMC0wOFQwMzowMDowMC4wMDBaIiwiaSI6IjBmOGZhZDViIn0"
}Retrieve a order
One order by its id, with its version in the ETag header. Another object's id, or one this key cannot see, is a 404.
Path parameters
idstringrequiredThe order's id, ord_ and 22 characters.
curl "https://api.hatcel.com/orders/ord_0TMXp8QPR6yGvKuV2GZQ10" \
-H "Authorization: Bearer $HATCEL_API_KEY" \
-H "Hatcel-Version: 2026-10-08"{
"id": "ord_0TMXp8QPR6yGvKuV2GZQ10",
"object": "order",
"number": "<string>",
"reference": "<string>",
"type": "<string>",
"status": "<string>",
"venue": "ven_0TMXp8QPR6yGvKuV2GZQ10",
"customer": "cus_0TMXp8QPR6yGvKuV2GZQ10",
"booking": "bkg_0TMXp8QPR6yGvKuV2GZQ10",
"event": "evt_0TMXp8QPR6yGvKuV2GZQ10",
"billing_details": {
"name": "<string>",
"email": "alex@example.com",
"phone": "<string>"
},
"currency": "aud",
"subtotal": 4500,
"discount": 4500,
"discount_code": "<string>",
"gift_card": 4500,
"store_credit": 4500,
"total": 4500,
"amount_paid": 1,
"amount_refunded": 4500,
"amount_due": 4500,
"due_date": "2026-10-08T03:00:00.000Z",
"lines": [
{
"id": "<string>",
"name": "<string>",
"type": "<string>",
"category": "<string>",
"quantity": 1,
"unit_price": 4500,
"total": 4500,
"discount": 4500,
"tax": 4500,
"tax_rate": "<string>",
"adjusts": "<string>"
}
],
"payments": [
{
"amount": 4500,
"method": "<string>",
"status": "<string>",
"card": {
"brand": "<string>",
"last4": "<string>"
},
"processed_at": "2026-10-08T03:00:00.000Z"
}
],
"refunds": [
{
"amount": 4500,
"reason": "<string>",
"status": "<string>",
"processed_at": "2026-10-08T03:00:00.000Z"
}
],
"livemode": true,
"created_at": "2026-10-08T03:00:00.000Z",
"updated_at": "2026-10-08T03:00:00.000Z"
}