Coupons
All Coupons
GET
https://yoursite.mavenseed.com/api/v1/coupons
Retrieve all coupons.
Path Parameters
Name | Type | Description |
---|---|---|
page | integer | Results are paginated. |
Headers
Name | Type | Description |
---|---|---|
Authorization | string | Auth token |
Show Coupon
GET
https://yoursite.mavenseed.com/api/v1/coupons/:id
Retrieve a single coupon.
Headers
Name | Type | Description |
---|---|---|
Authorization | string | Auth token |
Create Coupon
POST
https://yoursite.mavenseed.com/api/v1/coupons
Create a coupon.
Headers
Name | Type | Description |
---|---|---|
Authorization | string | Auth Token |
Request Body
Name | Type | Description |
---|---|---|
internal_coupon_id | string | The actual coupon code itself. |
coupon_type | string |
|
currency | string | Currently only supporting |
duration | string |
|
duration_in_moths | integer | Required only if duration is |
max_redemptions | integer | Max times coupon can be claimed |
amount_off | integer | Amount in cents , required if percent off is blank. |
percent_off | integer | Percent off as an integer, required only if amount off is blank. |
redeem_by | object | When the coupon should expire in datetime format. |
eligible_types | array | Can include |
supported_countries | array | Array of 2 letter iso codes that the coupon can only be claimed from. |
Update Coupon
PATCH
https://yoursite.mavenseed.com/api/v1/coupons/:id
Update a single coupon. All of the above properties in create coupon are valid.
Headers
Name | Type | Description |
---|---|---|
Authorization | string | Auth token |
Delete Coupon
DELETE
https://yoursite.mavenseed.com/api/v1/coupons/:id
Path Parameters
Name | Type | Description |
---|---|---|
string |
Last updated