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 *Required | 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) 門檻金額 (for order level)
| {"dollars": 100} |
| campaign_products | Array[Object] | Campaign Products 指定分潤商品 | [ { "product_id": "5ce0d084e388096bdb229a59", "affiliate_amount": { "dollars": 12 } } ] |
| remarks_translations | Translation | Remarks translations 顯示於KOL Hub 的條款說明 feature key: affiliate_kol_report | {} |
Request Example
Response Field
Updated 6 months ago
Did this page help you?
