Listar os produtos do catálogo
POST /business/catalog/list
Lista uma página de produtos do catálogo de um perfil comercial no WhatsApp.
Observações:
- envie apenas
jidpara buscar a primeira página - a paginação pública usa o campo
after - copie exatamente o valor retornado em
response.nexte envie na próxima chamada - sem
response.nextna resposta, não há mais páginas - o valor de
afteré um token opaco: não tente decodificar ou modificar - a integração atual retorna até 50 produtos por chamada
- a resposta usa exclusivamente o formato atual documentado abaixo
Autenticação
[
{
"token": []
}
]
{
"token": {
"name": "token",
"type": "apiKey",
"in": "header"
}
}
Corpo da requisição
{
"required": true,
"content": {
"application/json": {
"schema": {
"type": "object",
"properties": {
"jid": {
"type": "string",
"description": "JID do catálogo a consultar",
"example": "5511999999999@s.whatsapp.net"
},
"after": {
"type": "string",
"description": "Token da próxima página. Use exatamente o valor retornado em `response.next`.",
"example": "Q1VSU09SX1BST1hJTUFfUEFHSU5B"
}
},
"required": [
"jid"
]
},
"examples": {
"primeiraPagina": {
"summary": "Buscar a primeira página do catálogo",
"value": {
"jid": "5511999999999@s.whatsapp.net"
}
},
"proximaPagina": {
"summary": "Buscar a próxima página usando after",
"value": {
"jid": "5511999999999@s.whatsapp.net",
"after": "Q1VSU09SX1BST1hJTUFfUEFHSU5B"
}
}
}
}
}
}
Respostas
{
"200": {
"description": "Produtos do catálogo recuperados com sucesso",
"content": {
"application/json": {
"schema": {
"type": "object",
"required": [
"response"
],
"properties": {
"response": {
"$ref": "#/components/schemas/BusinessCatalogPage"
}
}
},
"examples": {
"sucesso": {
"value": {
"response": {
"next": "Q1VSU09SX1BST1hJTUFfUEFHSU5B",
"products": [
{
"id": "1234567890",
"name": "Produto Exemplo",
"description": "Descrição do produto",
"price": "1990",
"currency": "BRL",
"retailer_id": "sku-123",
"is_hidden": false,
"is_sanctioned": false,
"product_availability": "in stock",
"media": {
"images": [
{
"id": "img-1",
"request_image_url": "https://mmg.whatsapp.net/v/t62.7118-24/...",
"original_image_url": "https://lookaside.whatsapp.net/..."
}
]
},
"status_info": {
"status": "APPROVED",
"can_appeal": false
}
}
]
}
}
}
}
}
}
},
"400": {
"description": "Requisição inválida",
"content": {
"application/json": {
"schema": {
"type": "object",
"properties": {
"error": {
"type": "string",
"description": "Mensagem de erro de validação do payload ou JID",
"example": "invalid payload"
}
}
}
}
}
},
"401": {
"description": "Token inválido ou expirado",
"content": {
"application/json": {
"schema": {
"type": "object",
"properties": {
"error": {
"type": "string",
"description": "Mensagem de erro de autenticação",
"example": "client not found"
}
}
}
}
}
},
"500": {
"description": "Erro interno do servidor ao recuperar os produtos do catálogo",
"content": {
"application/json": {
"schema": {
"type": "object",
"properties": {
"error": {
"type": "string",
"description": "Mensagem detalhando o erro encontrado"
}
}
}
}
}
}
}
#/components/schemas/BusinessCatalogPage
{
"type": "object",
"required": [
"products"
],
"properties": {
"next": {
"type": "string",
"description": "Cursor da próxima página."
},
"previous": {
"type": "string",
"description": "Cursor da página anterior."
},
"products": {
"type": "array",
"items": {
"$ref": "#/components/schemas/BusinessProduct"
}
}
}
}
#/components/schemas/BusinessProduct
{
"type": "object",
"required": [
"id",
"name",
"price",
"currency",
"is_hidden",
"is_sanctioned",
"media",
"status_info"
],
"properties": {
"id": {
"type": "string"
},
"retailer_id": {
"type": "string"
},
"belongs_to": {
"type": "string"
},
"name": {
"type": "string"
},
"description": {
"type": "string"
},
"price": {
"type": "string",
"description": "Valor em milésimos da moeda (19990 = R$ 19,99)."
},
"currency": {
"type": "string"
},
"url": {
"type": "string"
},
"shimmed_url": {
"type": "string"
},
"is_hidden": {
"type": "boolean"
},
"is_sanctioned": {
"type": "boolean"
},
"max_available": {
"type": "integer"
},
"product_availability": {
"type": "string"
},
"compliance_category": {
"type": "string"
},
"compliance_info": {
"type": "object",
"properties": {
"country_code_origin": {
"type": "string"
},
"importer_name": {
"type": "string"
},
"importer_address": {
"type": "object",
"properties": {
"street1": {
"type": "string"
},
"street2": {
"type": "string"
},
"city": {
"type": "string"
},
"region": {
"type": "string"
},
"postal_code": {
"type": "string"
},
"country_code": {
"type": "string"
}
}
}
}
},
"media": {
"type": "object",
"properties": {
"images": {
"type": "array",
"items": {
"type": "object",
"required": [
"id"
],
"properties": {
"id": {
"type": "string"
},
"original_image_url": {
"type": "string"
},
"request_image_url": {
"type": "string"
}
}
}
},
"videos": {
"type": "array",
"items": {
"type": "object",
"required": [
"id"
],
"properties": {
"id": {
"type": "string"
},
"original_video_url": {
"type": "string"
},
"thumbnail_url": {
"type": "string"
}
}
}
}
}
},
"sale_price": {
"type": "object",
"required": [
"price"
],
"properties": {
"price": {
"type": "string"
},
"start_date": {
"type": "string"
},
"end_date": {
"type": "string"
}
}
},
"status_info": {
"type": "object",
"properties": {
"status": {
"type": "string"
},
"can_appeal": {
"type": "boolean"
}
}
},
"variant_info": {
"type": "object",
"properties": {
"listing_details": {
"type": "object",
"properties": {
"description": {
"type": "string"
},
"lowest_price": {
"type": "string"
},
"multi_price": {
"type": "string"
}
}
},
"availability": {
"type": "object",
"additionalProperties": true
},
"types": {
"type": "array",
"items": {
"type": "object",
"additionalProperties": true
}
},
"variant_properties": {
"type": "array",
"items": {
"type": "object",
"required": [
"name",
"value"
],
"properties": {
"name": {
"type": "string"
},
"value": {
"type": "string"
}
}
}
}
}
}
}
}