Store Info
curl --request GET \
--url https://api.centralcart.io/v1/webstore \
--header 'x-store-domain: <x-store-domain>'import requests
url = "https://api.centralcart.io/v1/webstore"
headers = {"x-store-domain": "<x-store-domain>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {'x-store-domain': '<x-store-domain>'}};
fetch('https://api.centralcart.io/v1/webstore', 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.centralcart.io/v1/webstore",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"x-store-domain: <x-store-domain>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.centralcart.io/v1/webstore"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("x-store-domain", "<x-store-domain>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://api.centralcart.io/v1/webstore")
.header("x-store-domain", "<x-store-domain>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.centralcart.io/v1/webstore")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["x-store-domain"] = '<x-store-domain>'
response = http.request(request)
puts response.read_body{
"store": {
"name": "Demo",
"type": "STANDALONE",
"require_document": false,
"require_address": false,
"require_phone": false,
"maintenance": false,
"auth": true,
"currency": "BRL",
"business": {
"cnpj": null,
"name": null,
"email": "[email protected]"
},
"active_domain": "https://minhaloja.centralcart.com",
"phone_mode": "DISABLED",
"discord_mode": "DISABLED"
},
"theme": {
"primary_color": "#ff0000",
"secondary_color": "#00c9ff",
"logo": "https://cdn.centralcart.io/stores/1/theme/logo.png",
"favicon": "https://cdn.centralcart.io/stores/1/theme/favicon.png",
"description": "Descrição da loja."
},
"socials": {
"instagram": "https://instagram.com/minhaloja",
"twitter": null,
"discord": "https://discord.gg/minhaloja",
"youtube": null,
"facebook": null,
"tiktok": null,
"whatsapp": null,
"telegram": null
}
}{
"errors": [
{
"message": "Store not found."
}
]
}Loja
Store Info
Retorna informações básicas da loja, incluindo tema, cores, logo e redes sociais.
GET
/
webstore
Store Info
curl --request GET \
--url https://api.centralcart.io/v1/webstore \
--header 'x-store-domain: <x-store-domain>'import requests
url = "https://api.centralcart.io/v1/webstore"
headers = {"x-store-domain": "<x-store-domain>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {'x-store-domain': '<x-store-domain>'}};
fetch('https://api.centralcart.io/v1/webstore', 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.centralcart.io/v1/webstore",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"x-store-domain: <x-store-domain>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.centralcart.io/v1/webstore"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("x-store-domain", "<x-store-domain>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://api.centralcart.io/v1/webstore")
.header("x-store-domain", "<x-store-domain>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.centralcart.io/v1/webstore")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["x-store-domain"] = '<x-store-domain>'
response = http.request(request)
puts response.read_body{
"store": {
"name": "Demo",
"type": "STANDALONE",
"require_document": false,
"require_address": false,
"require_phone": false,
"maintenance": false,
"auth": true,
"currency": "BRL",
"business": {
"cnpj": null,
"name": null,
"email": "[email protected]"
},
"active_domain": "https://minhaloja.centralcart.com",
"phone_mode": "DISABLED",
"discord_mode": "DISABLED"
},
"theme": {
"primary_color": "#ff0000",
"secondary_color": "#00c9ff",
"logo": "https://cdn.centralcart.io/stores/1/theme/logo.png",
"favicon": "https://cdn.centralcart.io/stores/1/theme/favicon.png",
"description": "Descrição da loja."
},
"socials": {
"instagram": "https://instagram.com/minhaloja",
"twitter": null,
"discord": "https://discord.gg/minhaloja",
"youtube": null,
"facebook": null,
"tiktok": null,
"whatsapp": null,
"telegram": null
}
}{
"errors": [
{
"message": "Store not found."
}
]
}Cabeçalhos
Domínio da sua loja (ex: sualoja.centralcart.ai)
⌘I