OverviewProductsPlatformsAPI ReferenceResources
WhatsApp

Update a number's commerce settings

PUThttps://zernio.com/api/v1/whatsapp/commerce-settings

Authentication

AuthorizationBearer tokenRequired

API key authentication: send your Zernio API key in the Authorization header, prefixed with Bearer.

Body

application/json

What every request needs

accountIdstringRequired

WhatsApp account ID

Optional parameters3 fields
catalogAccountIdstring
isCartEnabledboolean
isCatalogVisibleboolean

Responses

Success· the request worked

Errors· the request failed

PUT/v1/whatsapp/commerce-settings
import Zernio from '@zernio/node';const zernio = new Zernio({ apiKey: process.env.ZERNIO_API_KEY });const { data } = await zernio.whatsapp.updateWhatsAppCommerceSettings({  body: {    accountId: 'account_abc123',  },});console.log(data);
{  "settings": {    "isCartEnabled": true,    "isCatalogVisible": true  }}
OpenAPI specification
Was this page helpful?