Storefront Orders
Get order data immediately after an order is placed on BigCommerce-hosted storefronts. To work with headless storefronts, use the GraphQL Storefront API.
The REST Storefront API uses CORS headers for authentication, and therefore has no required scopes. You do not need to send any BigCommerce-specific tokens with your requests to these endpoints.
For info about authenticating BigCommerce APIs, see Authentication and Example Requests.
Get Order
GET https://yourstore.example.com/api/storefront/orders/{orderId}Request
Parameters
- store_domain in path - string
- orderId in path - integerrequiredID of an Order.
- include in query - arraySub-resources to include in an Order, in a comma-separated list. The ID and the specified fields will be returned.Type: array[string]
Allowed: lineItems | billingAddress | coupons | currency | taxes | payments | consignments
example
Response
Body
orderIdnumber
Unique identifier for the order.Min: 1cartIdstring
The ID of cart that was converted to order.currencyobject
This will always be the same between cart and checkout.isTaxIncludedboolean
Whether this item is taxable.baseAmountnumber
Cost of cartʼs contents before applying discounts.discountAmountnumber
Discounted amount.giftWrappingCostTotalnumber
Gift wrapping for all items, including or excluding tax.orderAmountnumber
Sum of line-items amounts, minus cart-level discounts and coupons. This amount includes taxes where applicable.orderAmountAsIntegernumber
Order amount represented in integer. Eg. 1234 for $12.34couponsarray[object]
Array ofAppliedCouponobjects applied to this cart.lineItemsarray[object]
Array ofLineItemobjects.customerIdstring
Unique identifier for the customer who placed the order.billingAddressobject
statusstring
Order status.Allowed: INCOMPLETE | PENDING | SHIPPED | PARTIALLY_SHIPPED | REFUNDED | CANCELLED | DECLINED | AWAITING_PAYMENT | AWAITING_PICKUP | AWAITING_SHIPMENT | COMPLETED | AWAITING_FULFILLMENT | MANUAL_VERIFICATION_REQUIRED | DISPUTED | PARTIALLY_REFUNDED
Example: INCOMPLETEhasDigitalItemsboolean
Specifies whether this order has at least one digital item.isDownloadableboolean
Specifies whether this order is fully paid, so that digital items can be downloaded.isCompleteboolean
Specifies whether this order is complete and ready to be taken to the order confirmation page.customerMessagestring
Shopperʼs provided message for the order.shippingCostTotalnumber
shippingCostBeforeDiscountnumber
Estimated total shipping cost before any shipping discounts have been applied.comparisonShippingCostnumber
The total shipping cost to be shown to shopper in the summary as struck-through.
- If the entered-price and display-price have the same tax setting (e.g.: both are tax-inclusive), this field will be the estimated total shipping cost before any coupons applied (but after automatic promotions applied).
- If the entered-price and display-price have different tax setting (e.g.: one is tax-inclusive, and one is tax-exclusive), this field will be the estimated total shipping cost before any discounts applied, similar to the
shippingCostBeforeDiscount.
handlingCostTotalnumber
customerCanBeCreatedboolean
taxesarray[object]
taxTotalinteger
channelIdnumber
ID of the channel which the order belongs to.consignmentsobject
All the consignments of the order.
example
See something you can improve? Edit this file on GitHub