Show a customer's order and its progress, and let them buy it again, start a return or track it in Apple Wallet.
Toki keeps each order from your store with the customer who placed it. Order IDs are Shopify's order IDs, such as {{ order.id }} in Liquid, and amounts are in your store currency, as numbers such as 62.6.
getOrderDetailsReturns one of the customer's orders, with its progress, line items, totals and shipping details.reorderCreates a checkout with the items of one of the customer's orders, for a Buy again button.getReturnLinkReturns a link to start a return of one of the customer's orders in your Loop Returns portal.getAppleWalletOrderLinkReturns a link that adds one of the customer's orders to Apple Wallet, where they can follow its progress.Returns one of the customer's orders, with its progress, line items, totals and shipping details.
status gives the order's step for a progress tracker, with a label in the storefront's language, and details.fulfillments the tracking links. The order must be one of the signed-in customer's; otherwise it rejects with Order not found or access denied.
Pass a reviewGroupId to ask for reviews: lineItemReviews then lists each product in the order, with the customer's review of it and a link to write or edit it.
orderIdstringRequiredShopify's order ID, such as {{ order.id }} in Liquid.
reviewGroupIdstringA review group, from getReviewGroups, to fill lineItemReviews.
detailsOrderThe order.
idstringShopify's order ID.
namestringThe order number customers see, such as #1042.
createdAtstringWhen the order was placed, as an ISO 8601 date-time.
cancelledAtstring | nullWhen the order was cancelled; null if it wasn't.
orderStatusUrlstringThe order's status page in your store.
totalPricenumberThe order's total, with shipping, tax and discounts.
currentTotalPricenumber | nullOptionalThe total after any edits and refunds.
subtotalPricenumberThe items' total after discounts, before shipping.
presentmentTotalPrice{ amount: number; currencyCode: string } | nullOptionalThe total in the currency the customer paid in.
lineItemsOrderLineItem[]idstringnamestringThe product and variant, such as Cloud Hoodie - M / Sand.
productIdstringThe numeric Shopify product ID.
variantIdstringThe numeric Shopify variant ID.
quantitynumberThe quantity ordered.
currentQuantitynumberOptionalThe quantity after any edits and refunds.
pricenumberThe price of one item, before discounts.
totalDiscountnumberOptionalDiscounts on the whole line.
totalTaxnumberOptionalTax on the whole line.
properties{ name: string; value: string }[]OptionalThe line item properties.
shippingLines{ name: string; price: number | null; discountedPrice: number | null }[]OptionalShipping methods with their price, before and after shipping discounts.
shippingAddressobjectOptionalfirstName, lastName, name, company, address1, address2, city, province, provinceCode, zip, country, countryCode and phone, each a string or null.
customer{ email: string | null; name: string | null; phone: string | null }The customer as the order records them.
statusesobjectOptionalShopify's statuses for the order.
fulfillmentStatusstring | nullOptionalSuch as UNFULFILLED, PARTIALLY_FULFILLED or FULFILLED.
financialStatusstring | nullOptionalSuch as PAID, PARTIALLY_REFUNDED or REFUNDED.
deliveryStatus"DELIVERED" | "NOT_DELIVERED" | nullOptionalDELIVERED once a shipment has been delivered.
fulfillmentsOrderFulfillment[]OptionalThe order's shipments.
displayStatusstringShopify's shipment status, such as IN_TRANSIT, OUT_FOR_DELIVERY or DELIVERED.
deliveredAtstring | nullOptionalWhen the shipment was delivered, as an ISO 8601 date-time.
trackingInfo{ company: string | null; url: string | null }[]The carrier and tracking link of each package.
tagsstring[]The order's tags in your store.
statusOrderStatusThe order's progress, for a tracker with four steps.
key"orderPlaced" | "shipped" | "partiallyFulfilled" | "outForDelivery" | "delivered" | "cancelled"shipped once the items are fulfilled and on their way, partiallyFulfilled when only some items are fulfilled, outForDelivery when a shipment is out for delivery or ready for pickup, and delivered once the fulfilled order has been delivered or picked up.
stepnumberThe step from 1 (orderPlaced) to 4 (delivered): shipped and partiallyFulfilled are 2, and outForDelivery is 3. cancelled is 0.
currentStatusLabelstringThe status in the storefront's language, such as Out for delivery.
timestampstringWhen the order was cancelled, for cancelled; otherwise when it was last updated. ISO 8601.
descriptionstring | nullOptionalFor delivered, a line such as Delivered on October 3, 2026 at 02:15 PM.
steps{ key: string }[]The tracker's steps: orderPlaced, shipped, outForDelivery and delivered.
lineItemReviewsOrderLineItemReview[]With a reviewGroupId, one entry per product in the order, when the customer can review in that group. Otherwise empty.
productIdstringThe numeric Shopify product ID.
reviewIdstring | nullThe customer's review of the product from this order; null before they review it.
status"pending" | "approved" | "rejected" | nullThat review's status.
urlstring | nullA link to Toki's review page for the product, signed in as the customer, valid for 2 hours; null once the review is approved.
isReturnIntegrationEnabledbooleanWhether your Loop Returns integration is connected, for getReturnLink.
isAppleWalletOrdersEnabledbooleanWhether the customer can add this order to Apple Wallet with getAppleWalletOrderLink.
Creates a checkout with the items of one of the customer's orders, for a Buy again button.
Toki creates a new Shopify cart with the order's items, quantities and line item properties, fills in the customer's email, and resolves to the cart's checkout URL. Paid memberships and custom items aren't included. The customer's current cart stays as it is: send them to checkoutUrl. Shopify stores only.
It rejects when Shopify can't create the cart, for example when a product from the order has been deleted.
orderIdstringRequiredShopify's order ID, such as {{ order.id }} in Liquid.
checkoutUrlstringThe checkout for the new cart, on your store's domain.
Returns a link to start a return of one of the customer's orders in your Loop Returns portal.
For stores with the Loop Returns integration connected: show a return button when getOrderDetails returns isReturnIntegrationEnabled: true, and open url in a new tab. Loop finds the order by its number and shipping ZIP code, and the customer picks what to return there.
orderIdstringRequiredShopify's order ID, such as {{ order.id }} in Liquid.
urlstringThe order's page in your Loop returns portal.
Returns a link that adds one of the customer's orders to Apple Wallet, where they can follow its progress.
For stores with Enable Apple Wallet Orders turned on in the Toki app: show the button when getOrderDetails returns isAppleWalletOrdersEnabled: true. The link opens a page that adds the order to Apple Wallet on an iPhone; on other devices, show it as a QR code to scan with an iPhone. Apple Wallet then keeps the order's status up to date.
Get the link when you show the button: it's valid for an hour.
orderIdstringRequiredShopify's order ID, such as {{ order.id }} in Liquid.
downloadLinkstringThe link to the order's Apple Wallet page.