curl --request POST \
--url https://api.artisn.desarrollo-redbrand.com/api/v3/channels-stores \
--header 'Content-Type: application/json' \
--data '{
"stores": [
{
"name": "New store 805",
"active": true,
"storeId": 805,
"services": [
{
"name": "DELIVERY",
"active": true
}
],
"vendorId": 16,
"schedulesByChannel": [
{
"channelId": "0F049503-85CF-E511-80C6-000D3A3261F3",
"schedules": [
{
"day": "FRIDAY",
"endTime": "22:30",
"startTime": "10:00"
}
]
}
],
"storeCode": "T005",
"taxesInfo": {
"taxRate": 0,
"vatRatePercentage": 12
},
"contactInfo": {
"phone": "23955400",
"address": "PICHINCHA / QUITO / INAQUITO / AV. AMERICA N37-288 Y VILLALENGUA"
},
"deliveryInfo": {
"cookTime": "10",
"deliveryId": 46356,
"minimumOrder": "0.00",
"shippingCost": 1.99
},
"locationInfo": {
"city": "QUITO",
"latitude": "-0.17250869436401206",
"longitude": "-78.49125266075134"
},
"storeChannels": [
"0F049503-85CF-E511-80C6-000D3A3261F3"
]
}
],
"channels": [
{
"active": true,
"channel": "Llevar",
"vendorId": 16,
"channelId": "0E049503-85CF-E511-80C6-000D3A3261F3",
"additionalInfo": {
"mediaId": "E683B6FE-65A9-4D01-B07B-FA1A3C8BCA8D",
"mediaName": "PICKUP",
"relatedLists": [
{
"listId": "42203FD3-0194-EA11-80EE-000D3A019254",
"listName": "PICKUP ECOMMERCE T"
}
]
},
"channelReferenceName": "Llevar PICKUP"
}
]
}'
{
"accessToken": "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJzdWIiOiIxMjM0NTY3ODkwIiwibmFtZSI6IkpvaG4gRG9lIiwiaWF0IjoxNTE2MjM5MDIyfQ.SflKxwRJSMeKKF2QT4fwpMeJf36POk6yJV_adQssw5c"
}
This endpoint allows registering stores and sales channels in the system. Important!: Each request sent is processed as a new configuration, so if a store, sales channel, warehouse, etc. is not sent, its entire configuration will be deleted
curl --request POST \
--url https://api.artisn.desarrollo-redbrand.com/api/v3/channels-stores \
--header 'Content-Type: application/json' \
--data '{
"stores": [
{
"name": "New store 805",
"active": true,
"storeId": 805,
"services": [
{
"name": "DELIVERY",
"active": true
}
],
"vendorId": 16,
"schedulesByChannel": [
{
"channelId": "0F049503-85CF-E511-80C6-000D3A3261F3",
"schedules": [
{
"day": "FRIDAY",
"endTime": "22:30",
"startTime": "10:00"
}
]
}
],
"storeCode": "T005",
"taxesInfo": {
"taxRate": 0,
"vatRatePercentage": 12
},
"contactInfo": {
"phone": "23955400",
"address": "PICHINCHA / QUITO / INAQUITO / AV. AMERICA N37-288 Y VILLALENGUA"
},
"deliveryInfo": {
"cookTime": "10",
"deliveryId": 46356,
"minimumOrder": "0.00",
"shippingCost": 1.99
},
"locationInfo": {
"city": "QUITO",
"latitude": "-0.17250869436401206",
"longitude": "-78.49125266075134"
},
"storeChannels": [
"0F049503-85CF-E511-80C6-000D3A3261F3"
]
}
],
"channels": [
{
"active": true,
"channel": "Llevar",
"vendorId": 16,
"channelId": "0E049503-85CF-E511-80C6-000D3A3261F3",
"additionalInfo": {
"mediaId": "E683B6FE-65A9-4D01-B07B-FA1A3C8BCA8D",
"mediaName": "PICKUP",
"relatedLists": [
{
"listId": "42203FD3-0194-EA11-80EE-000D3A019254",
"listName": "PICKUP ECOMMERCE T"
}
]
},
"channelReferenceName": "Llevar PICKUP"
}
]
}'
{
"accessToken": "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJzdWIiOiIxMjM0NTY3ODkwIiwibmFtZSI6IkpvaG4gRG9lIiwiaWF0IjoxNTE2MjM5MDIyfQ.SflKxwRJSMeKKF2QT4fwpMeJf36POk6yJV_adQssw5c"
}
response upon logging in
The response is of type object
.