Create an order token to initiate the checkout process. This token is used to reference the cart generated in your storefront.
The Signing Secret found in the Key section must also be used to authenticate payloads sent by Bolt.
HEADER | VALUE |
---|---|
X-Api-Key | Provide the API_KEY |
X-Nonce | unique 12-16 digit for every request (UUID is a good option) |
Content-Type | application/json |
Environment | Bolt API URLs |
---|---|
Sandbox | https://api-sandbox.bolt.com |
Production | https://api.bolt.com |
See the Official API Reference for a request example.
Check for a HTTP 200
success code and that the response contains an order token.
Ensure that the order_reference
value corresponds to the unique cart ID value provided in the request and that the cart_url
matches as well.
Ensure the following for each item and its values:
unit_price
, total_amount
and tax_amount
must be in centsimage_url
, name
, and description
total_amount
must equal (quantity X unit_price) + tax_amount