Move Affiliate To Campaign
POST/affiliate-manager/affiliate-campaign/affiliate/:affiliateId/move-campaign
Move an affiliate from its current campaign to another campaign in the same location.
Request
Version stringrequired
API Version
Available options
v4affiliateId stringrequired
Affiliate Id
- application/json
- Body
- Example (auto)
Bodyrequired
sourceCampaignIdstringrequired
Source Campaign Id
targetCampaignIdstringrequired
Target Campaign Id
moveModenumberrequired
Move mode — 1 keeps recurrent commissions in the old campaign, 2 moves all data with the original AM id
Available options
12sendWelcomeEmailboolean
Whether to send a welcome email to this affiliate after moving. If the target campaign has welcome emails disabled, no email will be sent even if this is turned on. If the campaign has it enabled, you can disable it here to skip sending for this affiliate.
Default value:
truelocationIdstringrequired
Location Id
{
"sourceCampaignId": "6385d230f6d19db03eef6fb2",
"targetCampaignId": "6512c3a1f6d19db03eef7a04",
"moveMode": 1,
"sendWelcomeEmail": true,
"locationId": "ve9EPM428h8vShlRW1KT"
}
Successful response
- application/json
- Schema
- Example (auto)
Schema
successbooleanrequired
Whether the action completed
messagestringrequired
Human readable outcome
{
"success": true,
"message": "Affiliate suspended successfully"
}