POST
/
inventories
Update Inventory
curl --request POST \
  --url https://api.wizcommerce.com/v1/inventories \
  --header 'Content-Type: application/json' \
  --header 'X-API-Key: <api-key>' \
  --data '{
  "sku": "SKU-001",
  "available_quantity": 100,
  "reserved_quantity": 100,
  "in_stock_quantity": 100,
  "back_order_quantity": 100,
  "back_order_allowed": true,
  "out_of_stock_threshold": 100,
  "inventory_status": "IN_STOCK",
  "track_inventory": true,
  "on_order_details": [
    {
      "quantity": 100,
      "date": "2025-01-01T00:00:00Z",
      "identifier": "1234567890"
    }
  ],
  "in_transit_details": [
    {
      "quantity": 100,
      "date": "2025-01-01T00:00:00Z",
      "identifier": "1234567890"
    }
  ],
  "dynamic_details": "{\"key\":\"value\"}",
  "notes": "Notes"
}'
{
  "data": {
    "id": "01f5d171-d3e3-4b2b-bd57-0727194b5bed",
    "product_id": "1234567890",
    "available_quantity": 100,
    "sku": "SKU-001",
    "reserved_quantity": 100,
    "in_stock_quantity": 100,
    "back_order_quantity": 100,
    "inventory_status": "IN_STOCK",
    "status": "active",
    "track_inventory": true,
    "on_order_details": [
      {
        "quantity": 100,
        "date": "2025-01-01",
        "identifier": "1234567890"
      }
    ],
    "in_transit_details": [
      {
        "quantity": 100,
        "date": "2025-01-01",
        "identifier": "1234567890"
      }
    ],
    "notes": "Notes",
    "back_order_allowed": true,
    "created_at": "2025-01-01T15:04:05Z",
    "updated_at": "2025-01-01T15:04:05Z"
  }
}

Authorizations

X-API-Key
string
header
required

API Key for authentication

Body

application/json

Inventory Create or Update Request

The body is of type object.

Response

201
application/json

Created

The response is of type object.