- 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
- Branches
- Currencies
- SEO
- Cities
- DNS Records
- Languages
- Employees
- Advertisements
- Webhooks
- Custom URLs
- Loyalty Points
- Webhooks - Store Events
Coupon Details
Production
Production
GET
https://api.salla.dev/admin/v2/coupons/{coupon_id}
Coupons
Last modified:2025-04-20 13:16:13
coupon_id
as a path 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 ********************
Path Params
coupon_id
string
required
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/'
Responses
🟢200Success
application/json
Body
status
number
optional
success
boolean
optional
data
object (Coupon)
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:
username@test.sa
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
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": null,
"maximum_amount": {
"amount": 0,
"currency": "SAR"
},
"show_maximum_amount": false,
"expiry_date": "2023-03-17 00:00:00",
"start_date": null,
"free_shipping": true,
"usage_limit": null,
"usage_limit_per_user": null,
"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": null,
"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": null,
"marketing_type": null,
"marketing_amount": null,
"marketing_hide_total_sales": false,
"marketing_show_maximum_amount": false,
"marketing_maximum_amount": null,
"marketing_info": null,
"marketing_visits_count": null,
"marketing_url": null,
"marketing_statistics_url": null
}
}
🟠404Not Found
🟠422Error Validation
🟠401Unauthorized
Modified at 2025-04-20 13:16:13