Light Mode
List Coupon Codes
GET
/coupons/codesLast modified: 16 days ago
This endpoint allows you to return all the child coupons of the parent coupon by passing the coupon_id
as a query parameter.
Request
Query Params
coupon_id
integer
required
The unique number of the coupon. Get a list of Coupon IDs from here
Example:
1257881496
Request samples
Responses
Success(200)
Not Found(404)
Error Validation(422)
HTTP Code: 200
Content Type : JSONapplication/json
Data Schema
No schema defined
Example
{
"status": 200,
"success": true,
"data": [
{
"id": 385681437,
"code": "coupgmrGA"
},
{
"id": 1622792886,
"code": "coupgedkl"
},
{
"id": 847582715,
"code": "coupYgPYm"
},
{
"id": 207766776,
"code": "coupTyWXg"
},
{
"id": 1582287441,
"code": "coupgOuHi"
},
{
"id": 672429890,
"code": "coupgKhcv"
},
{
"id": 997861675,
"code": "coupgVbU8"
},
{
"id": 1474282764,
"code": "coupgPQFE"
},
{
"id": 56440983,
"code": "coupgmrEQ"
},
{
"id": 19378402502,
"code": "coupggFg9"
},
{
"id": 1299038111,
"code": "coupgBzJc"
},
{
"id": 525025974,
"code": "coupgUvBh"
},
{
"id": 1762616341,
"code": "coupRVtYC"
},
{
"id": 989684078,
"code": "coupgyIYy"
},
{
"id": 349932097,
"code": "coupgiDru"
}
],
"pagination": {
"count": 15,
"total": 200,
"perPage": 15,
"currentPage": 3,
"totalPages": 14,
"links": {
"previous": "http://api.salla.dev/admin/v2/coupons/codes?coupon_id=626791646&page=2",
"next": "http://api.salla.dev/admin/v2/coupons/codes?coupon_id=626791646&page=4"
}
}
}
Last modified: 16 days ago