For the complete documentation index, see llms.txt. This page is also available as Markdown.

Update sales channel

Update a custom sales channel. The merchant-facing name and the public url (returned as the channel domain) can be changed. Pass null to clear a value.

Update sales channel

patch

Update a custom sales channel. The merchant-facing name and the public url (returned as the channel domain) can be changed. Pass null to clear a value.

Authorizations
AuthorizationstringRequired

API Token authentication

Path parameters
store_idstringRequired

The ID of the store that owns the sales channel.

Example: store_01J8Z5F8W9K8M4A7B3C2D1E0FG
sales_channel_idstringRequired

The ID of the sales channel to update.

Example: scha_01J8Z5F8W9K8M4A7B3C2D1E0FG
Body
namestring · max: 100 · nullableOptional

Merchant-facing custom name shown in the sales channels list. Pass null to clear it.

Example: Vintagio Onepager
urlstring · max: 2048 · nullableOptional

Public address where the custom sales channel lives. Pass null to clear it.

Example: https://www.bestshirt.vintagio.com
Responses
200

Success response

application/json
patch/api/ecommerce/v1/stores/{store_id}/sales-channels/{sales_channel_id}
PATCH /api/ecommerce/v1/stores/{store_id}/sales-channels/{sales_channel_id} HTTP/1.1
Host: developers.hostinger.com
Authorization: Bearer YOUR_SECRET_TOKEN
Content-Type: application/json
Accept: */*
Content-Length: 71

{
  "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?