- 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 Coupons
Production
Production
GET
https://api.salla.dev/admin/v2/coupons
Coupons
Last modified:2025-01-21 06:22:59
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
keyword
stringÂ
optional
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?keyword'
Responses
🟢200Success
application/json
Body
status
numberÂ
optional
success
booleanÂ
optional
data
array[object (Coupon) {47}]Â
optional
code
stringÂ
required
Example:
AAVVC
type
enum<string>Â
required
Allowed values:
percentagePercentagefixedFixedfp
Example:
percentage
status
enum<string>Â
required
Allowed values:
activeinactivedeleted
Example:
active
is_apply_with_offer
boolean  | nullÂ
optional
true
, the coupon will be applied with the created offer that has an apply with coupon option activated in the offers; otherwise, it will not be applied.amount
objectÂ
required
minimum_amount
objectÂ
required
maximum_amount
objectÂ
required
show_maximum_amount
booleanÂ
required
Default:
false
expiry_date
stringÂ
required
YYYY-MM-DD
or YYYY-MM-DD HH:MM:SS
Example:
2022-12-31 12:59:59
start_date
stringÂ
required
YYYY-MM-DD
or YYYY-MM-DD HH:MM:SS
Example:
2022-12-28 12:59:59
free_shipping
booleanÂ
required
Default:
true
usage_limit
numberÂ
required
Example:
89
usage_limit_per_user
numberÂ
required
Example:
88
include_product_ids
array[string]
required
exclude_product_ids
array[string]
required
is_sale_products_exclude
booleanÂ
required
Default:
true
include_category_ids
array[string]
required
exclude_category_ids
array[string]
required
include_customer_group_ids
array[string]
required
exclude_customer_group_ids
array[string]
required
exclude_brands_ids
array[string]
required
exclude_shipping_ids
array[string]
required
include_customer_ids
array[string]
required
include_payment_methods
array[string]
required
Allowed values:
allapple_paybankcodcredit_cardknetmadapaypalspotii_paystc_paytabby_installmenttamara_installment
applied_in
enum<string>Â
required
all
or web
or app
Allowed values:
allwebapp
Example:
all
is_group
booleanÂ
required
Default:
true
group_name
string  | nullÂ
required
requiredif
is_group
= true
; otherwise returns null
valueExample:
Grouping1
group_coupons_count
number  | nullÂ
required
requiredif
is_group
= true
; otherwise returns null
valueExample:
90
group_coupon_suffix
string  | nullÂ
required
requiredif
is_group
= true
; otherwise returns null
valueExample:
xyz
group_coupons
array [object {1}]Â
required
requiredif
is_group
= true
; otherwise returns null
valuebeneficiary_domain
string  | nullÂ
required
Example:
domain.test
statistics
objectÂ
required
Example:
domain.test
created_at
objectÂ
required
updated_at
objectÂ
required
marketing_active
booleanÂ
required
Default:
true
marketing_name
string  | nullÂ
required
requiredif
marketing_active
= true
; otherwise returns null
valueExample:
User Name
marketing_email
string  | nullÂ
required
marketing_acive: true
; otherwise returns null
value.Example:
marketing_type
enum<string>Â
required
Allowed values:
percentagePercentagefixedFixedfp
Example:
percentage
marketing_amount
object  | nullÂ
required
requiredif
marketing_active
= true
; otherwise returns null
valuemarketing_hide_total_sales
boolean  | nullÂ
required
marketing_acive: true
; otherwise returns null
value.Default:
false
marketing_show_maximum_amount
boolean  | nullÂ
required
marketing_acive: true
; otherwise returns null
value.Default:
true
marketing_maximum_amount
number  | nullÂ
required
marketing_acive: true
; otherwise returns null
value.Default:
0
Example:
4000
marketing_info
string  | nullÂ
required
marketing_acive: true
; otherwise returns null
value.Example:
Additional Notes
marketing_visits_count
number  | nullÂ
required
marketing_acive: true
; otherwise returns null
value.Example:
33
marketing_url
string  | nullÂ
required
marketing_acive: true
; otherwise returns null
value.Example:
https://salla.sa/teststore?utm_source=ref&utm_campaign=QAZCVS
marketing_statistics_url
string  | nullÂ
required
marketing_acive: true
; otherwise returns null
value.Example:
https://mtjr.coupons/VvVMP
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": 6930446,
"code": "DEAL",
"type": "fixed",
"status": "active",
"is_apply_with_offer": true,
"amount": {
"amount": 30,
"currency": "SAR"
},
"minimum_amount": 90,
"maximum_amount": {
"amount": 0,
"currency": "SAR"
},
"show_maximum_amount": false,
"expiry_date": "2024-03-17 00:00:00",
"start_date": "2025-03-17 00:00:00",
"free_shipping": true,
"usage_limit": 90,
"usage_limit_per_user": 80,
"include_product_ids": [],
"exclude_product_ids": [],
"is_sale_products_exclude": true,
"include_category_ids": [],
"exclude_category_ids": [],
"include_customer_group_ids": [],
"exclude_customer_group_ids": [],
"exclude_brands_ids": [],
"exclude_shipping_ids": [],
"include_payment_methods": [],
"applied_in": "all",
"is_group": true,
"group_name": "Deals",
"group_coupons_count": 3,
"group_coupon_suffix": "DEAL",
"group_coupons": [
{
"code": "DEAL5Wsl"
},
{
"code": "DEALgaNN"
},
{
"code": "DEALFRa7"
}
],
"beneficiary_domain": "domain.test",
"statistics": {
"num_of_usage": 0,
"num_of_customers": 0,
"coupon_sales": {
"amount": 0,
"currency": "SAR"
}
},
"created_at": {
"date": "2022-04-06 12:55:06.000000",
"timezone_type": 3,
"timezone": "Asia/Riyadh"
},
"updated_at": {
"date": "2022-04-06 12:55:06.000000",
"timezone_type": 3,
"timezone": "Asia/Riyadh"
},
"marketing_active": false,
"marketing_name": "Name of Marketing",
"marketing_type": "Percentage",
"marketing_amount": 500,
"marketing_hide_total_sales": false,
"marketing_show_maximum_amount": false,
"marketing_maximum_amount": 10000,
"marketing_info": "Additional Notes",
"marketing_visits_count": 80,
"marketing_url": "https://salla.sa/teststore?utm_source=ref&utm_campaign=QAZCVS",
"marketing_statistics_url": "https://mtjr.coupons/VvVMP"
},
{
"id": 1622617640,
"code": "QAZCVS",
"type": "fixed",
"status": "active",
"is_apply_with_offer": true,
"amount": {
"amount": 30,
"currency": "SAR"
},
"minimum_amount": 9000,
"maximum_amount": {
"amount": 0,
"currency": "SAR"
},
"show_maximum_amount": false,
"expiry_date": "2025-02-17 00:00:00",
"start_date": "2026-03-17 00:00:00",
"free_shipping": true,
"usage_limit": 600,
"usage_limit_per_user": 8,
"include_product_ids": [],
"exclude_product_ids": [],
"is_sale_products_exclude": true,
"include_category_ids": [],
"exclude_category_ids": [],
"include_customer_group_ids": [],
"exclude_customer_group_ids": [],
"exclude_brands_ids": [],
"exclude_shipping_ids": [],
"include_payment_methods": [],
"applied_in": "all",
"is_group": false,
"group_name": "Grouping1",
"group_coupons_count": 90,
"group_coupon_suffix": "xyz",
"group_coupons": [],
"beneficiary_domain": "domain.test",
"statistics": {
"num_of_usage": 0,
"num_of_customers": 0,
"coupon_sales": {
"amount": 0,
"currency": "SAR"
}
},
"created_at": {
"date": "2022-04-06 12:45:13.000000",
"timezone_type": 3,
"timezone": "Asia/Riyadh"
},
"updated_at": {
"date": "2022-04-06 12:45:13.000000",
"timezone_type": 3,
"timezone": "Asia/Riyadh"
},
"marketing_active": true,
"marketing_name": "Nabil",
"marketing_type": "percentage",
"marketing_amount": {
"amount": 10,
"currency": "SAR"
},
"marketing_hide_total_sales": false,
"marketing_show_maximum_amount": false,
"marketing_info": "",
"marketing_visits_count": 0,
"marketing_url": "https://salla.sa/dev-wofftr4xsra5xtlv?utm_source=ref&utm_campaign=QAZCVS",
"marketing_statistics_url": "https://mtjr.coupons/w172T"
},
{
"id": 242399780,
"code": "azvfpsv",
"type": "fixed",
"status": "active",
"is_apply_with_offer": true,
"amount": {
"amount": 30,
"currency": "SAR"
},
"minimum_amount": {
"amount": 100,
"currency": "SAR"
},
"maximum_amount": {
"amount": 50,
"currency": "SAR"
},
"show_maximum_amount": false,
"expiry_date": "2023-03-17 00:00:00",
"start_date": "2022-04-24 06:00:00",
"free_shipping": true,
"usage_limit": 10,
"usage_limit_per_user": 1,
"include_product_ids": [
1261174103
],
"exclude_product_ids": [
277818017
],
"is_sale_products_exclude": true,
"include_category_ids": [
256950451,
2064430530
],
"exclude_category_ids": [
307036893
],
"include_customer_group_ids": [
667738032
],
"exclude_customer_group_ids": [],
"exclude_brands_ids": [
1097509908
],
"exclude_shipping_ids": [
1935030040
],
"include_payment_methods": [
"all"
],
"applied_in": "all",
"is_group": false,
"group_name": "Grouping1",
"group_coupons_count": 90,
"group_coupon_suffix": "bvg",
"group_coupons": [],
"beneficiary_domain": "salla.sa",
"statistics": {
"num_of_usage": 0,
"num_of_customers": 0,
"coupon_sales": {
"amount": 0,
"currency": "SAR"
}
},
"created_at": {
"date": "2022-04-06 12:38:06.000000",
"timezone_type": 3,
"timezone": "Asia/Riyadh"
},
"updated_at": {
"date": "2022-04-06 12:59:14.000000",
"timezone_type": 3,
"timezone": "Asia/Riyadh"
},
"marketing_active": true,
"marketing_name": "User Name",
"marketing_type": "percentage",
"marketing_amount": {
"amount": 5,
"currency": "SAR"
},
"marketing_hide_total_sales": false,
"marketing_show_maximum_amount": true,
"marketing_maximum_amount": 4000,
"marketing_info": "Marketing coupon for User Name",
"marketing_visits_count": 0,
"marketing_url": "https://salla.sa/dev-wofftr4xsra5xtlv?utm_source=ref&utm_campaign=azvfpsv",
"marketing_statistics_url": "https://mtjr.coupons/eqOuz"
}
],
"pagination": {
"count": 3,
"total": 3,
"perPage": 15,
"currentPage": 1,
"totalPages": 1,
"links": []
}
}
🟠401Unauthorized
Modified at 2025-01-21 06:22:59