- 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
Update Bulk Quantities
Production
Production
POST
https://api.salla.dev/admin/v2/products/quantities/bulk
Product Quantity
Last modified:2024-10-31 11:29:22
Scopes
products.read_write
- Products Read & WriteRequest
Authorization
Add the parameter
Authorization
to Headers,whose value is to concatenate the Token after the Bearer.Example:
Authorization: Bearer ********************
Body Params application/json
products
array [object {7}]Â
required
identifer_type
enum<string>Â
required
id
, variant_id
or sku
Allowed values:
idvariant_idsku
identifer
stringÂ
required
Example:
1210921
quantity
integerÂ
required
mode
enum<string>Â Â |Â enum<null>Â
optional
Allowed values:
overwriteincrementdecrement
Default:
overwrite
unlimited_quantity
booleanÂ
optional
branch
integerÂ
optional
reason_id
integerÂ
optional
Example
{
"products": [
{
"identifer_type": "id",
"identifer": "613398835",
"quantity": 60,
"mode": "increment",
"branch": "349994915",
"reason_id": 566146469,
"unlimited_quantity": true
},
{
"identifer_type": "id",
"identifer": "9834759404",
"quantity": 80,
"mode": "overwrite",
"branch": "349994915",
"reason_id": 566146469,
"unlimited_quantity": true
},
{
"identifer_type": "variant_id",
"identifer": "3498732894",
"quantity": 14,
"mode": "decrement",
"branch": "349994915",
"reason_id": 566146469
},
{
"identifer_type": "variant_id",
"identifer": "8439405958",
"quantity": 140,
"branch": "349994915",
"reason_id": 566146469
}
]
}
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 POST 'https://api.salla.dev/admin/v2/products/quantities/bulk' \
--header 'Content-Type: application/json' \
--data-raw '{
"products": [
{
"identifer_type": "id",
"identifer": "613398835",
"quantity": 60,
"mode": "increment",
"branch": "349994915",
"reason_id": 566146469,
"unlimited_quantity": true
},
{
"identifer_type": "id",
"identifer": "9834759404",
"quantity": 80,
"mode": "overwrite",
"branch": "349994915",
"reason_id": 566146469,
"unlimited_quantity": true
},
{
"identifer_type": "variant_id",
"identifer": "3498732894",
"quantity": 14,
"mode": "decrement",
"branch": "349994915",
"reason_id": 566146469
},
{
"identifer_type": "variant_id",
"identifer": "8439405958",
"quantity": 140,
"branch": "349994915",
"reason_id": 566146469
}
]
}'
Responses
🟢201Created
application/json
Body
status
numberÂ
optional
success
booleanÂ
optional
data
objectÂ
optional
message
stringÂ
optional
code
numberÂ
optional
Example
{
"status": 201,
"success": true,
"data": {
"message": "The details has been queued to update, it may take several minutes to finish the process",
"code": 201
}
}
🟠422Error Validation
🟠401unauthorized
Modified at 2024-10-31 11:29:22