📍 Bolt Help / Core Products / Checkout Everywhere Setup / Create an Order Token for Checkout Everywhere

Create an Order Token for Checkout Everywhere

Use Cases

You need to create a unique cart for the shopper that tracks any changes made before checkout is finalized.

Approach

To create an order token, send a POST request to https://api.bolt.com/v1/remote_checkout/orders.

cURL Request

curl -X POST \
    'https://api.bolt.com/v1/remote_checkout/orders' \
    -H 'X-Nonce: <12-digit-unique-integer>' \
    -H 'X-Publisher-Key: <unique-publisher-id' \
    -H 'X-Authorization-Signature: <generated-after-using-secret-and-nonce>' 
    -H 'Content-Type: application/json' \

    -d `{
  "MerchantDivisionID": "4ab56ad7865ada4ad32",
  "Cart": {
    "Items": [
      {
        "BoltProductID": "e2bb0e7e-5625-536f-8ad7-25a26537ee28",
        "Quantity": 3,
        "Properties": {
          "NameID": "hat-123",
          "ValueID": 4770234
        }
      }
    ]
  },
  "Metadata": {
    "key": {
      "property_1": "string",
      "property_2": "string"
    }
  }
}`

Response


Click to view JSON.


Resources

📖On This Page
Filter by Section
Filter by Topic