Confirm / schedule an RCS campaign
PUT/api/partner-gateway/campaigns/:id/confirm
Confirms a campaign: it is priced from its current configuration, the amount is reserved on your wallet and the sending is queued, at once or at the scheduledDate.
- What the campaign needs: a name, a valid
sendingModeanddestinationType,rcsAgentIdandrcsTemplateId(plussmsSenderandsmsBodywithRCS_SMS), the recipients itsdestinationTypeasks for, and enough credit to cover the price. - Preview the price with
GET /campaigns/{id}/price.POST /campaigns/{id}/calculateGoalis not needed: it only writes the campaign description. readyToSend: set it to true once the configuration is final. Confirmation does not currently check the flag.- After confirmation the campaign is
PRE_BILLEDand can no longer be updated. Without ascheduledDateit starts sending at once and cannot be deleted. A scheduled campaign can still be deleted withDELETE /campaigns/{id}while itsscheduledDateis outside the platform's edit window, which releases the reserved amount.
After a timeout, check before you retry. A campaign that is already confirmed answers
400as well, so read its status withGET /campaigns/{id}first.
PUT /campaigns/{id}/confirm is one endpoint for SMS, RCS and WhatsApp: this page describes it for RCS. See it for SMS or WhatsApp.
Request
Responses
- 202
- 400
- 401
- 404
Campaign confirmed and queued for sending. No response body.
A required field or the recipients are missing, the computed price is zero (for example, no valid recipient), your wallet balance does not cover the price, or the campaign is already confirmed.
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.