- Store API
- Admin API
- Auth
- Batch Jobs
- Currencies
- Customers
- Customer Groups
- Discounts
- Draft Orders
- Gift Cards
- Inventory Items
- Invites
- Notes
- Notifications
- Orders
- Create a Reservation
- Cancel Claim's Fulfillment
- Ship a Claim's Fulfillment
- Cancel Swap's Fulfilmment
- Get Order Reservations
- Add a Shipping Method
- Create a Refund
- Get an Order
- Update an Order
- Create a Fulfillment
- Cancel a Swap
- List Orders
- Create a Swap
- Complete an Order
- Create a Swap Fulfillment
- Cancel a Claim
- Process a Swap Payment
- Ship a Fulfillment
- Capture an Order's Payments
- Archive Order
- Update a Claim
- Request a Return
- Create a Claim Fulfillment
- Ship a Swap's Fulfillment
- Cancel a Fulfilmment
- Create a Claim
- Cancel an Order
- Order Edits
- Payments
- Payment Collections
- Product Collections
- Product Tags
- Product Types
- Product Variants
- Price Lists
- Products
- Product Categories
- Publishable Api Keys
- Reservations
- Regions
- Return Reasons
- Returns
- Sales Channels
- Shipping Options
- Shipping Profiles
- Stock Locations
- Store
- Swaps
- Uploads
- Tax Rates
- Users
- 【Demo】Products
Get Variant's Inventory
GET
/admin/variants/{id}/inventory
Admin API/Product VariantsProduct Variants
Request
Path Params
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 '/admin/variants//inventory'
Responses
🟢200OK
application/json
Body
variant
object (VariantInventory)
optional
id
string
required
sales_channel_availability
array [object {3}]
required
inventory
object (ResponseInventoryItem)
required
Example
{
"variant": {
"id": "string",
"sales_channel_availability": [
{
"channel_name": "string",
"channel_id": "string",
"available_quantity": 0
}
],
"inventory": {
"sku": "string",
"hs_code": "string",
"origin_country": "string",
"mid_code": "string",
"title": "string",
"description": "string",
"thumbnail": "string",
"material": "string",
"weight": 0,
"height": 0,
"width": 0,
"length": 0,
"requires_shipping": true,
"created_at": "2019-08-24T14:15:22Z",
"updated_at": "2019-08-24T14:15:22Z",
"deleted_at": "2019-08-24T14:15:22Z",
"metadata": {
"car": "white"
},
"location_levels": [
{
"sku": "string",
"hs_code": "string",
"origin_country": "string",
"mid_code": "string",
"title": "string",
"description": "string",
"thumbnail": "string",
"material": "string",
"weight": 0,
"height": 0,
"width": 0,
"length": 0,
"requires_shipping": true,
"created_at": "2019-08-24T14:15:22Z",
"updated_at": "2019-08-24T14:15:22Z",
"deleted_at": "2019-08-24T14:15:22Z",
"metadata": {
"car": "white"
},
"available_quantity": 0
}
]
}
}
}
🟠400Client Error or Multiple Errors
🟠401User is not authorized. Must log in first
🟠404Not Found Error
🟠409Invalid State Error
🟠422Invalid Request Error
🔴500Server Error
Modified at 2024-05-23 07:10:14