Create inventory adjustment

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.

string
enum
Defaults to BOTH

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

View the enum reference

Allowed:
string
enum

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

date
required

The date the stock adjustment takes effect.

string
length ≤ 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_items
array of objects
required

The tracked stock changes to post.

line_items*
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.

string
enum
Defaults to application/json

Generated from available request content types

Allowed:
Responses

Language
Credentials
LoadingLoading…
Response
Click Try It! to start a request and see the response here! Or choose an example:
application/json
*/*