Coupons
Get Coupons
Coupons
Get Coupons
Retrieve a list of coupons
GET
/
v1
/
coupons
curl --location --request GET 'https://client.corrily.com/v1/coupons'
{
"message": "Successfully retrieved all coupons.",
"success": true,
"coupons": [
{
"api_id": "coupon_1",
"name": "Coupon_1",
"currency": null,
"coupon_type": {
"coupon_type": "percentage"
},
"value": 10,
"active_from": null,
"active_till": null,
"org": 1,
"status": "ACTIVE",
"created_at": "2024-01-17T09:40:18.058647+00:00",
"updated_at": "2024-01-17T09:40:18.058647+00:00",
"coupon_external_coupons": []
}
]
}
curl --location --request GET 'https://client.corrily.com/v1/coupons'
{
"message": "Successfully retrieved all coupons.",
"success": true,
"coupons": [
{
"api_id": "coupon_1",
"name": "Coupon_1",
"currency": null,
"coupon_type": {
"coupon_type": "percentage"
},
"value": 10,
"active_from": null,
"active_till": null,
"org": 1,
"status": "ACTIVE",
"created_at": "2024-01-17T09:40:18.058647+00:00",
"updated_at": "2024-01-17T09:40:18.058647+00:00",
"coupon_external_coupons": []
}
]
}
Query Params
Filter coupons by name
Response
Whether or not the request completed successfully.
Text information about request status. In case of an error here will be a useful explanation.
An array of found coupons
A coupon object
Coupon’s api_id value
Coupon’s name
Coupon’s currency. Can be null
Coupon_type object
Can be:
- ‘percentage’ for coupons with discount in percents.
- ‘fixed_amount’ for coupons with fixed discount
Coupon’s value for discount
ISODate value since which a coupon can be applied.
ISODate value until which a coupon can be used.
Coupon’s status. Can be: “ACTIVE” and “NOT_ACTIVE”
curl --location --request GET 'https://client.corrily.com/v1/coupons'
{
"message": "Successfully retrieved all coupons.",
"success": true,
"coupons": [
{
"api_id": "coupon_1",
"name": "Coupon_1",
"currency": null,
"coupon_type": {
"coupon_type": "percentage"
},
"value": 10,
"active_from": null,
"active_till": null,
"org": 1,
"status": "ACTIVE",
"created_at": "2024-01-17T09:40:18.058647+00:00",
"updated_at": "2024-01-17T09:40:18.058647+00:00",
"coupon_external_coupons": []
}
]
}