REST reference

Catalog

The Catalog routes. Every body is JSON, and an error always comes back as an object with a code and a message.

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.

Request body

numberIdstringRequired
Zaiped id (whatsappConnections)

Response (object)

catalogIdstringRequired
catalogNamestring
catalogVisibleboolean
cartEnabledboolean
syncedAtnumber
itemCountnumberRequired
errorCountnumberRequired
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

Request body

numberIdstringRequired
Zaiped id (whatsappConnections)
catalogVisiblebooleanRequired
cartEnabledbooleanRequired

Response (object)

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