cURL
curl --request GET \ --url https://api.loopreturns.com/api/v1/inventories/{productVariantId}/{locationId} \ --header 'X-Authorization: <api-key>'
{ "available_count": 123, "product_variant": [ { "id": 123, "external_id": "<string>", "sku": "<string>", "name": "<string>", "weight_grams": 123, "barcode": "<string>" } ], "location": [ { "id": 123, "external_id": "<string>", "name": "<string>", "status": "active", "address": [ { "name": "<string>", "company": "<string>", "address1": "<string>", "address2": "<string>", "city": "<string>", "region": "<string>", "postal_code": "<string>", "country_code": "<string>" } ] } ] }
Get inventory details for a product variant by location.
API Scope: "Inventory (read)"
The unique identifier for the product variant, created by Loop.
653985747439023600
The unique identifier for the location, created by Loop.
631923350119788400
Success
The number of product_variants available at location.
product_variant
location
42
The details associated with the inventory's product_variant.
Show child attributes
The details associated with the inventory's location.