- 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
Coupon Details
Production
Production
GET
https://api.salla.dev/admin/v2/coupons/{coupon_id}
Coupons
Last modified:2025-02-02 12:23:10
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:
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 |