Skip to main content
POST
Adjust inventory stock

Authorizations

Authorization
string
header
required

Authenticate using a bearer token. To create a token, navigate to /settings/api-tokens and click Create API Token.

Body

application/json
adjustment_entries
object[]
required

One entry per stock adjustment. A maximum of 3000 entries may be submitted in a single request (exceeding this returns a 422). Payloads larger than 500 entries are posted asynchronously in the background: the response returns the created adjustment header immediately, but the individual stock changes finish posting shortly afterward rather than within the request.

Maximum array length: 3000
remarks
string

Optional remarks for the adjustment

effective_date
string<date> | null

Optional business date the adjustment posts on. Lets an integration backdate an adjustment (for example, to land it in a prior accounting period) in a single call instead of posting and then correcting. Omit to post on the current date.

is_correction
boolean

Marks this adjustment as a correction of another record. When true, both corrects_type and corrects_id are required — a correction must name the record it corrects. Supplying any of the three correction fields requires the complete set; an incomplete correction reference returns a 422. Defaults to false (a normal, non-correction adjustment).

corrects_type
enum<string> | null

The kind of record this adjustment corrects. Required when is_correction is true (or when corrects_id is supplied).

Available options:
adjustment,
receiving_report
corrects_id
integer | null

ID of the record (of type corrects_type) this adjustment corrects. Required when is_correction is true (or when corrects_type is supplied).

Required range: x >= 1

Response

Successful response

id
integer

ID of the created adjustment

remarks
string

Remarks for the adjustment

posted_by
integer

ID of the user who posted the adjustment

created_at
string<date-time>

Timestamp of when the adjustment was created

updated_at
string<date-time>

Timestamp of when the adjustment was last updated