Skip to main content
PUT
/
v3
/
stores
/
{storeId}
cURL
curl --request PUT \
  --url https://api.artisn.desarrollo-redbrand.com/api/v3/stores/{storeId} \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{
  "active": true
}'
import requests

url = "https://api.artisn.desarrollo-redbrand.com/api/v3/stores/{storeId}"

payload = { "active": True }
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}

response = requests.put(url, json=payload, headers=headers)

print(response.text)
const options = {
method: 'PUT',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({active: true})
};

fetch('https://api.artisn.desarrollo-redbrand.com/api/v3/stores/{storeId}', 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/stores/{storeId}",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "PUT",
CURLOPT_POSTFIELDS => json_encode([
'active' => true
]),
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>",
"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/stores/{storeId}"

payload := strings.NewReader("{\n \"active\": true\n}")

req, _ := http.NewRequest("PUT", url, payload)

req.Header.Add("Authorization", "Bearer <token>")
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.put("https://api.artisn.desarrollo-redbrand.com/api/v3/stores/{storeId}")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"active\": true\n}")
.asString();
require 'uri'
require 'net/http'

url = URI("https://api.artisn.desarrollo-redbrand.com/api/v3/stores/{storeId}")

http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true

request = Net::HTTP::Put.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"active\": true\n}"

response = http.request(request)
puts response.read_body
{
  "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"
  ],
  "storeImage": "<array>",
  "paymentMethodAvailability": "<string>",
  "paymentMethodInfo": "<string>"
}
This response has no body data.

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Path Parameters

storeId
integer<int64>
required

Unique identifier of the store

Query Parameters

vendorId
integer<int32>

Unique identifier of the brand

Body

application/json
active
boolean

State to which the store will be updated

Response

Store response

name
string
Example:

"New store 805"

active
boolean
Example:

true

storeId
integer
Example:

805

services
object[]
vendorId
integer

Unique brand identifier. *This identifier is provided by Trade.

Example:

16

schedulesByChannel
object[]
storeCode
string
Example:

"T005"

taxesInfo
object
contactInfo
object
deliveryInfo
object
locationInfo
object
storeChannels
string[]
storeImage
array

Store image

paymentMethodAvailability
string
paymentMethodInfo
string