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
Bearer token from your authentication provider.
UUID of your tenant.
UUID of your organization.
Body
UUID of the product variant whose stock you are adjusting.
UUID of the fulfillment location at which the adjustment occurs.
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.UUID of the new ledger entry.
UUID of the organization.
UUID of the tenant.
UUID of the adjusted variant.
UUID of the adjusted location.
The signed delta that was recorded.
Type of transaction. API-initiated adjustments are recorded as
adjustment.Human-readable note attached to the entry. API-initiated adjustments use
API Adjustment.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.