List catalogs
Returns the list of commerce catalogs associated with a WABA.
Endpoint: GET /v1/catalogs/{did}
Parameters
Path
| Parameter | Type | Required | Description |
|---|---|---|---|
did | string | Yes | Target ID. |
Query
| Parameter | Type | Required | Description |
|---|---|---|---|
client_id | number | No | Client. Requires BSP_CN if it differs from the token. |
Request
curl --request GET \
--url 'https://api.chattigo.com/v1/catalogs/{did}' \
--header 'Authorization: Bearer <token>'Response
Success (200)
{
"data": [
{
"id": "1234567890",
"name": "Main Store",
"vertical": "commerce"
}
]
}Errors
| Code | Case |
|---|---|
400 | did is required, or invalid client_id |
403 | DID outside the WABA hierarchy, or access to another client without BSP_CN |
502 | BSP config resolution failed (upstream service unavailable) |