Orders

Get orders

get

Retrieves all orders for the specified store.

Authorizations
AuthorizationstringRequired

An API Key token generated in the Dashboard in the format 'APIKey TOKEN_HERE'.

Path parameters
storeIdstring · flake-idRequired

The ID of the store to retrieve orders for.

Example: 411486491630370816
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.

order_idstring · flake-idOptional

Order ID

Example: 411486491630370816
customer_idstring · flake-idOptional

Customer ID

Example: 411486491630370816
billing_emailstringOptional

Billing Email

customer_ipstringOptional

Customer IP

subscription_idstring · flake-idOptional

Subscription ID

Example: 411486491630370816
checkout_idstring · flake-idOptional

Checkout ID

Example: 411486491630370816
is_subscriptionbooleanOptional

Flag indicating if the order is a subscription

affiliate_idstring · flake-idOptional

Affiliate ID

Example: 411486491630370816
coupon_idstring · flake-idOptional

Coupon ID

Example: 411486491630370816
giftcard_idstring · flake-idOptional

Gift card ID

Example: 411486491630370816
product_idstring · flake-idOptional

Product ID

Example: 411486491630370816
sale_idstring · flake-idOptional

Sale ID

Example: 411486491630370816
Responses
200

OK

application/json
get
/v1/stores/{storeId}/orders

Get order by ID

get

Retrieves an order by the ID for the specified store.

Authorizations
AuthorizationstringRequired

An API Key token generated in the Dashboard in the format 'APIKey TOKEN_HERE'.

Path parameters
storeIdstring · flake-idRequired

The ID of the store to retrieve the order for.

Example: 411486491630370816
orderIdstring · flake-idRequired

The ID of the order.

Example: 411486491630370816
Responses
200

OK

application/json
get
/v1/stores/{storeId}/orders/{orderId}

Refund order by ID

post

Creates a refund for an order by the ID for the specified store.

Authorizations
AuthorizationstringRequired

An API Key token generated in the Dashboard in the format 'APIKey TOKEN_HERE'.

Path parameters
storeIdstring · flake-idRequired

The ID of the store to refund the order for.

Example: 411486491630370816
orderIdstring · flake-idRequired

The ID of the order.

Example: 411486491630370816
Body
order_line_idstring · flake-idOptionalExample: 411486491630370816
refund_from_connected_user_balancenull | booleanOptional

Determines if the refund should be taken from the connected user's balance. Only relevant for connected platforms.

Responses
200

OK

application/json
post
/v1/stores/{storeId}/orders/{orderId}/refund

Last updated

Was this helpful?