Move a courier transfer on
POST
/stock/transfers/{id}/advance
const url = 'https://example.com/stock/transfers/019205d1-6e7a-7c3b-9f6e-3a2b1c0d9e8f/advance';const options = { method: 'POST', headers: { cookie: 'bottle.session_token=<bottle.session_token>', 'Content-Type': 'application/json' }, body: '{"to":"awaiting_collection","carrierName":"example","carrierReference":"example"}'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request POST \ --url https://example.com/stock/transfers/019205d1-6e7a-7c3b-9f6e-3a2b1c0d9e8f/advance \ --header 'Content-Type: application/json' \ --cookie bottle.session_token=<bottle.session_token> \ --data '{ "to": "awaiting_collection", "carrierName": "example", "carrierReference": "example" }'Forwards only: awaiting collection holds the stock back at the yard it is leaving; in transit takes it out of that yard; received puts it into the other. Skipping straight to received records both movements. For a transfer carried by a courier or the supplier; one on the business’s own round moves on as the driver records its stops.
Authorizations
Section titled “Authorizations”Parameters
Section titled “Parameters”Path Parameters
Section titled “Path Parameters”id
required
UUID v7
string format: uuid
Example
019205d1-6e7a-7c3b-9f6e-3a2b1c0d9e8fUUID v7
Request Bodyrequired
Section titled “Request Bodyrequired”Media typeapplication/json
object
to
required
string
carrierName
string | null
carrierReference
string | null
Responses
Section titled “Responses”The transfer, with its lines and every stage it has been through
Media typeapplication/json
object
id
required
UUID v7
string format: uuid
fromLocationId
required
UUID v7
string format: uuid
fromName
required
string
toLocationId
required
UUID v7
string format: uuid
toName
required
string
method
required
string
status
required
string
roundId
required
UUID v7
string | null format: uuid
plannedFor
string | null format: date
proofs
Array<object>
object
leg
required
string
kind
required
string
signedBy
required
string | null
url
required
string
createdAt
required
string format: date-time
round
object
id
required
UUID v7
string format: uuid
roundDate
required
string format: date
vehicleName
required
string | null
driverName
required
string | null
carrierName
required
string | null
carrierReference
required
string | null
note
required
string | null
lines
required
Array<object>
object
productId
required
UUID v7
string format: uuid
productName
required
string
condition
required
string
quantity
required
integer
history
required
Array<object>
object
status
required
string
at
required
string format: date-time
byName
required
string | null
createdByName
required
string | null
createdAt
required
string format: date-time
Example
{ "id": "019205d1-6e7a-7c3b-9f6e-3a2b1c0d9e8f", "fromLocationId": "019205d1-6e7a-7c3b-9f6e-3a2b1c0d9e8f", "toLocationId": "019205d1-6e7a-7c3b-9f6e-3a2b1c0d9e8f", "method": "recorded", "status": "planned", "roundId": "019205d1-6e7a-7c3b-9f6e-3a2b1c0d9e8f", "proofs": [ { "leg": "collection", "kind": "signature" } ], "round": { "id": "019205d1-6e7a-7c3b-9f6e-3a2b1c0d9e8f" }, "lines": [ { "productId": "019205d1-6e7a-7c3b-9f6e-3a2b1c0d9e8f", "condition": "full" } ], "history": [ { "status": "planned" } ]}Not signed in
Media typeapplication/json
object
error
required
string
message
required
string
Example
{ "error": "not_found", "message": "Customer not found"}Not a member, or without the permission this needs
Media typeapplication/json
object
error
required
string
message
required
string
Example
{ "error": "not_found", "message": "Customer not found"}A product, yard or transfer that is not this business’s
Media typeapplication/json
object
error
required
string
message
required
string
Example
{ "error": "not_found", "message": "Customer not found"}The transfer is not at a stage that allows this
Media typeapplication/json
object
error
required
string
message
required
string
Example
{ "error": "not_found", "message": "Customer not found"}Validation failed
Media typeapplication/json
object
error
required
string
message
required
string
issues
required
Array<object>
object
path
required
string
message
required
string
Example
{ "error": "validation", "issues": [ { "path": "email", "message": "Invalid email" } ]}