New Dashboard Notice
Bolt has launched a new Merchant Dashboard experience. See this corresponding page for help documentation that reflects the Legacy Dashboard.
Please note that Legacy Dashboard documentation may no longer have up to date information on our newest features and releases.
The Merchant Callback API is a general endpoint on your ecommerce server that Bolt can use to make synchronous calls and retrieve information. This information includes details on shipping, tax, and viable discounts codes.
How to Connect Bolt to Your Merchant Callback API Endpoint
- Log in to your Merchant Dashboard.
- Navigate to Administration > API.
- Scroll to Merchant Callbacks.
- Select Add Callback
- Input your URL.
Repeat to set up your Merchant Sandbox environment.
API Format & Details
Use our official API Reference to see request and response formats for each API type.
Merchant Callback API Types
order.create
: Verifies that an order can be created before payment authorization.order.shipping_and_tax
: Retrieves shipping and tax options for a given order.discount.code.apply
: Applies any discounts entered in the Bolt Checkout.
Request Verification
All requests sent from Bolt to your Merchant Callback API are signed by HMAC to ensure authenticity. You must verify these request signatures using the Signing Secret found in your Merchant Dashboard > Developers > API > Keys.
$hmac_header = $_SERVER['X-Bolt-Hmac-Sha256'];
function verify_webhook($payload, $hmac_header) {
$computed_hmac = base64_encode(hash_hmac('sha256', $payload, BOLT_SIGNING_SECRET, true));
return ($computed_hmac == $hmac_header);
}
Errors & Troubleshooting
To send back specific errors in merchant api responses visit the error codes reference article.