Referência REST

Catálogo

As rotas de Catálogo. Todo corpo é JSON, e o erro sempre volta como um objeto com código e mensagem.

GET

/v1/catalog

Get the linked Meta catalog

curl -X GET "https://zaiped.com/v1/catalog" \
  -H "Authorization: Bearer zp_..."
POST

/v1/catalog/connect

Link the WABA's catalog

Finds the catalog attached to the WABA in Commerce Manager and links it to the account.

Corpo da requisição

numberIdstringObrigatório
Zaiped id (whatsappConnections)

Resposta (object)

catalogIdstringObrigatório
catalogNamestring
catalogVisibleboolean
cartEnabledboolean
syncedAtnumber
itemCountnumberObrigatório
errorCountnumberObrigatório
curl -X POST "https://zaiped.com/v1/catalog/connect" \
  -H "Authorization: Bearer zp_..." \
  -H "Content-Type: application/json" \
  -d '{
  "numberId": "…"
}'
PUT

/v1/catalog/settings

Show the catalog and enable the cart

Corpo da requisição

numberIdstringObrigatório
Zaiped id (whatsappConnections)
catalogVisiblebooleanObrigatório
cartEnabledbooleanObrigatório

Resposta (object)

oktrueObrigatório
curl -X PUT "https://zaiped.com/v1/catalog/settings" \
  -H "Authorization: Bearer zp_..." \
  -H "Content-Type: application/json" \
  -d '{
  "numberId": "…",
  "catalogVisible": true,
  "cartEnabled": true
}'
Referência REST