Commit a warehouse transfer
Operation ID: commitWarehouseTransfer
Group: Inventory › Warehouse Transfers
Open in the interactive reference
POST /inventory/warehouse-transfers/{id}/commit
Not retry-safe: A write that does not run in its own transaction, so it cannot offer replay; it refuses Idempotency-Key with 400. Retry only on a natural key the endpoint rejects duplicates on.
Commits a warehouse transfer. It moves the goods from the source warehouse to the target warehouse, creates a journal entry for the movement, and sets documentStatus to 'COMMITTED'.
The stock must be available in the source warehouse. Otherwise the request fails with POSTING_REJECTED.
Committing doesn't create the intercompany bill. To bill an intercompany transfer, use POST inventory/warehouse-transfers/:id/bill.
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
Api-Version |
header | string · v1 | yes | The API version this request targets, named by its public identifier. Required on every request; omitting it, or naming a version this company does not have, is answered with 400. This document describes version v1. |
id |
path | string | yes | The unique identifier of the transfer you want to commit. |
Response
200 Success
Under data (commitWarehouseTransferOutput):
| Field | Type | Required | Description |
|---|---|---|---|
id |
string | yes | The unique identifier for the transfer. Example: "c41f9a08-6b23-4e57-90d8-2f7a5c31e0b6". |
documentStatus |
string | yes | The status of the transfer, read back from the document. 'COMMITTED' on success. Example: "COMMITTED". |
journalEntryId |
string | no | The journal entry the commit wrote in the entity's default transactions book. Absent when the posting produced none there, and on an intercompany transfer or return, which writes one entry per entity and names neither. See id on GET accounting/journal-entries/:id. Example: "6b31d0a7-4e28-4c95-8f13-2a7e0c5d9b64". |
warnings |
array<string> | yes | Non-fatal advisories from the posting. An empty array on a clean run. The commit succeeded whatever it lists. Example: []. |
{
"data": {
"id": "c41f9a08-6b23-4e57-90d8-2f7a5c31e0b6",
"documentStatus": "COMMITTED",
"journalEntryId": "6b31d0a7-4e28-4c95-8f13-2a7e0c5d9b64",
"warnings": []
},
"diagnostics": [
{
"code": "<code>",
"message": "<message>",
"severity": "error",
"path": [
"<path>"
],
"details": "<details>"
}
]
}
Errors
| Code | Status |
|---|---|
NOT_FOUND |
400 |
WRONG_STATUS |
400 |
POSTING_REJECTED |
400 |
IDEMPOTENCY_NOT_SUPPORTED |
400 |
Statuses
400— Invalid request or business failure. Codes: NOT_FOUND, WRONG_STATUS, POSTING_REJECTED. Sending an Idempotency-Key is answered withIDEMPOTENCY_NOT_SUPPORTED: this action does not run in its own transaction, so the replay guarantee cannot be offered and the header is refused rather than ignored.401— The request carries no valid access token.403— Not authorized404— Not found429— Too many requests from this client address. The response has no body and noRetry-Afterheader.500— Internal server error