Orders Toki has received from your stores.
Toki keeps a copy of each order it receives from your stores and links it to the member who placed it. Order IDs are your store platform's IDs, such as Shopify's numeric order ID, and amounts are in your store currency.
Lists the orders Toki has received, newest first. By default only the current store's; pass allShops: true for all your stores or userId for one member's orders.
queryStringFilter with field:value terms such as created_at:>-30d. Operators: :, :!=, :>, :>=, :<, :<=; dates also accept relative values like -30d, -1w or -6m. Terms are combined with AND unless joined by OR. Fields: created_at, order_id, shop_domain, total_price, user_id.
reverseBooleanReverse the sort order.
allShopsBooleantrue includes orders from all your stores; by default only the current store's.
userIdStringOnly this member's orders.
A page of TokiOrder in nodes, with pageInfo for the next page. Each item:
An order Toki received from one of your stores.
idID!The order's ID in your store platform, such as Shopify's numeric order ID.
userIdIDThe member who placed the order; null when the order isn't linked to a member.
totalPriceFloat!The order's current total in your store currency; 0 for cancelled orders.
createdAtString!When the order was placed.
shopDomainString!The domain of the store that received the order, such as example.myshopify.com.
dataTokiJSON!Toki's copy of the order as JSON, with its name, customer, line items, discounts, prices, statuses and fulfillments.
userTokiUserThe member who placed the order.
referredUserTokiUserThe referrer: the member whose referral discount the buyer used on this order. null when the order used none.
Returns one order by its ID, or null if there is none. Looks in the current store unless you pass shopId.
idString!RequiredThe order's ID in your store platform, such as Shopify's numeric order ID.
shopIdStringThe Toki ID of the store that received the order. Defaults to the current store.
An order Toki received from one of your stores.
idID!The order's ID in your store platform, such as Shopify's numeric order ID.
userIdIDThe member who placed the order; null when the order isn't linked to a member.
totalPriceFloat!The order's current total in your store currency; 0 for cancelled orders.
createdAtString!When the order was placed.
shopDomainString!The domain of the store that received the order, such as example.myshopify.com.
dataTokiJSON!Toki's copy of the order as JSON, with its name, customer, line items, discounts, prices, statuses and fulfillments.
userTokiUserThe member who placed the order.
referredUserTokiUserThe referrer: the member whose referral discount the buyer used on this order. null when the order used none.