Coupons
Create Coupon
Create a new coupon with discount details and active/inactive status.
post/api/v2/coupons
Request body
namestring required
Name of the coupon.
currency'SAR' | 'USD' | 'EUR' | 'GBP' | 'AED' | 'BHD' | 'KWD' | 'OMR' | 'QAR'
ISO 4217 currency codes supported by Moyasar.
Includes all currencies supported by Moyasar payment gateway.
is_percentageboolean
True if the discount is a percentage, False if it is a fixed amount.
is_activeboolean
Indicates if the coupon is active upon creation.
Response
Successful Response
created_atstring date-time
Creation timestamp of the object.
updated_atstring date-time nullable
Last modification timestamp of the object.
idstring uuid4
Unique identifier (UUID) of the coupon
namestring
Name of the coupon.
discount_valuestring
Discount value of the coupon (either percentage or fixed).
currency'SAR' | 'USD' | 'EUR' | 'GBP' | 'AED' | 'BHD' | 'KWD' | 'OMR' | 'QAR'
ISO 4217 currency codes supported by Moyasar.
Includes all currencies supported by Moyasar payment gateway.
is_percentageboolean
True if the discount is a percentage, False if it is a fixed amount.
is_activeboolean
Indicates if the coupon is currently active.