Checkout Billing Address
Add Checkout Billing Address
POST https://api.bigcommerce.com/stores/{store_hash}/v3/checkouts/{checkoutId}/billing-addressRequest
Adds a billing address to an existing checkout.
Required Fields
- country_code
To prevent lost updates due to concurrent requests overriding changes made by others, it is recommended to enable optimistic concurrency control by including the version
field in the request payload. If the provided version does not match the version on the server, a conflict error will be returned, which the client can handle accordingly.
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
first_namestring
last_namestring
emailstring
requiredcompanystring
address1string
address2string
citystring
state_or_provincestring
Represents state or province.state_or_province_codestring
country_codestring
requiredpostal_codestring
phonestring
custom_fieldsarray[object]
You can retrieve custom fields from the Get Form Fields endpoint.versioninteger
The cart version that you expect to apply the updates. If the provided version doesn't match the current cart version, you will receive a conflict error. This field is optional; if not provided, optimistic concurrency control will not apply.Example: 1
example
Response
Body
dataobject
example
Update Checkout Billing Address
PUT https://api.bigcommerce.com/stores/{store_hash}/v3/checkouts/{checkoutId}/billing-address/{addressId}Request
Updates an existing billing address on a checkout.
To prevent lost updates due to concurrent requests overriding changes made by others, it is recommended to enable optimistic concurrency control by including the version
field in the request payload. If the provided version does not match the version on the server, a conflict error will be returned, which the client can handle accordingly.
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.
- addressId in path - integerrequired
Body
first_namestring
last_namestring
emailstring
requiredcompanystring
address1string
address2string
citystring
state_or_provincestring
Represents state or province.state_or_province_codestring
country_codestring
requiredpostal_codestring
phonestring
custom_fieldsarray[object]
You can retrieve custom fields from the Get Form Fields endpoint.versioninteger
The cart version that you expect to apply the updates. If the provided version doesn't match the current cart version, you will receive a conflict error. This field is optional; if not provided, optimistic concurrency control will not apply.Example: 1
example
Response
Body
dataobject