- Welcome 👋
- Get Started
- 水合失败
- Authorization
- Webhooks
- Conditional Webhooks
- Security Considerations
- Multi-Language Support
- Responses
- Pagination
- Rate Limiting
- Versioning
- Change Log
- Support
- 测试
- APIs
- Orders
- Order Status
- Order Histories
- Abandoned Carts
- Order Tags
- Order Invoice
- Order Reservations
- Order Items
- Products
- Product Options
- Product Quantity
- Product Variants
- Product Tags
- Product Images
- Product Option Values
- 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
- Orders
- Webhooks - Store Events
- 其他资源-Module
- 其他资源 Copy
Update Quantity By SKU
Deprecated
Develop Env
https://echo.apifox.com/anything
Develop Env
https://echo.apifox.com/anything
PUT
https://echo.apifox.com/anything
Product Quantity
Last modified:2025-02-20 07:53:20
Maintainer:Not configured
sku
as a path parameter.Important
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 ********************
Path Params
sku
string
required
Body Params application/json
quantity
number
optional
required if
the variable unlimited_quantity
is = false
mode
enum<string> | enum<null>
optional
Allowed values:
overwriteincrementdecrement
Default:
overwrite
unlimited_quantity
boolean
optional
branches_quantities
object
optional
Retail Store | متاجر التجزئة
quantity
object
optional
Example
{
"quantity": 5,
"mode": "increment"
}
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 PUT 'https://echo.apifox.com/anything/products/quantities/bySku/' \
--header 'Content-Type: application/json' \
--data-raw '{
"quantity": 5,
"mode": "increment"
}'
Responses
🟢201Progress In-Action
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 updated successfully",
"code": 201
}
}
🟠404Not Found
🟠422Error Validation

扫码加入 Apifox 微信交流群
在这里,获得 Apifox 使用上的任何帮助,快速上手让你的研测效率得到大幅提升

