post https://api-payment.inspireplatform.io/coupons//coupon-codes
Overview
Add a code to a coupon. Pass the coupon ID in the couponId
path parameter.
A coupon code is a string of characters that a customer can use to apply the coupon to a purchase.
Code quantities
To create multiple versions of the same coupon code, set thecodeQuantity
body parameter to greater than 1.
When multiple versions of the code are created, a sequentially or randomly generated numerical value is appended to the code text. This is controlled by the codeTypes
body parameter:
- 'Sequential': the numerical values are generated sequentially.
- 'Random': random numerical values are appended.