Skip to main content

Create Send Plan Follow-up Warehouse Transfer

POST 

/api/send-plans/:sendPlan/drafts/:draft/transfer

Follow a manual draft group with a draft warehouse transfer from its source to the network's warehouse (default) or another of your warehouses that feeds it. The planner's stock hold moves onto the transfer lines and is released when the transfer is opened.

Required scope: send-plans:write

Grant this scope to your token under Settings → Developer → Personal Access Tokens.

Authentication: Bearer Personal Access Token with the send-plans:write scope. The token's user also needs permission to create send planner drafts and to create warehouse transfers (403 otherwise).

Body fields (optional):

  • to_warehouse_id (integer): destination of the transfer, one of List Send Plan Draft Transfer Targets. Omit for the network's own warehouse.

Returns 201 with the updated draft group, whose warehouse_transfer holds the transfer's id, reference and route. Returns 404 when the group is not part of the plan, and 422 when the group is not a manual one, already has a transfer, has nothing left to transfer, the destination is not allowed, or the source is short.

Request​

Responses​

Created

Response Headers
    Content-Type