Campaign products associates products with specific campaigns. This allows creation of campaigns retroactively, but will slow down data loading as each sales row needs to be matched against existing campaigns.
Campaign products should only be used if it is not possible to add campaign information directly to sales transactions.
POST https://api.zoined.com/campaignProducts?dryRun=false&separator=%3B&encoding=utf-8
Security
bearerAuth
Any of:
- Mock serverhttps://zapi-api.zoined.com/_mock/campaignProducts
- https://api.zoined.comhttps://api.zoined.com/campaignProducts
curl -i -X POST \
'https://zapi-api.zoined.com/_mock/campaignProducts?dryRun=false&separator=%3B&encoding=utf-8' \
-H 'Authorization: Bearer <YOUR_token_HERE>' \
-H 'Content-Type: application/json' \
-d '{
"campaign_id": "6453",
"category_id": "My category ID",
"product_id": "My product ID",
"source_system": "ABCDEF"
}'Response
{ "status": "OK", "msg": "1 entity added" }