Updates a coupon promotion.
| project_id required | integer Project ID. You can find this parameter in your Publisher Account next to the name of the project. Example: 44056 |
| external_id required | integer Promotion external ID. Unique promotion identifier within the project. Example: coupon_44056_1 |
Coupon was successfully updated.
Basic authentication not passed or wrong. Make sure you used basic authentication or correct credentials.
Coupon not found. Make sure the external_id is correct.
Invalid request.
{- "promotion_periods": [
- {
- "date_from": "2020-04-15T18:16:00+05:00",
- "date_until": "2020-04-25T18:16:00+05:00"
}, - {
- "date_from": "2020-05-15T18:16:00+05:00",
- "date_until": "2020-05-25T18:16:00+05:00"
}
], - "name": {
- "en-US": "New Year Bonus",
- "de-DE": "Neujahrsbonus"
}, - "redeem_total_limit": 100,
- "redeem_user_limit": 1,
- "redeem_code_limit": 1,
- "bonus": [
- {
- "sku": "com.xsolla.elven_sword_1",
- "quantity": 1
}
]
}{- "statusCode": 401,
- "errorCode": 1020,
- "errorMessage": "[0401-1020]: Error in Authentication method occurred"
}