Site Checkout URL
Upsert a Siteʼs Checkout URL
PUT https://api.bigcommerce.com/stores/{store_hash}/v3/channels/{channel_id}/site/checkout-urlRequest
Creates or updates (upserts) a siteʼs checkout URL
Authentication
- X-Auth-Token in header
Parameters
- store_hash in path - string
- Accept in header with default of application/json - stringrequiredThe MIME type of the response body.
- channel_id in path - integerrequiredThe ID of a channel.
- Content-Type in header with default of application/json - stringrequiredThe MIME type of the request body.
Body
object | application/json
urlstring
Unique site checkout URL. It must be valid and a sub-domain of the primary channel URL. Note: The API will change all URLs using the HTTP protocol to HTTPS.Example: https://checkout.kittens.mybigcommerce.com
example
Response
OK
Body
object | application/json
idinteger
The ID of the site.urlstring
The fully qualified URL (including host and scheme) where this site is hosted. All URLs generated for this site will be appended to this.Example: https://kittens.mybigcommerce.com/channel_idinteger
The channel to which this site is attached. Each site belongs to a single channel, and each channel can have either zero or more sites.created_atstring
The date-time that this site was created, formatted as an RFC-3339 string.Example: 2018-01-04T04:15:50.000Zupdated_atstring
The date-time that this site was last updated, formatted as an RFC-3339 string.Example: 2018-01-04T04:15:50.000Zssl_statusstring
Indicates if a private/dedicated SSL is installed on this site, or if itʼs using shared SSL.Allowed: dedicated | shared
urlsarray[object]
All URLs that belong to the site, includingprimary
,canonical
, andcheckout
URLs.is_checkout_url_customizedboolean
Indicates whether the channel uses a custom checkout domain. Whenfalse
, the checkout domain falls back to the default channel’s primary URL.
example
Delete a Siteʼs Checkout URL
DELETE https://api.bigcommerce.com/stores/{store_hash}/v3/channels/{channel_id}/site/checkout-urlRequest
Deletes a siteʼs checkout URL. After deletion, a shared checkout URL is used.
Authentication
- X-Auth-Token in header
Parameters
- store_hash in path - string
- Accept in header with default of application/json - stringrequiredThe MIME type of the response body.
- channel_id in path - integerrequiredThe ID of a channel.
example
Response
OK.
data
and meta
are empty objects.Body
object | application/json
dataobject
example
Did you find what you were looking for?