- Welcome 👋
- Get Started
- Create Your First App
- Authorization
- Webhooks
- Conditional Webhooks
- Security Considerations
- Multi-Language Support
- Responses
- Pagination
- Rate Limiting
- Versioning
- Change Log
- Support
- APIs
- Orders
- Order Status
- Order Histories
- Order Tags
- Order Invoice
- Order Reservations
- Order Items
- Products
- Product Options
- Product Quantity
- Product Variants
- Product Tags
- Product Images
- Product Option Values
- Abandoned Carts
- Customer Groups
- Customers
- Digitals Product
- Categories
- Exports
- Shipments
- Shipping Companies
- Shipping Zones
- Shipping Rules
- Countries
- Product Option Templates
- Taxes
- Coupons
- Affiliates
- Order Assignment
- Special Offers
- Transactions
- Payments
- Settlements
- Settings
- Merchant
- Brands
- Reviews
- Branches
- Currencies
- SEO
- Cities
- DNS Records
- Languages
- Employees
- Advertisements
- Webhooks
- Custom URLs
- Loyalty Points
- Webhooks - Store Events
List Coupon Codes
Production
Production
GET
https://api.salla.dev/admin/v2/coupons/codes
Coupons
Last modified:2025-02-02 12:23:10
coupon_id
as a query parameter.Scopes
marketing.read
- Marketing Read OnlyRequest
Authorization
Add the parameter
Authorization
to Headers,whose value is to concatenate the Token after the Bearer.Example:
Authorization: Bearer ********************
Query Params
coupon_id
integer
required
Example:
1257881496
Request samples
Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R
Request Request Example
Shell
JavaScript
Java
Swift
curl --location --request GET 'https://api.salla.dev/admin/v2/coupons/codes?coupon_id=1257881496'
Responses
🟢200Success
application/json
Body
status
integer
optional
success
boolean
optional
data
array[object (ChildCouponCodes) {2}]
optional
id
integer
required
code
string
required
<= 10 characters
pagination
object (Pagination)
optional
count
number
required
total
number
required
perPage
number
required
<= 65
currentPage
number
required
totalPages
number
required
links
object
required
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"
}
}
}
🟠404Not Found
🟠422Error Validation
🟠401Unauthorized
Modified at 2025-02-02 12:23:10