Skip to content
Shortcut: /, ⌘K or Ctrl+K

Catalog and commerce

View as Markdown

List linked product catalogs

GET/graph/whatsapp/{version}/{wabaId}/product_catalogsGraph APIMeta Cloud API
Base URL
https://api.polymorfa.com
Required permission
sessions:read

Reads Meta's product_catalogs edge for a WhatsApp Business Account that has an Official API Number in the authenticated project. Meta determines catalog visibility and returns permission errors when the connected credentials lack access.

Path parameters

  • versionstringrequired

    Specifies version for this path parameter.

  • wabaIdstringrequired

    Identifier for the waba.

Query parameters

  • limitintegerrange1–100

    Specifies limit for this query parameter.

  • afterstringlength1–4096

    Specifies after for this query parameter.

Responses

  • 200Linked product catalogs, with Meta pagination when present
    • dataarray of objectrequired

      Structured data carried by this object.

      Show 2 child fields
    • pagingobject

      Structured paging values for this graph graph product catalogs response.

      Show 1 child field
    Show 3 headers
  • 400Bad request
  • 401Unauthenticated
  • 403Permission error
  • 404Object does not exist
  • 429Rate limited
  • 500Internal error
GET /graph/whatsapp/{version}/{wabaId}/product_catalogscURL

Graph API v26.0. The version is part of the URL; Graph requests take no Polymorfa-Version header.

curl "https://api.polymorfa.com/graph/whatsapp/v26.0/<wabaId>/product_catalogs" \
  -H "Authorization: Bearer YOUR_API_KEY"
Response
{
  "data": [
    {
      "id": "string"
    }
  ]
}

List linked catalog products

GET/graph/whatsapp/{version}/{wabaId}/product_catalogs/{catalogId}/productsGraph APIMeta Cloud API
Base URL
https://api.polymorfa.com
Required permission
sessions:read

Reads a small product projection from a catalog linked to an Official API Number's WABA in the authenticated project. Meta controls product visibility and permissions. This is a Polymorfa WABA-scoped path; Meta's product edge is /{catalogId}/products.

Path parameters

  • versionstringrequired

    Specifies version for this path parameter.

  • wabaIdstringrequired

    Identifier for the waba.

  • catalogIdstringrequiredpattern^[0-9]+$

    Identifier of the WhatsApp catalog.

Query parameters

  • limitintegerrange1–100

    Specifies limit for this query parameter.

  • afterstringlength1–4096

    Specifies after for this query parameter.

Responses

  • 200Linked catalog products and Meta cursors
    • dataarray of objectrequiredmax items1000

      Structured data carried by this object.

      Show 4 child fields
    • pagingobject

      Structured paging values for this graph graph catalog products response.

      Show 1 child field
    Show 3 headers
  • 400Bad request
  • 401Unauthenticated
  • 403Permission error
  • 404Object does not exist
  • 429Rate limited
  • 500Internal error
GET /graph/whatsapp/{version}/{wabaId}/product_catalogs/{catalogId}/productscURL

Graph API v26.0. The version is part of the URL; Graph requests take no Polymorfa-Version header.

curl "https://api.polymorfa.com/graph/whatsapp/v26.0/<wabaId>/product_catalogs/<catalogId>/products" \
  -H "Authorization: Bearer YOUR_API_KEY"
Response
{
  "data": [
    {
      "id": "string"
    }
  ]
}

Get commerce settings

GET/graph/whatsapp/{version}/{phoneNumberId}/whatsapp_commerce_settingsGraph APIMeta Cloud API
Base URL
https://api.polymorfa.com
Required permission
sessions:read

Path parameters

  • versionstringrequired

    Specifies version for this path parameter.

  • phoneNumberIdstringrequired

    Identifier for the phone number.

Responses

GET /graph/whatsapp/{version}/{phoneNumberId}/whatsapp_commerce_settingscURL

Graph API v26.0. The version is part of the URL; Graph requests take no Polymorfa-Version header.

curl "https://api.polymorfa.com/graph/whatsapp/v26.0/<phoneNumberId>/whatsapp_commerce_settings" \
  -H "Authorization: Bearer YOUR_API_KEY"
Response
null

Update commerce settings

POST/graph/whatsapp/{version}/{phoneNumberId}/whatsapp_commerce_settingsGraph APIMeta Cloud API
Base URL
https://api.polymorfa.com
Required permission
messages:write

Path parameters

  • versionstringrequired

    Specifies version for this path parameter.

  • phoneNumberIdstringrequired

    Identifier for the phone number.

Body

Responses

POST /graph/whatsapp/{version}/{phoneNumberId}/whatsapp_commerce_settingscURL

Graph API v26.0. The version is part of the URL; Graph requests take no Polymorfa-Version header.

curl -X POST "https://api.polymorfa.com/graph/whatsapp/v26.0/<phoneNumberId>/whatsapp_commerce_settings" \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d 'null'
Response
null