- 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 Product Variants
Production
Production
GET
https://api.salla.dev/admin/v2/products/{product}/variants
Product Variants
Last modified:2025-02-02 12:23:10
product
as a path parameter.Scopes
products.read
- Products Read OnlyRequest
Authorization
Add the parameter
Authorization
to Headers,whose value is to concatenate the Token after the Bearer.Example:
Authorization: Bearer ********************
Path Params
product
integerÂ
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/products//variants'
Responses
🟢200Success
application/json
Body
status
numberÂ
optional
success
booleanÂ
optional
data
array[object (ProductVariant) {21}]Â
optional
id
numberÂ
required
price
objectÂ
required
regular_price
objectÂ
required
cost_price
objectÂ
required
sale_price
objectÂ
required
has_special_price
booleanÂ
read-onlyrequired
stock_quantity
integerÂ
required
Example:
4
unlimited_quantity
booleanÂ
required
notify_low
integerÂ
required
barcode
stringÂ
required
Example:
abc01
sku
stringÂ
required
Example:
23-TD23-32
mpn
stringÂ
required
gtin
stringÂ
required
product_type
is set to any of the following: product
, group_products
, codes
, digital
, donating
then value can be set. Otherwise, it can be set to null
updated_at
object (Date)Â
required
related_options
array[integer]
required
related_option_values
array[integer]
required
weight
numberÂ
required
Example:
3
weight_type
stringÂ
required
Example:
kg
weight_label
stringÂ
required
Example:
٣ كجم
is_user_subscribed_to_sku
booleanÂ
read-onlyrequired
is_default
booleanÂ
required
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": 652911549,
"price": {
"amount": 13.5,
"currency": "SAR"
},
"sale_price": {
"amount": 0,
"currency": "SAR"
},
"regular_price": {
"amount": 0,
"currency": "SAR"
},
"stock_quantity": 3000,
"barcode": "barcode-ABC",
"sku": "sku-variant-1551119600",
"related_option_values": [
667315336
],
"weight": 3,
"weight_type": "kg",
"weight_label": "٣ كجم"
}
],
"pagination": {
"count": 1,
"total": 1,
"perPage": 60,
"currentPage": 1,
"totalPages": 1,
"links": []
}
}
🟠404Not Found
🟠401Unauthorized
Modified at 2025-02-02 12:23:10