Create a sales channel
Create a sales channel for a store.
Create 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.
API Token authentication
The ID of the store to create the sales channel for.
store_01J8Z5F8W9K8M4A7B3C2D1E0FGSales channel type. "custom" is a headless channel: it requires a name and takes an optional public url. "quick-link" is a one-page store whose handle is auto-generated; it supports neither name nor url.
customPossible values: Merchant-facing custom name. Required for custom channels; not supported for quick-link.
Vintagio OnepagerOptional public url for the channel. Custom channels only; not supported for quick-link.
https://www.bestshirt.vintagio.comCreated response
Unauthenticated response
Validation error response
Error response
POST /api/ecommerce/v1/stores/{store_id}/sales-channels HTTP/1.1
Host: developers.hostinger.com
Authorization: Bearer YOUR_SECRET_TOKEN
Content-Type: application/json
Accept: */*
Content-Length: 87
{
"type": "custom",
"name": "Vintagio Onepager",
"url": "https://www.bestshirt.vintagio.com"
}{
"sales_channel": {
"id": "scha_01J8Z5F8W9K8M4A7B3C2D1E0FG",
"type": "custom",
"is_primary": false,
"is_active": true,
"external_id": null,
"name": "Vintagio Onepager",
"domain": "https://www.bestshirt.vintagio.com"
}
}Last updated
Was this helpful?