For the complete documentation index, see llms.txt. This page is also available as Markdown.

Orders

Get orders

get

Retrieves all orders for the specified customer token.

Authorizations
AuthorizationstringRequired

A Customer token generated using an API Key in the format 'Customer TOKEN_HERE'.

Query parameters
limitinteger · int32 · min: 1 · max: 100Optional

The maximum number of items to return in a single request.

afterstring · flake-idOptional

Returns items after the specified ID. Used for forward pagination through results.

Example: 411486491630370816
beforestring · flake-idOptional

Returns items before the specified ID. Used for backward pagination through results.

Example: 411486491630370816
ascbooleanOptional

Determines the sort order of returned items. When true, items are returned in ascending order. When false, items are returned in descending order.

Responses
200

OK

application/json

Data transfer object representing a store order.

idstring · flake-idRequiredExample: 411486491630370816
pretty_idstringRead-onlyRequired

Human-readable identifier for the order.

store_idstring · flake-idRequiredExample: 411486491630370816
customer_idstring · flake-idRequiredExample: 411486491630370816
statusstring · enumRequiredPossible values:
typestring · enumRequired

Defines the type of items contained in an order

Possible values:
checkout_idstring · flake-idOptionalExample: 411486491630370816
subscription_idstring · flake-idOptionalExample: 411486491630370816
is_subscriptionbooleanRequired

Indicates whether this order is a subscription order.

currencystringRequired

Currency code used for this order.

discount_amountinteger · int32Required

The total discount amount applied to this order in smallest currency unit

Example: 500
discount_amount_strstringRequired

The discount amount formatted as a string

Example: $5.00
subtotal_amountinteger · int32Required

The subtotal amount for this order in smallest currency unit

Example: 9995
subtotal_amount_strstringRequired

The subtotal amount formatted as a string

Example: $99.95
tax_amountinteger · int32Required

The tax amount for this order in smallest currency unit

Example: 999
tax_amount_strstringRequired

The tax amount formatted as a string

Example: $9.99
total_amountinteger · int32Required

The total amount for this order in smallest currency unit

Example: 10494
total_amount_strstringRequired

The total amount formatted as a string

Example: $104.94
giftcard_usage_amountinteger · int32Required

The amount of gift card value used for this order in smallest currency unit

Example: 0
giftcard_usage_amount_strstringRequired

The gift card usage amount formatted as a string

Example: $0.00
presentment_currencystringRequired

The presentment currency code used for this order (currency shown to customer)

Example: eur
presentment_subtotal_amountinteger · int32Required

The presentment subtotal amount in smallest currency unit

Example: 9995
presentment_subtotal_amount_strstringRead-onlyRequired

The presentment subtotal amount formatted as a string

Example: €99.95
presentment_discount_amountinteger · int32Required

The presentment discount amount in smallest currency unit

Example: 500
presentment_discount_amount_strstringRead-onlyRequired

The presentment discount amount formatted as a string

Example: €5.00
presentment_giftcard_usage_amountinteger · int32Required

The presentment gift card usage amount in the smallest currency unit

Example: 0
presentment_giftcard_usage_amount_strstringRead-onlyRequired

The presentment gift card usage amount formatted as a string

Example: €0.00
presentment_tax_amountinteger · int32Required

The presentment tax amount in smallest currency unit

Example: 999
presentment_tax_amount_strstringRead-onlyRequired

The presentment tax amount formatted as a string

Example: €9.99
presentment_total_amountinteger · int32Required

The presentment total amount in the smallest currency unit

Example: 10494
presentment_total_amount_strstringRead-onlyRequired

The presentment total amount formatted as a string

Example: €104.94
billing_cycle_sequenceinteger · nullableOptional

Sequence number of the billing cycle, if this order is associated with a subscription.

created_atstring · nullableOptional

Date and time when the order was created.

completed_atstring · nullableOptional

Date and time when the order was completed.

canceled_atstring · nullableOptional

Date and time when the order was canceled.

get/v1/store/customer/orders

Get order by ID

get

Retrieves an order by its ID for the specified customer token.

Authorizations
AuthorizationstringRequired

A Customer token generated using an API Key in the format 'Customer TOKEN_HERE'.

Path parameters
orderIdstring · flake-idRequiredExample: 411486491630370816
Responses
200

OK

application/json

Data transfer object representing a store order.

idstring · flake-idRequiredExample: 411486491630370816
pretty_idstringRead-onlyRequired

Human-readable identifier for the order.

store_idstring · flake-idRequiredExample: 411486491630370816
customer_idstring · flake-idRequiredExample: 411486491630370816
statusstring · enumRequiredPossible values:
typestring · enumRequired

Defines the type of items contained in an order

Possible values:
checkout_idstring · flake-idOptionalExample: 411486491630370816
subscription_idstring · flake-idOptionalExample: 411486491630370816
is_subscriptionbooleanRequired

Indicates whether this order is a subscription order.

currencystringRequired

Currency code used for this order.

discount_amountinteger · int32Required

The total discount amount applied to this order in smallest currency unit

Example: 500
discount_amount_strstringRequired

The discount amount formatted as a string

Example: $5.00
subtotal_amountinteger · int32Required

The subtotal amount for this order in smallest currency unit

Example: 9995
subtotal_amount_strstringRequired

The subtotal amount formatted as a string

Example: $99.95
tax_amountinteger · int32Required

The tax amount for this order in smallest currency unit

Example: 999
tax_amount_strstringRequired

The tax amount formatted as a string

Example: $9.99
total_amountinteger · int32Required

The total amount for this order in smallest currency unit

Example: 10494
total_amount_strstringRequired

The total amount formatted as a string

Example: $104.94
giftcard_usage_amountinteger · int32Required

The amount of gift card value used for this order in smallest currency unit

Example: 0
giftcard_usage_amount_strstringRequired

The gift card usage amount formatted as a string

Example: $0.00
presentment_currencystringRequired

The presentment currency code used for this order (currency shown to customer)

Example: eur
presentment_subtotal_amountinteger · int32Required

The presentment subtotal amount in smallest currency unit

Example: 9995
presentment_subtotal_amount_strstringRead-onlyRequired

The presentment subtotal amount formatted as a string

Example: €99.95
presentment_discount_amountinteger · int32Required

The presentment discount amount in smallest currency unit

Example: 500
presentment_discount_amount_strstringRead-onlyRequired

The presentment discount amount formatted as a string

Example: €5.00
presentment_giftcard_usage_amountinteger · int32Required

The presentment gift card usage amount in the smallest currency unit

Example: 0
presentment_giftcard_usage_amount_strstringRead-onlyRequired

The presentment gift card usage amount formatted as a string

Example: €0.00
presentment_tax_amountinteger · int32Required

The presentment tax amount in smallest currency unit

Example: 999
presentment_tax_amount_strstringRead-onlyRequired

The presentment tax amount formatted as a string

Example: €9.99
presentment_total_amountinteger · int32Required

The presentment total amount in the smallest currency unit

Example: 10494
presentment_total_amount_strstringRead-onlyRequired

The presentment total amount formatted as a string

Example: €104.94
billing_cycle_sequenceinteger · nullableOptional

Sequence number of the billing cycle, if this order is associated with a subscription.

created_atstring · nullableOptional

Date and time when the order was created.

completed_atstring · nullableOptional

Date and time when the order was completed.

canceled_atstring · nullableOptional

Date and time when the order was canceled.

get/v1/store/customer/orders/{orderId}

Last updated

Was this helpful?