cURL
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"
}
]
}
'import requests
url = "https://api.artisn.desarrollo-redbrand.com/api/v3/channels-stores"
payload = {
"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"
}
]
}
headers = {"Content-Type": "application/json"}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {'Content-Type': 'application/json'},
body: JSON.stringify({
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'
}
]
})
};
fetch('https://api.artisn.desarrollo-redbrand.com/api/v3/channels-stores', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.artisn.desarrollo-redbrand.com/api/v3/channels-stores",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'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'
]
]
]),
CURLOPT_HTTPHEADER => [
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.artisn.desarrollo-redbrand.com/api/v3/channels-stores"
payload := strings.NewReader("{\n \"stores\": [\n {\n \"name\": \"New store 805\",\n \"active\": true,\n \"storeId\": 805,\n \"services\": [\n {\n \"name\": \"DELIVERY\",\n \"active\": true\n }\n ],\n \"vendorId\": 16,\n \"schedulesByChannel\": [\n {\n \"channelId\": \"0F049503-85CF-E511-80C6-000D3A3261F3\",\n \"schedules\": [\n {\n \"day\": \"FRIDAY\",\n \"endTime\": \"22:30\",\n \"startTime\": \"10:00\"\n }\n ]\n }\n ],\n \"storeCode\": \"T005\",\n \"taxesInfo\": {\n \"taxRate\": 0,\n \"vatRatePercentage\": 12\n },\n \"contactInfo\": {\n \"phone\": \"23955400\",\n \"address\": \"PICHINCHA / QUITO / INAQUITO / AV. AMERICA N37-288 Y VILLALENGUA\"\n },\n \"deliveryInfo\": {\n \"cookTime\": \"10\",\n \"deliveryId\": 46356,\n \"minimumOrder\": \"0.00\",\n \"shippingCost\": 1.99\n },\n \"locationInfo\": {\n \"city\": \"QUITO\",\n \"latitude\": \"-0.17250869436401206\",\n \"longitude\": \"-78.49125266075134\"\n },\n \"storeChannels\": [\n \"0F049503-85CF-E511-80C6-000D3A3261F3\"\n ]\n }\n ],\n \"channels\": [\n {\n \"active\": true,\n \"channel\": \"Llevar\",\n \"vendorId\": 16,\n \"channelId\": \"0E049503-85CF-E511-80C6-000D3A3261F3\",\n \"additionalInfo\": {\n \"mediaId\": \"E683B6FE-65A9-4D01-B07B-FA1A3C8BCA8D\",\n \"mediaName\": \"PICKUP\",\n \"relatedLists\": [\n {\n \"listId\": \"42203FD3-0194-EA11-80EE-000D3A019254\",\n \"listName\": \"PICKUP ECOMMERCE T\"\n }\n ]\n },\n \"channelReferenceName\": \"Llevar PICKUP\"\n }\n ]\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://api.artisn.desarrollo-redbrand.com/api/v3/channels-stores")
.header("Content-Type", "application/json")
.body("{\n \"stores\": [\n {\n \"name\": \"New store 805\",\n \"active\": true,\n \"storeId\": 805,\n \"services\": [\n {\n \"name\": \"DELIVERY\",\n \"active\": true\n }\n ],\n \"vendorId\": 16,\n \"schedulesByChannel\": [\n {\n \"channelId\": \"0F049503-85CF-E511-80C6-000D3A3261F3\",\n \"schedules\": [\n {\n \"day\": \"FRIDAY\",\n \"endTime\": \"22:30\",\n \"startTime\": \"10:00\"\n }\n ]\n }\n ],\n \"storeCode\": \"T005\",\n \"taxesInfo\": {\n \"taxRate\": 0,\n \"vatRatePercentage\": 12\n },\n \"contactInfo\": {\n \"phone\": \"23955400\",\n \"address\": \"PICHINCHA / QUITO / INAQUITO / AV. AMERICA N37-288 Y VILLALENGUA\"\n },\n \"deliveryInfo\": {\n \"cookTime\": \"10\",\n \"deliveryId\": 46356,\n \"minimumOrder\": \"0.00\",\n \"shippingCost\": 1.99\n },\n \"locationInfo\": {\n \"city\": \"QUITO\",\n \"latitude\": \"-0.17250869436401206\",\n \"longitude\": \"-78.49125266075134\"\n },\n \"storeChannels\": [\n \"0F049503-85CF-E511-80C6-000D3A3261F3\"\n ]\n }\n ],\n \"channels\": [\n {\n \"active\": true,\n \"channel\": \"Llevar\",\n \"vendorId\": 16,\n \"channelId\": \"0E049503-85CF-E511-80C6-000D3A3261F3\",\n \"additionalInfo\": {\n \"mediaId\": \"E683B6FE-65A9-4D01-B07B-FA1A3C8BCA8D\",\n \"mediaName\": \"PICKUP\",\n \"relatedLists\": [\n {\n \"listId\": \"42203FD3-0194-EA11-80EE-000D3A019254\",\n \"listName\": \"PICKUP ECOMMERCE T\"\n }\n ]\n },\n \"channelReferenceName\": \"Llevar PICKUP\"\n }\n ]\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.artisn.desarrollo-redbrand.com/api/v3/channels-stores")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Content-Type"] = 'application/json'
request.body = "{\n \"stores\": [\n {\n \"name\": \"New store 805\",\n \"active\": true,\n \"storeId\": 805,\n \"services\": [\n {\n \"name\": \"DELIVERY\",\n \"active\": true\n }\n ],\n \"vendorId\": 16,\n \"schedulesByChannel\": [\n {\n \"channelId\": \"0F049503-85CF-E511-80C6-000D3A3261F3\",\n \"schedules\": [\n {\n \"day\": \"FRIDAY\",\n \"endTime\": \"22:30\",\n \"startTime\": \"10:00\"\n }\n ]\n }\n ],\n \"storeCode\": \"T005\",\n \"taxesInfo\": {\n \"taxRate\": 0,\n \"vatRatePercentage\": 12\n },\n \"contactInfo\": {\n \"phone\": \"23955400\",\n \"address\": \"PICHINCHA / QUITO / INAQUITO / AV. AMERICA N37-288 Y VILLALENGUA\"\n },\n \"deliveryInfo\": {\n \"cookTime\": \"10\",\n \"deliveryId\": 46356,\n \"minimumOrder\": \"0.00\",\n \"shippingCost\": 1.99\n },\n \"locationInfo\": {\n \"city\": \"QUITO\",\n \"latitude\": \"-0.17250869436401206\",\n \"longitude\": \"-78.49125266075134\"\n },\n \"storeChannels\": [\n \"0F049503-85CF-E511-80C6-000D3A3261F3\"\n ]\n }\n ],\n \"channels\": [\n {\n \"active\": true,\n \"channel\": \"Llevar\",\n \"vendorId\": 16,\n \"channelId\": \"0E049503-85CF-E511-80C6-000D3A3261F3\",\n \"additionalInfo\": {\n \"mediaId\": \"E683B6FE-65A9-4D01-B07B-FA1A3C8BCA8D\",\n \"mediaName\": \"PICKUP\",\n \"relatedLists\": [\n {\n \"listId\": \"42203FD3-0194-EA11-80EE-000D3A019254\",\n \"listName\": \"PICKUP ECOMMERCE T\"\n }\n ]\n },\n \"channelReferenceName\": \"Llevar PICKUP\"\n }\n ]\n}"
response = http.request(request)
puts response.read_body{
"accessToken": "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJzdWIiOiIxMjM0NTY3ODkwIiwibmFtZSI6IkpvaG4gRG9lIiwiaWF0IjoxNTE2MjM5MDIyfQ.SflKxwRJSMeKKF2QT4fwpMeJf36POk6yJV_adQssw5c"
}{
"statusCode": "<string>",
"message": "<string>"
}Tiendas y canales de venta
Crear tiendas y canales de venta
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
POST
/
v3
/
channels-stores
cURL
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"
}
]
}
'import requests
url = "https://api.artisn.desarrollo-redbrand.com/api/v3/channels-stores"
payload = {
"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"
}
]
}
headers = {"Content-Type": "application/json"}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {'Content-Type': 'application/json'},
body: JSON.stringify({
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'
}
]
})
};
fetch('https://api.artisn.desarrollo-redbrand.com/api/v3/channels-stores', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.artisn.desarrollo-redbrand.com/api/v3/channels-stores",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'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'
]
]
]),
CURLOPT_HTTPHEADER => [
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.artisn.desarrollo-redbrand.com/api/v3/channels-stores"
payload := strings.NewReader("{\n \"stores\": [\n {\n \"name\": \"New store 805\",\n \"active\": true,\n \"storeId\": 805,\n \"services\": [\n {\n \"name\": \"DELIVERY\",\n \"active\": true\n }\n ],\n \"vendorId\": 16,\n \"schedulesByChannel\": [\n {\n \"channelId\": \"0F049503-85CF-E511-80C6-000D3A3261F3\",\n \"schedules\": [\n {\n \"day\": \"FRIDAY\",\n \"endTime\": \"22:30\",\n \"startTime\": \"10:00\"\n }\n ]\n }\n ],\n \"storeCode\": \"T005\",\n \"taxesInfo\": {\n \"taxRate\": 0,\n \"vatRatePercentage\": 12\n },\n \"contactInfo\": {\n \"phone\": \"23955400\",\n \"address\": \"PICHINCHA / QUITO / INAQUITO / AV. AMERICA N37-288 Y VILLALENGUA\"\n },\n \"deliveryInfo\": {\n \"cookTime\": \"10\",\n \"deliveryId\": 46356,\n \"minimumOrder\": \"0.00\",\n \"shippingCost\": 1.99\n },\n \"locationInfo\": {\n \"city\": \"QUITO\",\n \"latitude\": \"-0.17250869436401206\",\n \"longitude\": \"-78.49125266075134\"\n },\n \"storeChannels\": [\n \"0F049503-85CF-E511-80C6-000D3A3261F3\"\n ]\n }\n ],\n \"channels\": [\n {\n \"active\": true,\n \"channel\": \"Llevar\",\n \"vendorId\": 16,\n \"channelId\": \"0E049503-85CF-E511-80C6-000D3A3261F3\",\n \"additionalInfo\": {\n \"mediaId\": \"E683B6FE-65A9-4D01-B07B-FA1A3C8BCA8D\",\n \"mediaName\": \"PICKUP\",\n \"relatedLists\": [\n {\n \"listId\": \"42203FD3-0194-EA11-80EE-000D3A019254\",\n \"listName\": \"PICKUP ECOMMERCE T\"\n }\n ]\n },\n \"channelReferenceName\": \"Llevar PICKUP\"\n }\n ]\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://api.artisn.desarrollo-redbrand.com/api/v3/channels-stores")
.header("Content-Type", "application/json")
.body("{\n \"stores\": [\n {\n \"name\": \"New store 805\",\n \"active\": true,\n \"storeId\": 805,\n \"services\": [\n {\n \"name\": \"DELIVERY\",\n \"active\": true\n }\n ],\n \"vendorId\": 16,\n \"schedulesByChannel\": [\n {\n \"channelId\": \"0F049503-85CF-E511-80C6-000D3A3261F3\",\n \"schedules\": [\n {\n \"day\": \"FRIDAY\",\n \"endTime\": \"22:30\",\n \"startTime\": \"10:00\"\n }\n ]\n }\n ],\n \"storeCode\": \"T005\",\n \"taxesInfo\": {\n \"taxRate\": 0,\n \"vatRatePercentage\": 12\n },\n \"contactInfo\": {\n \"phone\": \"23955400\",\n \"address\": \"PICHINCHA / QUITO / INAQUITO / AV. AMERICA N37-288 Y VILLALENGUA\"\n },\n \"deliveryInfo\": {\n \"cookTime\": \"10\",\n \"deliveryId\": 46356,\n \"minimumOrder\": \"0.00\",\n \"shippingCost\": 1.99\n },\n \"locationInfo\": {\n \"city\": \"QUITO\",\n \"latitude\": \"-0.17250869436401206\",\n \"longitude\": \"-78.49125266075134\"\n },\n \"storeChannels\": [\n \"0F049503-85CF-E511-80C6-000D3A3261F3\"\n ]\n }\n ],\n \"channels\": [\n {\n \"active\": true,\n \"channel\": \"Llevar\",\n \"vendorId\": 16,\n \"channelId\": \"0E049503-85CF-E511-80C6-000D3A3261F3\",\n \"additionalInfo\": {\n \"mediaId\": \"E683B6FE-65A9-4D01-B07B-FA1A3C8BCA8D\",\n \"mediaName\": \"PICKUP\",\n \"relatedLists\": [\n {\n \"listId\": \"42203FD3-0194-EA11-80EE-000D3A019254\",\n \"listName\": \"PICKUP ECOMMERCE T\"\n }\n ]\n },\n \"channelReferenceName\": \"Llevar PICKUP\"\n }\n ]\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.artisn.desarrollo-redbrand.com/api/v3/channels-stores")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Content-Type"] = 'application/json'
request.body = "{\n \"stores\": [\n {\n \"name\": \"New store 805\",\n \"active\": true,\n \"storeId\": 805,\n \"services\": [\n {\n \"name\": \"DELIVERY\",\n \"active\": true\n }\n ],\n \"vendorId\": 16,\n \"schedulesByChannel\": [\n {\n \"channelId\": \"0F049503-85CF-E511-80C6-000D3A3261F3\",\n \"schedules\": [\n {\n \"day\": \"FRIDAY\",\n \"endTime\": \"22:30\",\n \"startTime\": \"10:00\"\n }\n ]\n }\n ],\n \"storeCode\": \"T005\",\n \"taxesInfo\": {\n \"taxRate\": 0,\n \"vatRatePercentage\": 12\n },\n \"contactInfo\": {\n \"phone\": \"23955400\",\n \"address\": \"PICHINCHA / QUITO / INAQUITO / AV. AMERICA N37-288 Y VILLALENGUA\"\n },\n \"deliveryInfo\": {\n \"cookTime\": \"10\",\n \"deliveryId\": 46356,\n \"minimumOrder\": \"0.00\",\n \"shippingCost\": 1.99\n },\n \"locationInfo\": {\n \"city\": \"QUITO\",\n \"latitude\": \"-0.17250869436401206\",\n \"longitude\": \"-78.49125266075134\"\n },\n \"storeChannels\": [\n \"0F049503-85CF-E511-80C6-000D3A3261F3\"\n ]\n }\n ],\n \"channels\": [\n {\n \"active\": true,\n \"channel\": \"Llevar\",\n \"vendorId\": 16,\n \"channelId\": \"0E049503-85CF-E511-80C6-000D3A3261F3\",\n \"additionalInfo\": {\n \"mediaId\": \"E683B6FE-65A9-4D01-B07B-FA1A3C8BCA8D\",\n \"mediaName\": \"PICKUP\",\n \"relatedLists\": [\n {\n \"listId\": \"42203FD3-0194-EA11-80EE-000D3A019254\",\n \"listName\": \"PICKUP ECOMMERCE T\"\n }\n ]\n },\n \"channelReferenceName\": \"Llevar PICKUP\"\n }\n ]\n}"
response = http.request(request)
puts response.read_body{
"accessToken": "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJzdWIiOiIxMjM0NTY3ODkwIiwibmFtZSI6IkpvaG4gRG9lIiwiaWF0IjoxNTE2MjM5MDIyfQ.SflKxwRJSMeKKF2QT4fwpMeJf36POk6yJV_adQssw5c"
}{
"statusCode": "<string>",
"message": "<string>"
}Body
application/json
Response
response upon logging in
The access token to be used in the API. DO NOT EXPOSE THIS TOKEN TO THE CLIENT!
Example:
"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJzdWIiOiIxMjM0NTY3ODkwIiwibmFtZSI6IkpvaG4gRG9lIiwiaWF0IjoxNTE2MjM5MDIyfQ.SflKxwRJSMeKKF2QT4fwpMeJf36POk6yJV_adQssw5c"
⌘I

