Get the total price of an SMS 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.
GET /campaigns/{id}/price is one endpoint for SMS, RCS and WhatsApp: this page describes it for SMS. See it for RCS or WhatsApp.
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.