Creates coupon code.
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 |
Code was successfully created.
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. The code already exists.
{- "coupon_code": "WINTER2021"
}
{- "statusCode": 404,
- "errorCode": 4001,
- "errorMessage": "[0401-9802]: Coupon not found",
- "transactionId": "x-x-x-x-transactionId-mock-x-x-x"
}