API reference
Orders
Customer API: GET /orders, GET /orders/{id}
Parameters
limitinteger · queryMaximum number of items to return, 1-100. Defaults to 20.
cursorstring · queryOpaque cursor from the previous page's nextCursor. Omit for the first page.
localestring · queryLocale code (any letter case) or URL prefix of a live locale. Omitted: the customer's own locale (Contact.locale, set by their last checkout, sign-in or form submission), falling back to the site's primary locale. Titles and descriptions without a translation fall back to the primary locale.
Response 200
dataobject[]requiredhasMorebooleanrequiredTrue when another page exists; pass nextCursor to fetch it.
nextCursorstring | nullrequiredCursor for the next page, or null on the last page.
Errors
INVALID_CURSOR400INVALID_LIMIT400
curl -X GET "https://{site}/api/v1/customer/orders" \
-H "Authorization: Bearer $KANORIO_CUSTOMER_TOKEN"Parameters
idstring · pathrequiredreceipt"1" · querylocalestring · queryLocale code (any letter case) or URL prefix of a live locale. Omitted: the customer's own locale (Contact.locale, set by their last checkout, sign-in or form submission), falling back to the site's primary locale. Titles and descriptions without a translation fall back to the primary locale.
Response 200
orderobject
Errors
NOT_FOUND404NO_RECEIPT404
curl -X GET "https://{site}/api/v1/customer/orders/{id}" \
-H "Authorization: Bearer $KANORIO_CUSTOMER_TOKEN"