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 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_idstringRequiredExample:
The ID of the store that owns the sales channel.
store_01J8Z5F8W9K8M4A7B3C2D1E0FGsales_channel_idstringRequiredExample:
The ID of the sales channel to update.
scha_01J8Z5F8W9K8M4A7B3C2D1E0FGBody
namestring · max: 100 · nullableOptionalExample:
Merchant-facing custom name shown in the sales channels list. Pass null to clear it.
Vintagio Onepagerurlstring · max: 2048 · nullableOptionalExample:
Public address where the custom sales channel lives. Pass null to clear it.
https://www.bestshirt.vintagio.comResponses
200
Success response
application/json
401
Unauthenticated response
application/json
422
Validation error response
application/json
500
Error 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?