List Coupon Codes
GET
/coupons/codesThis endpoint allows you to return all the child coupons of the parent coupon by passing the coupon_id
as a query parameter.
Request
The unique number of the coupon. Get a list of Coupon IDs from here
Request samples
[api.label.responses]
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.
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.
A Coupon ID is a unique identifier assigned to a specific coupon code. List of coupons cane be found here.
Generated coupon code
For a better response behavior as well as maintain the best security level, All retrieving API endpoints use a mechanism to retrieve data in chunks called pagination. Pagination working by return only a specific number of records in each response, and through passing the page number you can navigate the different pages.
Number of returned results.
Number of all results.
Number of results per page.
Number of current page.
Number of total pages.
Array of linkes to next and previous pages.
{
"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"
}
}
}