Start a campaign (campaigns/start)
Using this method, you can start an existing campaign and change its status from paused to started.
 
Request
Address for sending the request
POST https://yoomoney.ru/api/offerwall/v1/campaigns/start
Parameters
ParameterTypeDescription
partnerCampaignIdintCampaign ID. Returned in the response to the campaigns/create request.
Example of a request body
JSON
{
   "ymCampaignId": 34
}
Request example
cURL
curl -X POST \
--header 'Content-Type: application/json' \
--header 'Accept: application/json' \
--header 'Authorization: Bearer <access token>'  -d '{
    "ymCampaignId": 34
 }' 'https://yoomoney.ru/api/offerwall/v1/campaigns/start'
Response
Parameters
ParameterTypeDescription
ymCampaignIdintCampaign ID.
campaignStatus
enum
Campaign status. If successful, the status will change to started. In case of an error, the campaign will return to its current status.
Errors
Error codeValueDescription
failPinNo promo codesThis type of campaign cannot be launched without promo codes.
failFinishedCompletedThis campaign is over.
failModeratorOn moderationThe campaign is awaiting verification.
campaignNotFoundNot foundCampaign with this ymCampaignId doesn’t exist for this aggregator or store.
Example of a response body
JSON
{
  "status": "success",
  "result": {
    "ymCampaignId": 34,
    "campaignStatus": "started"
  }
}