Adjustments

Absolute Adjustment

PUT /inventory/adjustments/absolute

Request

Override the existing inventory levels for an inventory item at a location. Use absolute adjustments as the default method for updating inventory. This endpoint batches requests, making them more resource friendly than the Catalog API. Absolute adjustments have lower complexity than relative adjustments, which synchronize with orders.

Limits

Authentication

  • X-Auth-Token in header

Parameters

  • store_hash in path - string
  • Accept in header with default of application/json - string
    required
    The MIME type of the response body.
  • Content-Type in header with default of application/json - string
    required
    The MIME type of the request body.

Body

object | application/json
  • reason
    string

    Reason for the adjustment operation.
    Example: Monthly arrival delivered.
  • items
    array[]
    required

    One of the sku, product_id, or variant_id is required to identify the item.

Absolute Adjustment

{
"reason": "Absolute adjustment reason",
"items": [
{
"location_id": 1,
"variant_id": 1,
"quantity": 1
},
{
"location_id": 2,
"variant_id": 3,
"quantity": 1
},
{
"location_id": 3,
"sku": "sku-4",
"quantity": 1
},
{
"location_id": 1,
"sku": "sku-5",
"quantity": 1
},
{
"location_id": 1,
"product_id": 111,
"quantity": 7
}
]
}

Response

Request has been successfully processed.

Body

object | application/json
  • transaction_id
    string

    Unique identifier of performed action.

Relative Adjustment

POST /inventory/adjustments/relative

Request

Add or subtract inventory for an inventory item at a location. Use this endpoint only when you do not know absolute quantities. For example, making order-related inventory changes through a third-party may require relative adjustments. Otherwise, use the Absolute adjustment endpoint for updating inventory.

Limits

Authentication

  • X-Auth-Token in header

Parameters

  • store_hash in path - string
  • Accept in header with default of application/json - string
    required
    The MIME type of the response body.
  • Content-Type in header with default of application/json - string
    required
    The MIME type of the request body.

Body

object | application/json
  • reason
    string

    Reason for the adjustment operation.
    Example: Monthly arrival delivered.
  • items
    array[]
    required

    One of the sku, product_id, or variant_id is required to identify the item.

Relative Adjustment

{
"reason": "Relative adjustment reason",
"items": [
{
"location_id": 1,
"variant_id": 1,
"quantity": 1
},
{
"location_id": 2,
"variant_id": 3,
"quantity": -1
},
{
"location_id": 3,
"sku": "sku-4",
"quantity": 1
},
{
"location_id": 1,
"sku": "sku-5",
"quantity": -1
},
{
"location_id": 1,
"product_id": 111,
"quantity": 7
}
]
}

Response

Request has been successfully processed.

Body

object | application/json
  • transaction_id
    string

    Unique identifier of performed action.

example

{
"transaction_id": "string"
}
Did you find what you were looking for?