Create Affiliate Campaign
Function
To create detailed information of an affiliate campaign
建立單個推薦活動
URL
POST <<api_domain>>/v1/affiliate_campaigns
Request Parameters
Parameter | Type | Description | Example |
|---|---|---|---|
name *Required | String | Affiliate campaign name | Affiliate Campaign Name |
reward_type | String | Reward type -null : 沒有回饋 (default = null) | amount |
promotion_id | String | Promotion id -null : 不套用折扣 (default = null) | 5ce0d084e388096bdb229a59 |
code | String | Affiliate code | code123 |
start_at | DateTime | Affiliate campaign start time (default = now) | 2018-01-10T06:33:45.231+00:00 |
end_at | DateTime | Affiliate campaign end time
| 2018-01-10T06:33:45.231+00:00 |
apply_on | String | Apply on order or product
| order |
apply_method | String | Apply method
| all |
affiliate_percentage | Float | Affiliate percentage | 30 |
affiliate_amount | Object | Affiliate amount | {"dollars": 20} |
condition_min_amount | Object | The threshold amount (for order level)
| {"dollars": 100} |
campaign_products | Array[Object] | Campaign Products | [ |
remarks_translations | Remarks translations | {} |
Request Example
Response Field
Updated 11 days ago