Create a stock transfer

Creates a stock transfer object.

Until the stock leaves the source location, a row's cost_per_unit is the source location's average cost when the row was saved. Once the stock has left, when the transfer status becomes inTransit or received, it is the cost of the stock the row took at the source location, and it follows later changes that re-cost that location.

Recent Requests
Log in to see full request history
TimeStatusUser Agent
Retrieving recent requests…
LoadingLoading…
Body Params

new stock transfer details

string
length ≥ 1
integer
required
≤ 2147483647
integer
required
≤ 2147483647
string
string
string
string | null
stock_transfer_rows
array of objects
required
length ≥ 1
stock_transfer_rows*
string
required
≤ 100000000000000000
integer
required
≤ 2147483647
batch_transactions
array of objects
length ≥ 1
deprecated

Batch-level breakdown of the stock transfer row quantity. The sum of batch transaction quantities must not exceed the row quantity. Deprecated: will be removed in May 2027. Use traceability instead. When both traceability and batch_transactions are sent, traceability wins.

batch_transactions
integer | null
required
≤ 2147483647

ID of the batch to transfer stock for. Use null to transfer unbatched (untraced) stock.

number
required
≤ 100000000000000000
traceability
array of objects

Unified allocation breakdown of the row quantity (batch / serial / bin). Preferred over batch_transactions; when both are sent, traceability wins.

traceability
Responses

Language
Credentials
Bearer
LoadingLoading…
Response
Choose an example:
application/json