Ecommerce: Sales channels
Create a sales channel
Changed onCreate a sales channel for a store. A "custom" channel is headless: build your own frontend and keep your catalog, orders, shipping and payments in sync through the Ecommerce API. A "quick-link" channel is a hosted one-page store whose handle is auto-generated.
post/api/ecommerce/v1/stores/{store_id}/sales-channels
Request
- Base URL: https://developers.hostinger.com
- URL: https://developers.hostinger.com/api/ecommerce/v1/stores/{store_id}/sales-channels
- Auth: HTTP bearer
Path parameters
store_idstring required
Example:store_01J8Z5F8W9K8M4A7B3C2D1E0FG
The ID of the store to create the sales channel for.
Request body
Example request
{
"type": "custom",
"name": "Vintagio Onepager",
"url": "https://www.bestshirt.vintagio.com"
}Response
Created response
Example response
{
"sales_channel": {
"id": "scha_01J8Z5F8W9K8M4A7B3C2D1E0FG",
"type": "custom",
"is_active": true,
"name": "Vintagio Onepager",
"domain": "https://www.bestshirt.vintagio.com"
}
}Changes
- info
api operation id
ecommerce_createCustomSalesChannelV1removed and replaced withecommerce_createASalesChannelV1 - info
the request property
became optional - info
added the new
quick-linkenum value to the request property
- info
- info
api operation id
ecommerce_createACustomSalesChannelV1removed and replaced withecommerce_createCustomSalesChannelV1
- info