Create inventory adjustment

post
https://api.wafeq.com/v1/inventory-adjustments/

Endpoint for creating and posting an inventory adjustment atomically. Send an external_id to retry safely: a repeated create returns HTTP 409 with code duplicate_external_id and the existing adjustment id in metadata.id. Creating requires a plan that includes inventory; otherwise the request is refused with code upgrade_required. A VALUE adjustment needs stock on hand of the item on its date.

Body Params

An inventory adjustment to create and post atomically using the supplied quantities and values.

stringenumDefaults to BOTH

Whether the adjustment changes stock quantity, stock value, or both.

View the enum reference

Allowed:
stringenum

The currency in which the adjustment is recorded. Only the organization base currency is accepted; omit it to use that currency.

View the enum reference

daterequired

The date the stock adjustment takes effect.

stringlength ≤ 255

An identifier from the source system, unique among non-deleted adjustments in the organization. Send it to make retries safe: a repeated create returns HTTP 409 with the existing adjustment id in metadata.id.

line_itemsarray of objectsrequired

The tracked stock changes to post.

string

The business reference of the stock adjustment.

Headers
string

Client-provided UUID to uniquely identify a request

string

The id of the organization to act on, from GET /v1/organizations/. Required when the OAuth token or accounting partner API key grants access to several organizations; optional otherwise. With an organization API key, it must name the key's own organization.

stringenumDefaults to application/json

Generated from available request content types

Allowed:
Response