Billing API
string · requiredstring · requiredstringstring · date-timestringstringnumber · doublenumber · doublenumber · doublestring · enumstring · date-timestring · date-time
Coupons
Get a discount given a coupon code
Redeem coupon
POST
https://api.scaleway.com
/billing/v2beta1/redeem-coupon
Redeem a coupon given the related code.
query Parameters
organization_idThe Organization ID of the discount. (UUID format)
codeThe code of the coupon to redeem.
Redeem coupon › Responses
200
idThe ID of the discount.
creation_dateThe creation date of the discount. (RFC 3339 format)
organization_idThe Organization ID of the discount.
descriptionThe description of the discount.
valueThe initial value of the discount.
value_usedThe value indicating how much of the discount has been used.
value_remainingThe remaining value of the discount.
modeThe mode of the discount.
Enum values:
unknown_discount_mode
discount_mode_rate
discount_mode_value
discount_mode_splittable
Default: unknown_discount_mode
start_dateThe start date of the discount. (RFC 3339 format)
stop_dateThe stop date of the discount. (RFC 3339 format)
object
The description of the coupon.
List of the discount scopes.