GET
/
catalog
/
products
/
{id}
/
inventory
curl --request GET \
  --url https://services.commercengine.dev/api/v1/x2yh61zw4k/admin/catalog/products/{id}/inventory \
  --header 'Authorization: Bearer <token>'
{
  "message": "<string>",
  "success": true,
  "content": {
    "inventory": [
      {
        "variant_id": "<string>",
        "track_quantity": true,
        "allow_backorder": true,
        "stock": [
          {
            "sku": "<string>",
            "warehouse_id": "<string>",
            "warehouse_name": "<string>",
            "received_quantity": 123,
            "reserved_quantity": 123,
            "sold_quantity": 123,
            "adjusted_quantity": 123,
            "stock_quantity": 123,
            "created_at": "2023-11-07T05:31:56Z",
            "modified_at": "2023-11-07T05:31:56Z"
          }
        ]
      }
    ]
  }
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Path Parameters

id
string
required

product id

Query Parameters

sort_by
string

JSON string format: {"field1":"asc", "field2":"desc"}

filters
string

JSON - array of objects

Response

200 - application/json
OK
message
string
success
boolean
content
object