Skip to navigation

Get Checkout

Returns a Checkout.

By default, the response omits line item options, stock positions, available shipping options, and promotion banners. Use the include query parameter to add them. Pass a comma-separated list to request more than one:

GET /stores/{store_hash}/v3/checkouts/{checkoutId}?include=consignments.available_shipping_options,cart.line_items.physical_items.stock_position

Notes

  • The checkout ID is the same as the cart ID. Get it from the id returned by Create a cart or Get a cart, or from the storefront checkout: the REST Storefront Get checkout response or the Checkout SDK’s checkout.id.

Authentication

X-Auth-Tokenstring

OAuth scopes

UI NamePermissionParameter
Checkoutsmodifystore_checkouts
Checkoutsread-onlystore_checkouts_read_only
Checkout Contentmodifystore_checkout_content
Checkout Contentread-onlystore_checkout_content_read_only

Authentication header

HeaderArgumentDescription
X-Auth-Tokenaccess_tokenFor more about API accounts that generate access_tokens, see our Guide to API Accounts.

Further reading

For example requests and more information about authenticating BigCommerce APIs, see Authentication and Example Requests.

For more about BigCommerce OAuth scopes, see our Guide to API Accounts.

For a list of API status codes, see API Status Codes.

Path parameters

checkoutIdstringRequired

ID of the checkout; the same as the cart ID.

store_hashstringRequired
Permanent ID of the BigCommerce store.

Headers

AcceptstringRequiredDefaults to application/json

The MIME type of the response body.

Query parameters

includelist of enumsOptional

Comma-separated list of sub-resources to add to the response. The default response omits all of them.

  • cart.line_items.physical_items.options - product options on physical line items
  • cart.line_items.digital_items.options - product options on digital line items
  • cart.line_items.physical_items.stock_position - backorder and stock availability for physical items
  • cart.line_items.digital_items.stock_position - backorder and stock availability for digital items (backorder values are always zero because digital products cannot be backordered)
  • consignments.available_shipping_options - shipping options available to each consignment
  • promotions.banners - eligible promotion banners

Example: include=consignments.available_shipping_options,promotions.banners

Response

OK
dataobjectOptional
metaobjectOptional
Response metadata.

Errors

404
Not Found Error