OverviewPlatformsAPI ReferenceResources
Commerce

Get a product's stock

GEThttps://zernio.com/api/v1/commerce/inventory

Stock per variant and location: available, on hand, committed to orders and incoming.

PlatformsShopify

Authentication

AuthorizationBearer tokenRequired

API key authentication: send your Zernio API key in the Authorization header, prefixed with Bearer.

Query parameters

accountIdstringRequired

Connected store SocialAccount id.

productIdstringRequired

Responses

Success· the request worked

Errors· the request failed

GET/v1/commerce/inventory
import Zernio from '@zernio/node';const zernio = new Zernio({ apiKey: process.env.ZERNIO_API_KEY });const { data } = await zernio.commerce.listCommerceInventory({  query: {    accountId: 'account_abc123',    productId: 'product_abc123',  },});console.log(data);
{  "inventory": [    {      "productId": "string",      "variantId": "string",      "sku": "string",      "tracked": true,      "levels": [        {          "locationId": "string",          "available": 0,          "onHand": 0,          "committed": 0,          "incoming": 0        }      ]    }  ]}
OpenAPI specification
Was this page helpful?