Light Mode
List Coupon Codes
GET
/coupons/codesLast modified: a month 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
Unique identification number assigned to the Coupon. List Coupon IDs can be found here.
Example:
1257881496
Request samples
Responses
Success(200)
Not Found(404)
Error Validation(422)
Unauthorized(401)
HTTP Code: 200
Content Type : JSONapplication/json
Data Schema
status
integer
optional
Response status code, a numeric or alphanumeric identifier used to convey the outcome or status of a request, operation, or transaction in various systems and applications, typically indicating whether the action was successful, encountered an error, or resulted in a specific condition.
success
boolean
optional
Response flag, boolean indicator used to signal a particular condition or state in the response of a system or application, often representing the presence or absence of certain conditions or outcomes.
data
$ref(#/definitions/2887986)[]
optional
#/definitions/2887986
optional
pagination
#/definitions/1307303optional
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: a month ago