Inventory Items

Apply a relative stock adjustment

Add or subtract a delta from an item's on_hand count and record a movement. Refused when the result would go negative or below held.

post/v1/inventory_items/{id}/adjustments

Request

  • Base URL
    https://inventories-api.paymongo.com
  • URL
    https://inventories-api.paymongo.com/v1/inventory_items/{id}/adjustments
  • Auth
    HTTP basic

Path parameters

idstring required

Item id

Request body

deltainteger required

Delta is a pointer so binding's "required" check does not mistake a legitimate zero for absent.

notestring
reasonstring required

Example request

{
  "delta": -5,
  "note": "cycle count correction",
  "reason": "correction"
}

Response

OK

has_moreboolean

Example response

{
  "data": {
    "available": 90,
    "created_at": 1752000000,
    "held": 10,
    "id": "invitem_abc123",
    "livemode": true,
    "low_stock_threshold": 5,
    "on_hand": 100,
    "updated_at": 1752000000,
    "variant_id": "prdvar_abc123",
    "warehouse_id": "ww_abc123"
  }
}

Changes

No recorded changes to this operation across all 1 revision of this API.