Error
A valid request URL is required to generate request examples{
"code": "unauthorized",
"message": "<string>",
"request_id": "<string>"
}{
"code": "unauthorized",
"message": "<string>",
"request_id": "<string>"
}Commerce
Put admincoupons
PUT
/
admin
/
coupons
/
{code}
Error
A valid request URL is required to generate request examples{
"code": "unauthorized",
"message": "<string>",
"request_id": "<string>"
}{
"code": "unauthorized",
"message": "<string>",
"request_id": "<string>"
}Authorizations
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Path Parameters
Body
application/json
Coupon amounts are explicit per policy. Checkout accepts one coupon for regular courses only, rejects combination with existing course discounts, rounds percentage discount down to whole IDR, and recalculates the tax-inclusive price snapshot.
Required string length:
3 - 64Pattern:
^[A-Za-z0-9_-]+$Available options:
fixed, percentage Required range:
x >= 0Required range:
x >= 1Required range:
x >= 1MVP permits regular courses only; BNSP is excluded.
Minimum array length:
1Available options:
regular When true eligible_course_ids must be empty; when false it must contain one or more course IDs.
Available options:
draft, active, disabled Required only for fixed discounts.
Required range:
x >= 1Required only for percentage discounts; 100 basis points equals one percent.
Required range:
1 <= x <= 10000Required only for percentage discounts.
Required range:
x >= 1Response
Coupon updated; existing pending reservations remain bound to the previous policy version.
Was this page helpful?