Coupons
All endpoints related to Coupons
Supported Endpoints
getAllCoupons()
: Returns a list of all the coupons created.getCoupon(id)
: Retrieves a coupon by the entered ID.createCoupon(fields)
: Creates a coupon and returns the created coupon.updateCoupon(id, fields)
: Updates a coupon by the entered ID.deleteCoupon(id)
: Deletes a coupon by the entered ID.
getAllCoupons()
getAllCoupons()
getCoupon()
getCoupon()
Type
Required
Description
id
string
✔️
ID of a Coupon
createCoupon()
createCoupon()
Parameters
Type
Required
Description
fields
object
✔️
Coupon's field
updateCoupon()
updateCoupon()
Parameters
Type
Required
Description
id
string
✔️
ID of the coupon you want to update
fields
object
✔️
Coupon's field
deleteCoupon()
deleteCoupon()
Parameters
Type
Required
Description
id
string
✔️
ID of a Coupon
Last updated