Contains information about the domains that can access the Bold Checkout APIs. Use these endpoints to manage the approved domains.
Add Domain to CORS Allowlist
Adds a domain to the list of domains with permission to call the Bold Checkout APIs.
Use this endpoint if you are self-hosting your checkout. This endpoint is also required to enable self-hosted development stores to call the Bold Checkout APIs.
Authorizations:
path Parameters
shop_identifier required | string Example: zp3oafdor9 The identifier of the shop, which can be retrieved by making a request to the Get Shop Info endpoint. |
Request Body schema: application/json
domain | string (CORSDomain) A domain used to call the Bold Checkout APIs. The string must consist of a fully qualified domain name (FQDN) and the protocol used to access it. |
Responses
Request samples
- Payload
{
}
Response samples
- 200
- 500
{- "data": [
]
}
Get CORS Allowlist
Retrieves the list of domains with permission to call the Bold Checkout APIs.
Authorizations:
path Parameters
shop_identifier required | string Example: zp3oafdor9 The identifier of the shop, which can be retrieved by making a request to the Get Shop Info endpoint. |
Responses
Response samples
- 200
- 500
{- "data": [
]
}
Delete Domain from CORS Allowlist
Deletes a domain from the list of domains with permission to call the Bold Checkout APIs. Specify the domain to be deleted using the domain_id
in the request route.
Authorizations:
path Parameters
shop_identifier required | string Example: zp3oafdor9 The identifier of the shop, which can be retrieved by making a request to the Get Shop Info endpoint. |
domain_id required | number Example: 1 The identifier of the domain. Retrieve the identifier using the Get CORS Allowlist endpoint. |
Responses
Response samples
- 200
- 404
[- null
]
Contains information about an external payment gateway that can be integrated into a store's checkout experience. Use these endpoints to manipulate the external payment gateways for a store.
Create External Payment Gateway
Adds an external payment gateway to a store.
Authorizations:
path Parameters
shop_identifier required | string Example: zp3oafdor9 The identifier of the shop, which can be retrieved by making a request to the Get Shop Info endpoint. |
Request Body schema: application/json
name required | string The name of the external payment gateway resource. |
base_url required | string The base URL that Checkout calls when performing payment operations. |
iframe_url | string or null The URL to be embedded into the payment iframe. |
location | string The location during checkout that the payment |
Array of objects (Key Value Pair) [ items >= 0 items ] An array of headers to add to requests to | |
api_token | string or null An API token associated with the external payment gateway, defined by the sender. If provided, Bold includes this token in the authentication header when sending requests to this external payment gateway. For more information, refer to Verify requests from Bold Checkout. |
partial_capture required | boolean If true, the external payment gateway supports partial payment captures. |
additional_order_details required | boolean If true, additional metadata can be included on payments added to orders. |
provider_id required | string The identifier, generated by the external payment gateway, that Checkout sends in payment-related requests to the gateway. The identifier must be a unique value for each store that installs the external payment gateway. |
currency required | string = 3 characters The currency supported by the external payment gateway, in ISO-4217 format. |
Responses
Request samples
- Payload
{- "name": "External Payment Gateway",
- "base_url": "www.example.com/payments",
- "iframe_url": "www.example.com/gateway",
- "api_token": "XjqnSQWYAZXt",
- "partial_capture": true,
- "additional_order_details": true,
- "provider_id": "8ad85ccf-7fd6-4f4b-a1a2-dff42fb3e228",
- "currency": "CAD",
- "http_headers": [
- {
- "key": "foo",
- "value": "bar"
}
], - "location": "payment_method_below"
}
Response samples
- 200
- 422
{- "data": {
- "external_payment_gateway": {
- "public_id": "VfYRxzOjRkwG6B2xWbxhPQ",
- "name": "External Payment Gateway",
- "base_url": "www.example.com/payments",
- "iframe_url": "www.example.com/gateway",
- "api_token": "XjqnSQWYAZXt",
- "partial_capture": true,
- "additional_order_details": true,
- "provider_id": "8ad85ccf-7fd6-4f4b-a1a2-dff42fb3e228",
- "currency": "CAD",
- "location": "payment_method_below"
}
}
}
List External Payment Gateways
Lists external payment gateways for a given store.
Authorizations:
path Parameters
shop_identifier required | string Example: zp3oafdor9 The identifier of the shop, which can be retrieved by making a request to the Get Shop Info endpoint. |
Responses
Response samples
- 200
{- "data": {
- "external_payment_gateways": [
- {
- "public_id": "SqCAft3jGmwDVK8aQbhi2R",
- "name": "First External Payment Gateway",
- "base_url": "www.example-1.com/payments",
- "iframe_url": "www.example-1.com/gateway",
- "api_token": "XjqnSQWYAZXt",
- "partial_capture": true,
- "additional_order_details": true,
- "provider_id": "5dgg27kce-2jd7-1h8v-j2f5-xsgn2di9s764",
- "currency": "CAD",
- "location": "payment_method_below",
- "http_headers": [
- {
- "key": "foo",
- "value": "bar"
}
]
}, - {
- "public_id": "VfYRxzOjRkwG6B2xWbxhPQ",
- "name": "Second External Payment Gateway",
- "base_url": "www.example-2.com/payments",
- "iframe_url": "www.example-2.com/gateway",
- "api_token": "PjqnSQWYAZXz",
- "partial_capture": true,
- "additional_order_details": true,
- "provider_id": "8ad85ccf-7fd6-4f4b-a1a2-dff42fb3e228",
- "currency": "CAD",
- "location": "payment_method_below",
- "http_headers": null
}
]
}
}
Update External Payment Gateway
Updates an external payment gateway on a store.
Authorizations:
path Parameters
shop_identifier required | string Example: zp3oafdor9 The identifier of the shop, which can be retrieved by making a request to the Get Shop Info endpoint. |
public_gateway_id required | string The public identifier generated by Bold Checkout adds a payment gateway to a store. |
Request Body schema: application/json
name required | string The name of the external payment gateway resource. |
base_url required | string The base URL that Checkout calls when performing payment operations. |
iframe_url | string or null The URL to be embedded into the payment iframe. |
location | string The location during checkout that the payment |
Array of objects (Key Value Pair) [ items >= 0 items ] An array of headers to add to requests to | |
api_token | string or null An API token associated with the external payment gateway, defined by the sender. If provided, Bold includes this token in the authentication header when sending requests to this external payment gateway. For more information, refer to Verify requests from Bold Checkout. |
partial_capture required | boolean If true, the external payment gateway supports partial payment captures. |
additional_order_details required | boolean If true, additional metadata can be included on payments added to orders. |
provider_id required | string The identifier, generated by the external payment gateway, that Checkout sends in payment-related requests to the gateway. The identifier must be a unique value for each store that installs the external payment gateway. |
currency required | string = 3 characters The currency supported by the external payment gateway, in ISO-4217 format. |
Responses
Request samples
- Payload
{- "name": "External Payment Gateway",
- "base_url": "www.example.com/payments",
- "iframe_url": "www.example.com/gateway",
- "api_token": "XjqnSQWYAZXt",
- "partial_capture": true,
- "additional_order_details": true,
- "provider_id": "8ad85ccf-7fd6-4f4b-a1a2-dff42fb3e228",
- "currency": "CAD",
- "http_headers": [
- {
- "key": "foo",
- "value": "bar"
}
], - "location": "payment_method_below"
}
Response samples
- 200
- 422
{- "data": {
- "external_payment_gateway": {
- "public_id": "VfYRxzOjRkwG6B2xWbxhPQ",
- "name": "External Payment Gateway",
- "base_url": "www.example.com/payments",
- "iframe_url": "www.example.com/gateway",
- "api_token": "XjqnSQWYAZXt",
- "partial_capture": true,
- "additional_order_details": true,
- "provider_id": "8ad85ccf-7fd6-4f4b-a1a2-dff42fb3e228",
- "currency": "CAD",
- "http_headers": [
- {
- "key": "foo",
- "value": "bar"
}
], - "location": "payment_method_below"
}
}
}
Delete External Payment Gateway
Removes an external payment gateway from a store.
Authorizations:
path Parameters
shop_identifier required | string Example: zp3oafdor9 The identifier of the shop, which can be retrieved by making a request to the Get Shop Info endpoint. |
public_gateway_id required | string The public identifier generated by Bold Checkout adds a payment gateway to a store. |
Responses
Response samples
- 200
- 422
{- "data": { }
}
Contains information about Gift Cards on a given store. Use this endpoint to get all data associated with a Gift Card for a store.
Get Gift Card
Gets a gift card on a given shop, specified by either the public_payment_method_id
or a combination of the card_token
and card_pin
.
For more information, refer to the Manage Gift Cards guide.
Authorizations:
path Parameters
shop_identifier required | string Example: zp3oafdor9 The identifier of the shop, which can be retrieved by making a request to the Get Shop Info endpoint. |
query Parameters
required | Public Payment Method Id (object) or Card Token and Pin (object) |
Responses
Response samples
- 200
- 422
- 500
{- "data": {
- "gift_card": {
- "card_token": "OAVXDVRAJUGFMHEK",
- "amount": 5000,
- "balance": 2575,
- "recipient_name": "John",
- "message": "Enjoy this gift certificate from us.",
- "expiry_date": "2025-04-01",
- "customer_name": "Jane",
- "customer_email": "[email protected]"
}
}
}
Contains a shared secret, which is used to configure the webhooks that your integration uses.
Configure Integration Settings
Configures webhooks to integrate with your shop, using a given shared secret.
Read more about configuring webhook integration in the Register for Webhooks guide.
Authorizations:
path Parameters
shop_identifier required | string Example: zp3oafdor9 The identifier of the shop, which can be retrieved by making a request to the Get Shop Info endpoint. |
Request Body schema: application/json
shared_secret required | string A string used to sign callback url requests for webhook subscriptions. |
Responses
Request samples
- Payload
{- "shared_secret": "96c6db504d593697229066dde7c88f2e"
}
Response samples
- 200
- 422
- 500
[ ]
Contains information about the Checkout Lightweight Frontend Experience (LiFE) Elements, which enable you to add custom elements into your checkout experience. Use these endpoints to add, edit, and delete elements.
Create Element
Adds a LiFE element to the store's checkout at a specific location. For more information about the locations and where they are, refer to the Checkout LiFE guide.
Authorizations:
path Parameters
shop_identifier required | string Example: zp3oafdor9 The identifier of the shop, which can be retrieved by making a request to the Get Shop Info endpoint. |
Request Body schema: application/json
location required | string Enum: "customer_info" "shipping" "billing_address_after" "shipping_lines" "below_actions" "summary_above_header" "payment_gateway" "thank_you_message" "order_confirmation" "order_details" "main_content_beginning" "main_content_end" "payment_method_above" "paypal_additional_information" The location where the LiFE element will be rendered. For more information about possible element locations, refer to the Checkout LiFE guide. |
input_type required | string Enum: "text" "checkbox" "html" "textarea" "dropdown" "datepicker" The input type of the LiFE element. |
input_default | string or null The default input. The behavior of this field depends on the
|
input_label | string or null If the element requires shopper input, this is the label for the input. |
input_placeholder | string or null The input placeholder value of the LiFE element. The behavior of this field depends on the
|
input_required required | boolean or null Indicates whether input from the shopper is required. |
input_regex | string or null The regular expression that validates the input for |
meta_data_field required | string The metadata key from the order's |
order_asc required | integer The index of the element. If multiple elements appear in one location, this value indicates the order in which they appear. |
Responses
Request samples
- Payload
{- "location": "customer_info",
- "input_type": "text",
- "input_default": "initial value",
- "input_label": "Shipping notes",
- "input_placeholder": "Shipping notes here",
- "input_required": true,
- "input_regex": "[0-9]{4}",
- "meta_data_field": "shipping_notes",
- "order_asc": 1
}
Response samples
- 200
- 422
{- "data": {
- "life_elements": {
- "public_id": "VfYRxzOjRkwG6B2xWbxhPQ",
- "location": "customer_info",
- "input_type": "text",
- "input_default": "initial value",
- "input_label": "Shipping notes",
- "input_placeholder": "Shipping notes here",
- "input_required": true,
- "input_regex": "[0-9]{4}",
- "meta_data_field": "shipping_notes",
- "order_asc": 1
}
}
}
List Elements
Lists the LiFE elements that are associated with a given store's checkout.
Authorizations:
path Parameters
shop_identifier required | string Example: zp3oafdor9 The identifier of the shop, which can be retrieved by making a request to the Get Shop Info endpoint. |
Responses
Response samples
- 200
{- "data": {
- "life_elements": [
- {
- "public_id": "VfYRxzOjRkwG6B2xWbxhPQ",
- "location": "customer_info",
- "input_type": "text",
- "input_default": "initial value",
- "input_label": "Shipping notes",
- "input_placeholder": "Shipping notes here",
- "input_required": true,
- "input_regex": "[0-9]{4}",
- "meta_data_field": "shipping_notes",
- "order_asc": 1
}
]
}
}
Update Element
Updates a LiFE element that already exists on a store's checkout. You can edit any of the element's attributes using this endpoint.
Authorizations:
path Parameters
shop_identifier required | string Example: zp3oafdor9 The identifier of the shop, which can be retrieved by making a request to the Get Shop Info endpoint. |
public_element_id required | string Example: VfYRxzOjRkwG6B2xWbxhPQ The Bold-generated identifier of the LiFE elements. |
Request Body schema: application/json
location required | string Enum: "customer_info" "shipping" "billing_address_after" "shipping_lines" "below_actions" "summary_above_header" "payment_gateway" "thank_you_message" "order_confirmation" "order_details" "main_content_beginning" "main_content_end" "payment_method_above" "paypal_additional_information" The location where the LiFE element will be rendered. For more information about possible element locations, refer to the Checkout LiFE guide. |
input_type required | string Enum: "text" "checkbox" "html" "textarea" "dropdown" "datepicker" The input type of the LiFE element. |
input_default | string or null The default input. The behavior of this field depends on the
|
input_label | string or null If the element requires shopper input, this is the label for the input. |
input_placeholder | string or null The input placeholder value of the LiFE element. The behavior of this field depends on the
|
input_required required | boolean or null Indicates whether input from the shopper is required. |
input_regex | string or null The regular expression that validates the input for |
meta_data_field required | string The metadata key from the order's |
order_asc required | integer The index of the element. If multiple elements appear in one location, this value indicates the order in which they appear. |
Responses
Request samples
- Payload
{- "location": "customer_info",
- "input_type": "text",
- "input_default": "initial value",
- "input_label": "Shipping notes",
- "input_placeholder": "Shipping notes here",
- "input_required": true,
- "input_regex": "[0-9]{4}",
- "meta_data_field": "shipping_notes",
- "order_asc": 1
}
Response samples
- 200
- 422
{- "data": {
- "life_elements": {
- "public_id": "VfYRxzOjRkwG6B2xWbxhPQ",
- "location": "customer_info",
- "input_type": "text",
- "input_default": "initial value",
- "input_label": "Shipping notes",
- "input_placeholder": "Shipping notes here",
- "input_required": true,
- "input_regex": "[0-9]{4}",
- "meta_data_field": "shipping_notes",
- "order_asc": 1
}
}
}
Delete Element
Removes a LiFE element from a store's checkout.
Authorizations:
path Parameters
shop_identifier required | string Example: zp3oafdor9 The identifier of the shop, which can be retrieved by making a request to the Get Shop Info endpoint. |
public_element_id required | string Example: VfYRxzOjRkwG6B2xWbxhPQ The Bold-generated identifier of the LiFE elements. |
Responses
Response samples
- 200
- 422
{- "data": { }
}
Contains information about the API overrides on a given store, such as the override type, redirect URL, and shared secret. Use these endpoints to manipulate overrides for a store.
Create API Override
Creates an API override for a given store. The API override is used to customize base functionality. Store level API overrides will apply to all orders, but per-order overrides may take priority. For more information, refer to API Overrides.
Authorizations:
path Parameters
shop_identifier required | string Example: zp3oafdor9 The identifier of the shop, which can be retrieved by making a request to the Get Shop Info endpoint. |
Request Body schema: application/json
override_type required | string (OverrideType) Enum: "address_validate" "shipping" "discount" "inventory" "tax" The Checkout functionality that is overridden by this API override. |
url required | string (OverrideURL) The destination URL at which a request will be made when functionality relating to this |
shared_secret required | string (OverrideSharedSecret) [ 8 .. 255 ] characters Your shared secret, a random string of sufficient length. Bold uses this string and the current date to create a signature for each override request. |
Responses
Request samples
- Payload
{- "override_type": "discount",
- "shared_secret": "aq9834g4aqkdwa0"
}
Response samples
- 200
- 422
{- "data": {
- "public_id": "1",
- "override_type": "discount",
- "created_at": "2021-11-17 21:03:36",
- "updated_at": "2021-11-17 21:03:36"
}
}
List API Overrides
Retrieves a list of registered API overrides for a given store.
Authorizations:
path Parameters
shop_identifier required | string Example: zp3oafdor9 The identifier of the shop, which can be retrieved by making a request to the Get Shop Info endpoint. |
Responses
Response samples
- 200
{- "data": [
- {
- "public_id": "1",
- "override_type": "discount",
- "created_at": "2021-11-17 21:03:36",
- "updated_at": "2021-11-17 21:03:36"
}, - {
- "public_id": "2",
- "override_type": "shipping",
- "created_at": "2021-11-17 21:03:36",
- "updated_at": "2021-11-17 21:03:36"
}
]
}
Update API Override
Updates the given override. Enables the caller to update the url
property, the override_type
property, or both, for a given API override. A store can have more than one API override of the same type.
Authorizations:
path Parameters
shop_identifier required | string Example: zp3oafdor9 The identifier of the shop, which can be retrieved by making a request to the Get Shop Info endpoint. |
public_id required | string The identifier for the affected API override. |
Request Body schema: application/json
override_type required | string (OverrideType) Enum: "address_validate" "shipping" "discount" "inventory" "tax" The Checkout functionality that is overridden by this API override. |
url required | string (OverrideURL) The destination URL at which a request will be made when functionality relating to this |
shared_secret required | string (OverrideSharedSecret) [ 8 .. 255 ] characters Your shared secret, a random string of sufficient length. Bold uses this string and the current date to create a signature for each override request. |
Responses
Request samples
- Payload
{- "override_type": "discount",
- "shared_secret": "aq9834g4aqkdwa0"
}
Response samples
- 200
- 422
{- "data": {
- "public_id": "1",
- "override_type": "discount",
- "created_at": "2021-11-17 21:03:36",
- "updated_at": "2021-11-20 215:09:22"
}
}
Delete API Override
Delete an API override from the given store.
Authorizations:
path Parameters
shop_identifier required | string Example: zp3oafdor9 The identifier of the shop, which can be retrieved by making a request to the Get Shop Info endpoint. |
public_id required | string The identifier for the affected API override. |
Responses
Response samples
- 200
- 422
{- "data": { }
}
Contains information about the CSS used to style the Secure Payments Interface (SPI). Use these endpoints to manipulate the SPI iFrame for all orders on a store.
Get Shop Payment Styling
Gets the CSS styling that is currently applied to the SPI iframe.
Authorizations:
path Parameters
shop_identifier required | string Example: zp3oafdor9 The identifier of the shop, which can be retrieved by making a request to the Get Shop Info endpoint. |
Responses
Response samples
- 200
- 401
- 404
- 422
- 500
{- "data": {
- "style_sheet": {
- "css_rules": [
- {
- "cssText": ".ToggleField { color:red; }"
}
], - "media_rules": [
- {
- "conditionText": "screen and (max-height: 600px)",
- "cssRules": [
- {
- "cssText": ".ToggleField__Text { color:blue; }"
}
]
}
]
}
}
}
Create Shop Payment Styling
Create and apply a series of CSS rules and media rules to the SPI iframe. Using this endpoint applies these changes to all orders placed in the checkout.
Note that if you are using Bold-hosted checkout, these settings will be overridden by any changes to the CSS in the Bold Checkout Admin. Refer to Style the Checkout with CSS for more information.
Authorizations:
path Parameters
shop_identifier required | string Example: zp3oafdor9 The identifier of the shop, which can be retrieved by making a request to the Get Shop Info endpoint. |
Request Body schema: application/json
Array of objects A set of CSS rules to be applied to the SPI iframe. | |
Array of objects A set of media queries to be applied to the SPI iframe. |
Responses
Request samples
- Payload
{- "css_rules": [
- {
- "cssText": ".ToggleField { color:red; }"
}
], - "media_rules": [
- {
- "conditionText": "screen and (max-height: 600px)",
- "cssRules": [
- {
- "cssText": ".ToggleField__Text { color:blue; }"
}
]
}
]
}
Response samples
- 200
- 401
- 422
{- "data": {
- "css_rules": [
- {
- "cssText": ".ToggleField { color:red; }"
}
], - "media_rules": [
- {
- "conditionText": "screen and (max-height: 600px)",
- "cssRules": [
- {
- "cssText": ".ToggleField__Text { color:blue; }"
}
]
}
]
}
}
Delete Shop Payment Styling
Removes all styling from the SPI iframe.
Authorizations:
path Parameters
shop_identifier required | string Example: zp3oafdor9 The identifier of the shop, which can be retrieved by making a request to the Get Shop Info endpoint. |
Responses
Response samples
- 401
{- "error": "invalid_token",
- "error_description": "The access token is invalid or has expired"
}
Contains information about the Remote State Authority on a given store, such as the URL and shared secret. Use these endpoints to manipulate configuration details for the Remote State Authority for a store. Refer to Create a Checkout Remote State Authority for more information.
Connect Remote State Authority
Connects Remote State Authority to a given shop.
Authorizations:
path Parameters
shop_identifier required | string Example: zp3oafdor9 The identifier of the shop, which can be retrieved by making a request to the Get Shop Info endpoint. |
Request Body schema: application/json
url required | string The destination URL to which a request will be made when order state changes occur. |
shared_secret required | string [ 8 .. 255 ] characters Your shared secret, which can be any string you choose. Bold uses this string and the current date to create a signature for each request. |
Responses
Request samples
- Payload
{- "shared_secret": "d5210fa5563dd4f5b06f00d0"
}
Response samples
- 200
- 422
{
}
Update Remote State Authority Connection
Updates connection to a Remote State Authority for a given shop.
Authorizations:
path Parameters
shop_identifier required | string Example: zp3oafdor9 The identifier of the shop, which can be retrieved by making a request to the Get Shop Info endpoint. |
Request Body schema: application/json
url | string The destination URL to which a request will be made when order state changes occur. |
shared_secret | string [ 8 .. 255 ] characters Your shared secret, which can be any string you choose. Bold uses this string and the current date to create a signature for each request. |
Responses
Request samples
- Payload
{- "shared_secret": "d5210fa5563dd4f5b06f00d0"
}
Response samples
- 200
- 422
{
}
Get Remote State Authority
Gets Remote State Authority connection details for a given shop.
Authorizations:
path Parameters
shop_identifier required | string Example: zp3oafdor9 The identifier of the shop, which can be retrieved by making a request to the Get Shop Info endpoint. |
Responses
Response samples
- 200
{
}
Delete Remote State Authority
Removes Remote State Authority functionality for a given shop.
Authorizations:
path Parameters
shop_identifier required | string Example: zp3oafdor9 The identifier of the shop, which can be retrieved by making a request to the Get Shop Info endpoint. |
Responses
Response samples
- 200
- 422
{- "data": {
- "remote_state_authority": null
}
}
Contains information about customers' payment methods. Use these endpoints to retrieve or modify saved payment methods.
List Saved Payment Methods
Lists all saved payment methods for a specific customer.
Authorizations:
path Parameters
shop_identifier required | string Example: zp3oafdor9 The identifier of the shop, which can be retrieved by making a request to the Get Shop Info endpoint. |
public_customer_id required | string Example: uqw94joiefrqwo4 The public identifier for a customer, returned as the |
Responses
Response samples
- 200
{- "success": true,
- "cards": [
- {
- "type": "credit_card",
- "public_id": "ZdtkGke3jqR4qeI9IvtrHaRQZxdobJ5SaGdcX7V22O0v2U5bBqDGb6FHAkpPk4KS",
- "is_default": false,
- "cc_type": "Visa",
- "last_four": "1111",
- "expiration": {
- "date": "2023-11"
}
}
]
}
Delete Saved Payment Method
Deletes the saved payment method associated with a public payment identifier.
Authorizations:
path Parameters
shop_identifier required | string Example: zp3oafdor9 The identifier of the shop, which can be retrieved by making a request to the Get Shop Info endpoint. |
public_payment_id required | string Example: W0fe4CNraY09ooQ6DUlXb0hNUBHk7LF9wZOEmVOL92qvggIUKq0ne9qcbfCSnDwZ The public identifier for a saved payment method. |
Responses
Response samples
- 200
{- "success": true,
- "defaultCardId": 1
}
Contains information about the store's checkout configuration, which is set in the Bold Checkout admin.
Get Shop General Settings
Retrieves basic settings from the shop's General Settings section in the Bold Checkout admin.
Authorizations:
path Parameters
shop_identifier required | string Example: zp3oafdor9 The identifier of the shop, which can be retrieved by making a request to the Get Shop Info endpoint. |
Responses
Response samples
- 200
{- "data": {
- "checkout_process": {
- "company_name_option": "hidden",
- "phone_number_required": true,
- "accepts_marketing_checkbox_option": "unchecked",
- "require_inventory_check": false,
- "create_platform_customer": false
}, - "address_autocomplete": {
- "provider": "google",
- "api_key": "awefa9304q9wfqf43jfaw904kfwkaslserfa94"
}, - "public_order_id": {
- "enabled": true
}
}
}
Update Shop General Settings
Updates basic settings from the shop's General Settings section in the Bold Checkout admin.
Authorizations:
path Parameters
shop_identifier required | string Example: zp3oafdor9 The identifier of the shop, which can be retrieved by making a request to the Get Shop Info endpoint. |
Request Body schema: application/json
object A unique value that Bold generates and uses to track orders. | |||
|
Responses
Request samples
- Payload
{- "public_order_id": {
- "enabled": true
}
}
Response samples
- 200
- 422
{- "data": {
- "checkout_process": {
- "company_name_option": "hidden",
- "phone_number_required": true,
- "accepts_marketing_checkbox_option": "unchecked",
- "require_inventory_check": false,
- "create_platform_customer": false
}, - "address_autocomplete": {
- "provider": "google",
- "api_key": "awefa9304q9wfqf43jfaw904kfwkaslserfa94"
}, - "public_order_id": {
- "enabled": true
}
}
}
Update Phone Number Requirement
Updates the phone number requirement setting for a store. This setting can also be edited from the store's General Settings section in the Bold Checkout admin.
Authorizations:
path Parameters
shop_identifier required | string Example: zp3oafdor9 The identifier of the shop, which can be retrieved by making a request to the Get Shop Info endpoint. |
Request Body schema: application/json
phone_number_required | boolean Indicates whether customers are required to enter their phone number during checkout. |
Responses
Request samples
- Payload
{- "phone_number_required": true
}
Response samples
- 200
- 422
{- "data": {
- "checkout_process": {
- "company_name_option": "hidden",
- "phone_number_required": true,
- "accepts_marketing_checkbox_option": "unchecked",
- "require_inventory_check": false,
- "create_platform_customer": false
}, - "address_autocomplete": {
- "provider": "google",
- "api_key": "awefa9304q9wfqf43jfaw904kfwkaslserfa94"
}, - "public_order_id": {
- "enabled": true
}
}
}
Update Inventory Check Requirement
Updates the inventory check requirement setting for a store. If required, an inventory check is performed in response to the Process Order endpoint, and the endpoint returns a 422 error if there is not enough inventory to complete the order.
The inventory check is required by default. You can use this endpoint to disable the inventory check requirement during order processing.
Authorizations:
path Parameters
shop_identifier required | string Example: zp3oafdor9 The identifier of the shop, which can be retrieved by making a request to the Get Shop Info endpoint. |
Request Body schema: application/json
require_inventory_check | boolean Indicates whether an inventory check is required when processing an order. |
Responses
Request samples
- Payload
{- "require_inventory_check": false
}
Response samples
- 200
- 422
{- "data": {
- "checkout_process": {
- "company_name_option": "hidden",
- "phone_number_required": true,
- "accepts_marketing_checkbox_option": "unchecked",
- "require_inventory_check": false,
- "create_platform_customer": false
}, - "address_autocomplete": {
- "provider": "google",
- "api_key": "awefa9304q9wfqf43jfaw904kfwkaslserfa94"
}, - "public_order_id": {
- "enabled": true
}
}
}
Update Platform Customer Creation Setting
Updates the platform customer creation setting for a store. On many platforms, whenever Bold creates a new order, it also creates a new customer if it does not already exist on the platform. Some platforms, such as Adobe Commerce, do not behave this way natively, and attempting to create a customer during order creation can cause unexpected errors. Updating this setting to false
prevents Bold from attempting to create a customer on the platform when a new order is created.
This setting defaults to true
.
Authorizations:
path Parameters
shop_identifier required | string Example: zp3oafdor9 The identifier of the shop, which can be retrieved by making a request to the Get Shop Info endpoint. |
Request Body schema: application/json
create_platform_customer | boolean Indicates whether customers should be created on the platform during order creation. |
Responses
Request samples
- Payload
{- "create_platform_customer": false
}
Response samples
- 200
- 422
{- "data": {
- "checkout_process": {
- "company_name_option": "hidden",
- "phone_number_required": true,
- "accepts_marketing_checkbox_option": "unchecked",
- "require_inventory_check": false,
- "create_platform_customer": false
}, - "address_autocomplete": {
- "provider": "google",
- "api_key": "awefa9304q9wfqf43jfaw904kfwkaslserfa94"
}, - "public_order_id": {
- "enabled": true
}
}
}
Get PMMC Session
Retrieves a Payment Method Management for Checkout (PMMC) session. Use this endpoint to retrieve the information necessary to load the <iframe>
that enables an authenticated customer to edit their saved payment methods.
Include the either the customer's bold_customer_id
or platform_customer_id
as a query parameter to retrieve their payment method information.
Refer to the PMMC Guide for more information about using this information to load the PMMC <iframe>
for the customer.
Authorizations:
path Parameters
shop_identifier required | string Example: zp3oafdor9 The identifier of the shop, which can be retrieved by making a request to the Get Shop Info endpoint. |
query Parameters
platform_customer_id | string Example: platform_customer_id=a90w4q2kopP23F3 A platform-generated identifier of the customer. |
bold_customer_id | string Example: bold_customer_id=uqw94joiefrqwo4 A Bold-generated identifier of the customer. |
Responses
Response samples
- 200
{- "data": {
- "proxy_session_id": "8asefjo8a340",
- "signature": "b42af09234bac1e2d41708e48a902e09b5ff7f12ab428a4fe84053c73dd248fb82f948a549f7b791c5b41915ee4d1ec3935357e9e2317250d0372afa2ebeeb3b",
- "bold_customer_id": "uqw94joiefrqwo4"
}
}
Create Tax Zone Setting
Creates or updates a tax zone setting for a tax zone. There can only be one tax zone setting for a tax zone.
Authorizations:
path Parameters
shop_identifier required | string Example: zp3oafdor9 The identifier of the shop, which can be retrieved by making a request to the Get Shop Info endpoint. |
zone_id required | integer The identifier Bold Checkout uses for a zone. Refer to Create Zone. |
Request Body schema: application/json
tax_provider required | string Enum: "custom" "bold" "avalara" "taxjar" "vertex" "override" The tax provider for the tax zone. If you intend to use a tax override for the shop, set this value to |
Responses
Request samples
- Payload
{- "tax_provider": "override"
}
Response samples
- 200
- 422
{- "data": {
- "zone_id": 42,
- "tax_provider": "override"
}
}
Delete Tax Zone Settings
Deletes a tax zone setting for a tax zone.
Authorizations:
path Parameters
shop_identifier required | string Example: zp3oafdor9 The identifier of the shop, which can be retrieved by making a request to the Get Shop Info endpoint. |
zone_id required | integer The identifier Bold Checkout uses for a zone. Refer to Create Zone. |
Responses
Response samples
- 200
- 422
{- "data": { }
}
Get Tax Zone Settings
Lists all tax zone settings for a shop.
Authorizations:
path Parameters
shop_identifier required | string Example: zp3oafdor9 The identifier of the shop, which can be retrieved by making a request to the Get Shop Info endpoint. |
Responses
Response samples
- 200
{- "data": {
- "tax_zone_settings": [
- {
- "zone_id": 42,
- "tax_provider": "override"
}
]
}
}
Contains information about the warehouses for a given store. This information is required to retrieve shipping rates and calculate taxes.
Create Warehouse
Adds a warehouse to a given shop. Each warehouse must belong to an existing warehouse zone, and a zone can have only one warehouse. Refer to Create Zone.
Authorizations:
path Parameters
shop_identifier required | string Example: zp3oafdor9 The identifier of the shop, which can be retrieved by making a request to the Get Shop Info endpoint. |
zone_id required | integer The identifier Bold Checkout uses for a zone. Refer to Create Zone. |
Request Body schema: application/json
address required | string The street address of the warehouse. |
address2 | string or null An additional address line. |
city required | string The city of the warehouse. |
province_code | string or null The ISO-3166 two-letter state or province code of the warehouse. |
province | string or null The state or province of the warehouse. |
country_code required | string The ISO-3166 two-letter country code of the warehouse. |
country required | string The country of the warehouse. |
postal_code required | string The postal code or zip code of the warehouse. |
extended_postal_code | string or null Additional postal code data. |
Responses
Request samples
- Payload
{- "address": "123 Main St.",
- "address2": "c/o Buck Skaggstein",
- "city": "American Fork",
- "province_code": "UT",
- "province": "Utah",
- "country_code": "US",
- "country": "United States",
- "postal_code": "84003",
- "extended_postal_code": "52"
}
Response samples
- 200
- 404
- 422
{- "data": {
- "address": "123 Main St.",
- "address2": "c/o Buck Skaggstein",
- "city": "American Fork",
- "province_code": "UT",
- "province": "Utah",
- "country_code": "US",
- "country": "United States",
- "postal_code": "84003",
- "extended_postal_code": "52",
- "zone_id": 283
}
}
Update Warehouse
Updates a warehouse.
Authorizations:
path Parameters
shop_identifier required | string Example: zp3oafdor9 The identifier of the shop, which can be retrieved by making a request to the Get Shop Info endpoint. |
zone_id required | integer The identifier Bold Checkout uses for a zone. Refer to Create Zone. |
Request Body schema: application/json
address | string The street address of the warehouse. |
address2 | string or null An additional address line. |
city | string The city of the warehouse. |
province_code | string or null The ISO-3166 two-letter state or province code of the warehouse. |
province | string or null The state or province of the warehouse. |
country_code | string The ISO-3166 two-letter country code of the warehouse. |
country | string The country of the warehouse. |
postal_code | string The postal code or zip code of the warehouse. |
extended_postal_code | string or null Additional postal code data. |
Responses
Request samples
- Payload
{- "address": "123 Main St.",
- "address2": "c/o Buck Skaggstein",
- "city": "American Fork",
- "province_code": "UT",
- "province": "Utah",
- "country_code": "US",
- "country": "United States",
- "postal_code": "84003",
- "extended_postal_code": "52"
}
Response samples
- 200
- 404
- 422
{- "data": {
- "address": "123 Main St.",
- "address2": "c/o Buck Skaggstein",
- "city": "American Fork",
- "province_code": "UT",
- "province": "Utah",
- "country_code": "US",
- "country": "United States",
- "postal_code": "84003",
- "extended_postal_code": "52",
- "zone_id": 283
}
}
Delete Warehouse
Deletes a warehouse.
Authorizations:
path Parameters
shop_identifier required | string Example: zp3oafdor9 The identifier of the shop, which can be retrieved by making a request to the Get Shop Info endpoint. |
zone_id required | integer The identifier Bold Checkout uses for a zone. Refer to Create Zone. |
Responses
Response samples
- 200
- 404
{- "data": { }
}
List Warehouses
Lists all warehouses for a given shop.
Authorizations:
path Parameters
shop_identifier required | string Example: zp3oafdor9 The identifier of the shop, which can be retrieved by making a request to the Get Shop Info endpoint. |
Responses
Response samples
- 200
{- "data": {
- "warehouses": [
- {
- "address": "123 Main St.",
- "address2": "c/o Buck Skaggstein",
- "city": "American Fork",
- "province_code": "UT",
- "province": "Utah",
- "country_code": "US",
- "country": "United States",
- "postal_code": "84003",
- "extended_postal_code": "52",
- "zone_id": 283
}
]
}
}
Contains information about the webhooks registered on a given store. Use these endpoints to manipulate the webhooks registered on your store.
Create Webhook
Create a webhook registration by specifying the destination URL and topic.
For more information on Checkout webhooks, refer to Register for Webhooks.
Authorizations:
path Parameters
shop_identifier required | string Example: zp3oafdor9 The identifier of the shop, which can be retrieved by making a request to the Get Shop Info endpoint. |
Request Body schema: application/json
webhook_topic_id required | integer (WebhookTopicID) The webhook topic identifier. |
callback_url required | string (CallbackURL) The URL that the webhook payload will be sent to. |
Responses
Callbacks
Request samples
- Payload
{- "webhook_topic_id": 1,
}
Response samples
- 200
- 422
{- "data": {
- "webhook_topic_id": 1,
- "webhook_topic_name": "order/created",
- "created_at": "2021-11-17 21:03:36",
- "updated_at": "2021-11-17 21:03:36"
}
}
Callback payload samples
{- "value": {
- "domain": "store-vwd2342klmsdf.mybigcommerce.com",
- "platform_domain": "example.mybigcommerce.com",
- "application_state": {
- "customer": {
- "accepts_marketing": true,
- "first_name": "John",
- "last_name": "Doe",
- "platform_id": "50942578465125",
- "public_id": "pjpTyGh8KzNQ225wPqxgy7LwNuC887h6ecGyp3omwT4XW8SszjVSdHzWHN4NBwqhA",
- "saved_addresses": [ ]
}, - "addresses": {
- "shipping": {
- "id": "123",
- "first_name": "John",
- "last_name": "Doe",
- "address_line_1": "50 Fultz Blvd",
- "address_line_2": "Suite 200",
- "country": "Canada",
- "city": "Winnipeg",
- "province": "Manitoba",
- "country_code": "CA",
- "province_code": "MB",
- "postal_code": "R3Y0L6",
- "business_name": "Acme Inc.",
- "phone_number": "8005550101"
}, - "billing": {
- "id": "123",
- "first_name": "John",
- "last_name": "Doe",
- "address_line_1": "50 Fultz Blvd",
- "address_line_2": "Suite 200",
- "country": "Canada",
- "city": "Winnipeg",
- "province": "Manitoba",
- "country_code": "CA",
- "province_code": "MB",
- "postal_code": "R3Y0L6",
- "business_name": "Acme Inc.",
- "phone_number": "8005550101"
}
}, - "line_items": [
- {
- "product_data": {
- "id": "724bca",
- "product_title": "Oak Cheese Grater",
- "title": "Small",
- "properties": {
- "property1": "string",
- "property2": "string"
}, - "description": "A handmade oak cheese grater to elevate your cheese-eating experience.",
- "quantity": 2,
- "price": 2350,
- "total_price": 4700,
- "visible": 1,
- "line_item_key": "oak_cheese_grater_2643",
- "barcode": "1234ABC",
- "compare_at_price": 4000,
- "weight": 1000,
- "weight_unit": "g",
- "product_id": "oak-cheese-grater",
- "variant_id": "oak-cheese-grater-small",
- "requires_shipping": true,
- "sku": "OAK_GRATER_SM",
- "taxable": true,
- "tags": "Kitchen, Cheese Board, Oak",
- "vendor": "Cheese Boards Unlimited",
- "total_weight": 2000
}
}, - {
- "taxes": [
- {
- "value": 1000,
- "name": "GST",
- "is_included": true
}
]
}, - {
- "fees": [
- {
- "amount": 500,
- "name": "Miscellaneous fee."
}
]
}, - {
- "discounts": [
- {
- "code": "SUMMER5",
- "text": "Summer discount code",
- "value": 500,
- "source": "coupon"
}
]
}, - {
- "fulfilled_quantity": 2
}
], - "fees": [
- {
- "id": "123456789",
- "line_text": "Custom Fee — Added by Plugin",
- "fee_type": "fixed",
- "value": 10,
- "source": "PLUGIN",
- "plugin_uuid": "a52589f8-09df-11ed-b30e-f67072e164ee",
- "taxable": true,
- "show_description": true
}
], - "taxes": [
- {
- "value": 1000,
- "name": "GST",
- "is_included": true
}
], - "discounts": [
- {
- "code": "SUMMER5",
- "text": "Summer discount code",
- "value": 500,
- "source": "coupon"
}
], - "payments": [
- {
- "gateway_public_id": "i7z2xT0sKrDvhGWzex5SLjf5e6ndlQfrRL4AROkfhf3vNBkVT38JKBy5PSjB63qW",
- "amount": 4700,
- "currency": "CAD",
- "type": "spreedly",
- "display_string": "Credit Card Payment",
- "id": "",
- "token": "7uZAMRAf80KiEwibsrrM5IB41yU",
- "retain": false
}
], - "order_total": 4700,
- "order_meta_data": {
- "cart_parameters": {
- "key": "cp-key1",
- "property1": "A cart param.",
- "property2": "A cart param."
}, - "note_attributes": {
- "key": "na-key1",
- "property1": "A note attribute.",
- "property2": "A note attribute."
}, - "notes": "A special delivery note.",
- "tags": [
- "order-1"
]
}, - "shipping": {
- "selected_shipping": {
- "id": "0",
- "description": "Custom weight-based rate: tier 2",
- "amount": 450,
- "code": "EXPID"
}, - "available_shipping_lines": [
- {
- "id": "string",
- "line": {
- "id": "0",
- "description": "Custom weight-based rate: tier 2",
- "amount": 450,
- "code": "EXPID"
}
}
], - "taxes": [
- {
- "value": 1000,
- "name": "GST",
- "is_included": true
}
], - "discounts": [
- {
- "code": "SUMMER5",
- "text": "Summer discount code",
- "value": 500,
- "source": "coupon"
}
]
}, - "resumable_link": "string",
- "flow_id": "external-company-one-page-template",
- "currency": {
- "iso_code": "CAD",
- "iso_numeric_code": 124,
- "symbol": "$",
- "format": "${{amount}}",
- "has_decimal": true,
- "show_iso_code": true
}, - "created_via": "My_Order_Creating_Plugin",
- "is_processed": false,
- "order_id": 79047599,
- "platform_order_id": "1389wjfalsdf9y4r"
}, - "public_order_id": "4U2bwe9SAQY039WGUKM5b2KoxKUKcgyLNvuEKB03Z2HzWbjYB1n4MoC7HuhLT45M",
- "order_id": 829,
- "platform_order_id": "",
- "platform_friendly_identifier": "",
- "order_source": "e3b37c97-8544-4fee-b8f3-cf33deb28be5",
- "order_source_name": "api_v2",
- "fulfillment_status": "unfulfilled",
- "fulfillment_data": [ ]
}
}
List Webhooks
Retrieves a list of registered webhooks.
Authorizations:
path Parameters
shop_identifier required | string Example: zp3oafdor9 The identifier of the shop, which can be retrieved by making a request to the Get Shop Info endpoint. |
Responses
Response samples
- 200
{- "data": [
- {
- "webhook_topic_id": 1,
- "webhook_topic_name": "order/created",
- "created_at": "2022-11-23 17:11:06",
- "updated_at": "2022-11-23 17:11:06"
}, - {
- "webhook_topic_id": 4,
- "webhook_topic_name": "order/failed",
- "created_at": "2022-11-23 17:11:06",
- "updated_at": "2022-11-23 17:11:06"
}
]
}
Update Webhook
Updates the webhook callback URL. Webhook topics cannot be updated.
Learn more about updating webhooks in the Webhooks guide.
Authorizations:
path Parameters
shop_identifier required | string Example: zp3oafdor9 The identifier of the shop, which can be retrieved by making a request to the Get Shop Info endpoint. |
webhook_topic_id required | string The webhook topic id. |
Request Body schema: application/json
callback_url required | string (CallbackURL) The URL that the webhook payload will be sent to. |
Responses
Request samples
- Payload
{
}
Response samples
- 200
- 422
{- "data": {
- "webhook_topic_id": 1,
- "webhook_topic_name": "order/created",
- "created_at": "2021-11-17 21:03:36",
- "updated_at": "2021-11-17 21:03:36"
}
}
Delete Webhook
Removes an existing webhook.
Learn more about removing webhooks in the Webhooks guide.
Authorizations:
path Parameters
shop_identifier required | string Example: zp3oafdor9 The identifier of the shop, which can be retrieved by making a request to the Get Shop Info endpoint. |
webhook_topic_id required | string The webhook topic id. |
Responses
Response samples
- 200
- 422
[ ]
List Webhook Topics
Gets the list of available webhook topics.
Possible webhook topics from Checkout Backend API are:
order/processed
order/created
order/fulfilled
order/abandoned
order/failed
gift_card/created
Read about webhook topics in the Webhook Topics guide.
Authorizations:
path Parameters
shop_identifier required | string Example: zp3oafdor9 The identifier of the shop, which can be retrieved by making a request to the Get Shop Info endpoint. |
Responses
Response samples
- 200
{- "data": [
- {
- "webhook_topic_id": 1,
- "webhook_topic_name": "order/created"
}, - {
- "webhook_topic_id": 2,
- "webhook_topic_name": "order/processed"
}, - {
- "webhook_topic_id": 3,
- "webhook_topic_name": "order/fulfilled"
}
]
}
Contains information about the zones for a given store. Use these endpoints to manipulate the shipping zones, tax zones, and warehouse zones for a store.
Tip: Some operations in Checkout require at least one zone to be created. If you have no interest in specific regions, you can use a default zone instead.
Create Zone
Adds a warehouse, shipping, or tax zone.
Authorizations:
path Parameters
shop_identifier required | string Example: zp3oafdor9 The identifier of the shop, which can be retrieved by making a request to the Get Shop Info endpoint. |
Request Body schema: application/json
name required | string A user-friendly name for the zone. |
type required | string Enum: "shipping" "tax" "warehouse" The type of zone to create. |
default | boolean Default: false Whether this zone should be used in the absence of any other applicable zone. There may only be one default zone for each zone type. |
enabled | boolean Default: true Whether this zone can be used during Checkout. |
required | Array of objects (Regions) [ items >= 0 items ] An array of regions encompassed by this zone. |
Responses
Request samples
- Payload
{- "name": "Western Region",
- "type": "warehouse",
- "regions": [
- {
- "country_code": "CA",
- "province_code": "MB"
}, - {
- "country_code": "CA",
- "province_CODE": "SK"
}
]
}
Response samples
- 200
- 422
{- "data": {
- "id": 283,
- "name": "Western Region",
- "type": "warehouse",
- "default": false,
- "enabled": true,
- "regions": [
- {
- "country_code": "CA",
- "province_code": "MB"
}
]
}
}
List Zones
Lists all zones for a shop.
Authorizations:
path Parameters
shop_identifier required | string Example: zp3oafdor9 The identifier of the shop, which can be retrieved by making a request to the Get Shop Info endpoint. |
Responses
Response samples
- 200
{- "data": {
- "zones": [
- {
- "id": 283,
- "name": "Western Region",
- "type": "warehouse",
- "default": false,
- "enabled": true,
- "regions": [
- {
- "country_code": "CA",
- "province_code": "MB"
}
]
}
]
}
}
Update Zone
Updates an existing zone. Note that it is not possible to update an existing zone's type
.
Authorizations:
path Parameters
shop_identifier required | string Example: zp3oafdor9 The identifier of the shop, which can be retrieved by making a request to the Get Shop Info endpoint. |
zone_id required | integer The identifier Bold Checkout uses for a zone. Refer to Create Zone. |
Request Body schema: application/json
name | string A user-friendly name for the zone. |
default | boolean Default: false Whether this zone should be used if no other zone is applicable. There may only be one default zone for each zone type. |
enabled | boolean Default: true Whether this zone can be used during checkout. |
Array of objects (Regions) [ items >= 0 items ] An array of regions encompassed by this zone. |
Responses
Request samples
- Payload
{- "name": "Western Region",
- "default": true,
- "enabled": false,
- "regions": [
- {
- "country_code": "CA",
- "province_code": "MB"
}
]
}
Response samples
- 200
- 404
- 422
{- "data": {
- "id": 283,
- "name": "Western Region",
- "type": "warehouse",
- "default": false,
- "enabled": true,
- "regions": [
- {
- "country_code": "CA",
- "province_code": "MB"
}
]
}
}
Delete Zone
Deletes an existing zone. Any regions, tax zone settings, and warehouses associated with the zone will also be deleted.
Authorizations:
path Parameters
shop_identifier required | string Example: zp3oafdor9 The identifier of the shop, which can be retrieved by making a request to the Get Shop Info endpoint. |
zone_id required | integer The identifier Bold Checkout uses for a zone. Refer to Create Zone. |
Responses
Response samples
- 200
- 422
{- "data": { }
}