Get campaign total price
GET/api/partner-gateway/v1/campaigns/:id/price
Returns the estimated total price for the campaign based on its current configuration. The price depends on the sendingMode (channel), the number of recipients in the associated contact lists, and the per-message rate for your account. You should call POST /campaigns/{id}/calculateGoal before using this endpoint to ensure the cost estimate is up to date. If the cost has not been calculated yet, the returned price may be zero or stale. Use this endpoint to display a cost preview to users before they confirm and dispatch the campaign with PUT /campaigns/{id}/confirm. 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
- 200
- 401
- 404
Price retrieved successfully
Unauthorized
Campaign not found