All requests require three headers:
Authorization: Bearer YOUR_TOKEN, X-Tenant-ID: YOUR_TENANT_ID, and X-Org-ID: YOUR_ORG_ID.Adjust inventory
Post a stock adjustment for a specific product variant at a given location. Thequantity_delta field is signed:
- Positive values add stock (e.g. a goods receipt or purchase order receipt).
- Negative values remove stock (e.g. a sales fulfillment or write-off).
POST /api/v1/inventory/adjust
Headers
string
required
Bearer token from your authentication provider.
string
required
UUID of your tenant.
string
required
UUID of your organization.
Body
string
required
UUID of the product variant whose stock you are adjusting.
string
required
UUID of the fulfillment location at which the adjustment occurs.
integer
required
Signed integer indicating the stock change. Use a positive value to add units; use a negative value to remove units. A value of
0 is a no-op.Response
Returns the created ledger entry.string
UUID of the new ledger entry.
string
UUID of the organization.
string
UUID of the tenant.
string
UUID of the adjusted variant.
string
UUID of the adjusted location.
integer
The signed delta that was recorded.
string
Type of transaction. API-initiated adjustments are recorded as
adjustment.string
Human-readable note attached to the entry. API-initiated adjustments use
API Adjustment.string
ISO 8601 timestamp of when the ledger entry was created.
Example: Receiving stock
Use a positivequantity_delta when stock arrives at a warehouse — for example, when a purchase order is received.
Example: Fulfillment deduction
Use a negativequantity_delta when units are picked and shipped to fulfill an order.