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.
www, the API returns it with www.www, the API returns it without www.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 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.
The following route types are supported.
The following route variables are supported.
Example: