Sites
Create and manage sites and routes for headless storefront sales channels.
Note: For the “urls” object, we no longer modify the www prefix of the primary URL. The API returns URLs exactly as the customer enters them, similar to the “url” field.
- If the customer saves a URL with
www, the API returns it withwww. - If the customer saves a URL without
www, the API returns it withoutwww.
Sites
Sites link headless storefronts to sales channels. To create a site, send a POST request to /stores/{{STORE_HASH}}/v3/sites.
Response
To get a list of sites, send a GET request to /stores/{{STORE_HASH}}/v3/sites.
Site routes
Site routes tell BigCommerce how to link to pages on a headless storefront. To create a route for a site, send a POST request to /stores/{{STORE_HASH}}/v3/sites/{site_id}/routes.
Route types
The following route types are supported.
Route variables
The following route variables are supported.
Example: