Sets the rewards for a promotion. If the promotion is read-only (read_only
= true
), you cannot update the rewards.
Notice
This API call does not contain the project_id
path-parameter, so you need to use the API key that is valid in all the company’s projects to set up authorization.
object Set the reward for the whole purchase. | |||||||||
object Set the reward for a virtual currency package. | |||||||||
object Set the reward for specific virtual items. | |||||||||
| |||||||||
object Sets the reward for a subscription. | |||||||||
No content.
{- "item": {
- "bonus": [
- {
- "quantity": 2,
- "sku": "1234"
}
], - "discount": [
- {
- "discount_percent": 5,
- "max_amount": 10,
- "sku": "1234"
}
]
}, - "package": {
- "bonus_amount": 5,
- "bonus_percent": 5
}, - "purchase": {
- "discount_percent": 10
}, - "subscription": {
- "trial_days": 30
}
}