Skip to main content

Get campaign total price

GET 

/api/partner-gateway/v1/campaigns/:id/price

Returns the campaign with its total price, computed on every call from its current configuration: the sendingMode (channel), the distinct recipients of its contact lists and destinations, and the per-message rate for your account. The response carries totalPrice, its unit (walletKind) and the number of distinct recipients (numOfDistinctContact). If your account cannot fall back across channels, a campaign that combines WhatsApp with other channels is switched to WHATSAPP before pricing, and the change is saved. Use this endpoint to display a cost preview to users before they confirm and dispatch the campaign with PUT /campaigns/{id}/confirm, which prices it again and reserves the amount. Returns 400 if the campaign is incomplete or has no valid recipient. Returns 404 if no campaign exists with the given ID under your account. Returns 401 if the API key is missing or invalid.

Request​

Responses​

Price retrieved successfully