Get the total price of a WhatsApp campaign
GET/api/partner-gateway/campaigns/:id/price
Returns the campaign with its total price, computed on every call from the current configuration.
- What sets the price: the
sendingMode, the distinct recipients of the campaign's contact lists anddestinations, and the per-message rate of your account. - In the response:
totalPrice, its unit (walletKind) and the number of distinct recipients (numOfDistinctContact). - Nothing is reserved: use it as a cost preview.
PUT /campaigns/{id}/confirmprices the campaign again and reserves the amount. - Accounts without cross-channel fallback: a campaign that combines WhatsApp with other channels is switched to
WHATSAPPbefore pricing, and the change is saved.
GET /campaigns/{id}/price is one endpoint for SMS, RCS and WhatsApp: this page describes it for WhatsApp. See it for SMS or RCS.
Request
Responses
- 200
- 400
- 401
- 404
The campaign with its totalPrice, walletKind and numOfDistinctContact.
The campaign is incomplete or has no valid recipient.
The API key is missing or invalid, or holds neither CAMPAIGNS nor the operation of every channel of the campaign's sendingMode.
No campaign with this ID in your account.