logo
enes

Link catalogs

Last update: 6 hours ago by Irais Aguirre

Integration summary

  • Base URL: https://{{url}}/whatsapp-bsp-admin-ext-endpoint-ws/services
  • Token: admin token, in the Authorization: Bearer {{admin-token}} header (how to generate it)
  • Endpoints on this page:
    • POST /v1/catalog/{{waba_id}}/{{catalog_id}}/product_catalogs: Link catalog to WABA
    • GET /v1/catalog/{{waba_id}}/product_catalogs: Get catalogs linked to WABA
    • DELETE /v1/catalog/{{waba_id}}/{{catalog_id}}/product_catalogs: Unlink catalog from WABA
    • POST /v1/catalog/{{waba_id}}/{{catalog_id}}/{{phone_number_id}}: Assign catalog to phone number
    • POST /v1/catalog/{{waba_id}}/{{phone_number_id}}/whatsapp_commerce_settings: Configure commerce settings

Link, get, and unlink the catalogs of your WABA, assign a catalog to a phone number, and configure its commerce settings (cart and catalog visibility). If the request succeeds, every service returns HTTP 200.

Link catalog to WABA

Request

Link catalog to WABA request:

URLhttps://{{url}}/whatsapp-bsp-admin-ext-endpoint-ws/services/v1/catalog/{{waba_id}}/{{catalog_id}}/product_catalogs
MethodPOST

Headers

Link catalog to WABA headers:

NameDescriptionTypeRequirements
AuthorizationAdmin token. See Generate authentication token.StringRequired

Parameters

Link catalog to WABA parameters:

NameDescriptionTypeRequirements
waba_idWhatsApp Business Account ID.StringRequired
catalog_idID of a catalog created with the Create catalog service.StringRequired

Example

Complete Link catalog to WABA example:

curl --location --request POST 'https://{{url}}/whatsapp-bsp-admin-ext-endpoint-ws/services/v1/catalog/{{waba_id}}/{{catalog_id}}/product_catalogs' \
--header 'Authorization: Bearer {{admin-token}}'

Response

Link catalog to WABA response:

NameDescriptionType
successWhether the operation succeeded.Boolean
{
"success": true
}


Get catalogs linked to WABA

Request

Get catalogs linked to WABA request:

URLhttps://{{url}}/whatsapp-bsp-admin-ext-endpoint-ws/services/v1/catalog/{{waba_id}}/product_catalogs
MethodGET

Headers

Get catalogs linked to WABA headers:

NameDescriptionTypeRequirements
AuthorizationAdmin token. See Generate authentication token.StringRequired

Parameters

Get catalogs linked to WABA parameters:

NameDescriptionTypeRequirements
waba_idWhatsApp Business Account ID.StringRequired

Example

Complete Get catalogs linked to WABA example:

curl --location 'https://{{url}}/whatsapp-bsp-admin-ext-endpoint-ws/services/v1/catalog/{{waba_id}}/product_catalogs' \
--header 'Authorization: Bearer {{admin-token}}'

Response

Get catalogs linked to WABA response:

NameDescriptionType
dataCatalogs linked to the WABA.List of linked catalog objects
pagingPagination information.Object

Linked catalog object

NameDescriptionType
idCatalog ID.String
nameCatalog name.String
{
"data": [
{
"id": "1234567890123456",
"name": "Course catalog"
}
],
"paging": {
"cursors": {
"before": "QVFIUjExampleBefore",
"after": "QVFIUjExampleAfter"
}
}
}

Paging object

NameDescriptionType
cursorsCursors for the current page.Object

Cursors object

NameDescriptionType
beforeCursor pointing to the start of the page.String
afterCursor pointing to the end of the page.String


Unlink catalog from WABA

Request

Unlink catalog from WABA request:

URLhttps://{{url}}/whatsapp-bsp-admin-ext-endpoint-ws/services/v1/catalog/{{waba_id}}/{{catalog_id}}/product_catalogs
MethodDELETE

Headers

Unlink catalog from WABA headers:

NameDescriptionTypeRequirements
AuthorizationAdmin token. See Generate authentication token.StringRequired

Parameters

Unlink catalog from WABA parameters:

NameDescriptionTypeRequirements
waba_idWhatsApp Business Account ID.StringRequired
catalog_idID of the catalog to unlink.StringRequired

Example

Complete Unlink catalog from WABA example:

curl --location --request DELETE 'https://{{url}}/whatsapp-bsp-admin-ext-endpoint-ws/services/v1/catalog/{{waba_id}}/{{catalog_id}}/product_catalogs' \
--header 'Authorization: Bearer {{admin-token}}'

Response

Unlink catalog from WABA response:

NameDescriptionType
successWhether the operation succeeded.Boolean
{
"success": true
}


Assign catalog to phone number

Request

Assign catalog to phone number request:

URLhttps://{{url}}/whatsapp-bsp-admin-ext-endpoint-ws/services/v1/catalog/{{waba_id}}/{{catalog_id}}/{{phone_number_id}}
MethodPOST

Headers

Assign catalog to phone number headers:

NameDescriptionTypeRequirements
AuthorizationAdmin token. See Generate authentication token.StringRequired

Parameters

Assign catalog to phone number parameters:

NameDescriptionTypeRequirements
waba_idWhatsApp Business Account ID.StringRequired
catalog_idCatalog ID.StringRequired
phone_number_idID of the WABA phone number to assign the catalog to.StringRequired

Example

Complete Assign catalog to phone number example:

curl --location --request POST 'https://{{url}}/whatsapp-bsp-admin-ext-endpoint-ws/services/v1/catalog/{{waba_id}}/{{catalog_id}}/{{phone_number_id}}' \
--header 'Authorization: Bearer {{admin-token}}'

Response

Assign catalog to phone number response:

NameDescriptionType
successWhether the operation succeeded.Boolean
{
"success": true
}


Configure commerce settings

Sets whether the shopping cart is enabled and whether the catalog is visible on the phone number's profile.

Request

Configure commerce settings request:

URLhttps://{{url}}/whatsapp-bsp-admin-ext-endpoint-ws/services/v1/catalog/{{waba_id}}/{{phone_number_id}}/whatsapp_commerce_settings
MethodPOST
Typeapplication/json

Headers

Configure commerce settings headers:

NameDescriptionTypeRequirements
Content-Typeapplication/jsonStringRequired
AuthorizationAdmin token. See Generate authentication token.StringRequired

Parameters

Configure commerce settings parameters:

NameDescriptionTypeRequirements
waba_idWhatsApp Business Account ID.StringRequired
phone_number_idPhone number ID.StringRequired

Body

Configure commerce settings body fields:

NameDescriptionTypeRequirements
is_cart_enabledSet to true to enable the shopping cart.BooleanRequired
is_catalog_visibleSet to true to show the catalog on the phone number's profile.BooleanRequired

Example

Complete Configure commerce settings example:

curl --location 'https://{{url}}/whatsapp-bsp-admin-ext-endpoint-ws/services/v1/catalog/{{waba_id}}/{{phone_number_id}}/whatsapp_commerce_settings' \
--header 'Content-Type: application/json' \
--header 'Authorization: Bearer {{admin-token}}' \
--data '{
"is_cart_enabled": true,
"is_catalog_visible": true
}'

Response

Configure commerce settings response:

NameDescriptionType
successWhether the operation succeeded.Boolean
{
"success": true
}

Previous
Manage catalogs
Next
Products