Checkout Token
Create Checkout Token
POST https://api.bigcommerce.com/stores/{store_hash}/v3/checkouts/{checkoutId}/tokenRequest
Use the checkout token to display a confirmation page for a guest shopper.
Usage Notes The response from performing this POST request is a checkout token. The checkout token is a single-use token that is not order-dependent. You cannot create this token after finalizing an order. After completing the order, you can redirect the shopper to /order-confirmation/{orderId}?t={checkoutToken}. After token validation, the /order-confirmation/{orderId} page displays. * The ORDER_TOKEN
should match the order or the logged-in customer can access the order.
Authentication
- X-Auth-Token in header
Parameters
- store_hash in path - string
- checkoutId in path - stringrequiredID of the checkout; the same as the cart ID.
- Accept in header with default of application/json - stringrequiredThe MIME type of the response body.
- Content-Type in header with default of application/json - stringrequiredThe MIME type of the request body.
Body
object | application/json
maxUsesnumber
Example: 1ttlnumber
Time-to-live (TTL) is the number of seconds the token is set to exist before being discarded.Min: 1Max: 2592000Example: 86400
example-1
Response
OK
Body
object | application/json
checkoutTokenstring
Example: beb3590088be88f59ba980d54a68df655cd8a1052a3e9caf535f3f820146c226
example-1
Did you find what you were looking for?