POST
Complete a transfer step
Company space Cannot be undone For: Stock keeper, Manager · Permission: transfers.complete, transfers.forward Conditions
  • The company does not need to own the transfer: once it is no longer a draft, a company that holds a location of one of its step groups can act.
  • When completion_lines is sent, transfers.forward is also needed. The step must be accessible to the company.
  • The transfer must be running and the step must be its current step.
  • receipts and dispatches are not accepted here; use the approve call.
  • Each completion line group must target a different, later step that is still upcoming; its lines need an existing tracked stock item of the organization, a unit of that item, a base quantity of at least 1 and at least one dispatch whose quantities cover the line.
What else happens
  • Pending stock withdrawals of the lines leaving the step are executed.
  • With completion_lines, a completion segment is created (or reused) from this step to the target step with the new lines to forward goods.
  • The step becomes done, with completer company, member and time. The next step is not approved automatically.
Part of Plan and run stock transfers.

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Path Parameters

transfer
string
required

Identifier of the transfer.

step
string
required

Identifier of the transfer step, which must belong to the transfer.

Body

application/json
receipts
string

Not accepted: receptions are planned when the step is approved.

dispatches
string

Not accepted: dispatches are planned when the step is approved.

completion_lines
object[] | null

Optional groups of lines forwarding goods from this step to a later step. Needs the forward permission.

Response

TransferStepResource

id
string
required

Identifier of the step.

transfer_id
string
required

Identifier of the transfer.

position
integer
required

Order of the step in the route, from 1.

location_group_id
string
required

Location group visited at this step.

status
string
required

upcoming (not reached), current (being operated), done or skipped.

operations_executed_at
string<date-time> | null
required

When the planned stock movements of the step were executed, ISO 8601; null before.

approved_by_company_id
string | null
required

Company that made the step current.

approved_by_user_id
string | null
required

Member who made the step current.

approved_at
string<date-time> | null
required

When the step became current, ISO 8601.

completed_by_company_id
string | null
required

Company that completed the step.

completed_by_user_id
string | null
required

Member who completed the step.

completed_at
string<date-time> | null
required

When the step was completed, ISO 8601.

created_at
string<date-time>
required

Date and time the record was created (ISO 8601, UTC).

updated_at
string<date-time>
required

Date and time the record was last changed (ISO 8601, UTC).

location_group
object

The group of the step (id and name), when loaded.

receipts
TransferStepReceiptResource · object[]

Planned or executed receptions of goods at the locations of the step.

dispatches
TransferStepDispatchResource · object[]

Planned or executed withdrawals of goods from the locations of the step.