Kanorio

API reference

Orders

Customer API: GET /orders, GET /orders/{id}

Base URL https://{site}/api/v1/customerErrorsPagination

The customer's orders

GET/orders
beta

Parameters

  • limitinteger · query

    Maximum number of items to return, 1-100. Defaults to 20.

  • cursorstring · query

    Opaque cursor from the previous page's nextCursor. Omit for the first page.

  • localestring · query

    Locale 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[]required
  • hasMorebooleanrequired

    True when another page exists; pass nextCursor to fetch it.

  • nextCursorstring | nullrequired

    Cursor for the next page, or null on the last page.

Errors

  • INVALID_CURSOR 400
  • INVALID_LIMIT 400
curl -X GET "https://{site}/api/v1/customer/orders" \
  -H "Authorization: Bearer $KANORIO_CUSTOMER_TOKEN"

Parameters

  • idstring · pathrequired
  • receipt"1" · query
  • localestring · query

    Locale 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_FOUND 404
  • NO_RECEIPT 404
curl -X GET "https://{site}/api/v1/customer/orders/{id}" \
  -H "Authorization: Bearer $KANORIO_CUSTOMER_TOKEN"