Perfil comercial
curl --request GET \
--url https://api.wabox.me/instances/{instance_id}/token/{token}/business/profileconst options = {method: 'GET'};
fetch('https://api.wabox.me/instances/{instance_id}/token/{token}/business/profile', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.wabox.me/instances/{instance_id}/token/{token}/business/profile"
response = requests.get(url)
print(response.text)<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.wabox.me/instances/{instance_id}/token/{token}/business/profile",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
]);
$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.wabox.me/instances/{instance_id}/token/{token}/business/profile"
req, _ := http.NewRequest("GET", url, nil)
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}{
"phone": "5511966665555",
"is_business": true,
"name": "Loja Teste",
"verified_name": "Loja Teste LTDA",
"description": "Roupas e acessórios",
"address": "Rua A, 100 - São Paulo",
"email": "contato@loja.test",
"website": [
"https://loja.test"
],
"categories": [
{
"id": "133436743388217",
"name": "Vestuário"
}
],
"business_hours": {
"timezone": "America/Sao_Paulo",
"config": [
{
"day_of_week": "monday",
"mode": "specific_hours",
"open_time": "09:00",
"close_time": "18:00"
},
{
"day_of_week": "sunday",
"mode": "closed"
}
]
}
}{
"error": {
"code": "instance_not_found",
"message": "Instance not found or invalid token"
}
}{
"error": {
"code": "subscription_required",
"message": "Trial expired or subscription inactive. Subscribe in the dashboard to keep sending."
}
}{
"error": {
"code": "instance_not_connected",
"message": "Instance is not connected"
}
}Perfil comercial
Descrição, endereço, e-mail, sites, categorias e horário de funcionamento de uma conta WhatsApp Business. ?phone= lê o perfil de outro negócio; omitido = o seu. Contas comuns respondem is_business: false (os demais campos vêm vazios). Imediata: exige a instância conectada (caso contrário, 409 instance_not_connected).
GET
/
instances
/
{instance_id}
/
token
/
{token}
/
business
/
profile
Perfil comercial
curl --request GET \
--url https://api.wabox.me/instances/{instance_id}/token/{token}/business/profileconst options = {method: 'GET'};
fetch('https://api.wabox.me/instances/{instance_id}/token/{token}/business/profile', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.wabox.me/instances/{instance_id}/token/{token}/business/profile"
response = requests.get(url)
print(response.text)<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.wabox.me/instances/{instance_id}/token/{token}/business/profile",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
]);
$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.wabox.me/instances/{instance_id}/token/{token}/business/profile"
req, _ := http.NewRequest("GET", url, nil)
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}{
"phone": "5511966665555",
"is_business": true,
"name": "Loja Teste",
"verified_name": "Loja Teste LTDA",
"description": "Roupas e acessórios",
"address": "Rua A, 100 - São Paulo",
"email": "contato@loja.test",
"website": [
"https://loja.test"
],
"categories": [
{
"id": "133436743388217",
"name": "Vestuário"
}
],
"business_hours": {
"timezone": "America/Sao_Paulo",
"config": [
{
"day_of_week": "monday",
"mode": "specific_hours",
"open_time": "09:00",
"close_time": "18:00"
},
{
"day_of_week": "sunday",
"mode": "closed"
}
]
}
}{
"error": {
"code": "instance_not_found",
"message": "Instance not found or invalid token"
}
}{
"error": {
"code": "subscription_required",
"message": "Trial expired or subscription inactive. Subscribe in the dashboard to keep sending."
}
}{
"error": {
"code": "instance_not_connected",
"message": "Instance is not connected"
}
}