Put a transfer on one of your rounds
const url = 'https://example.com/stock/transfers/019205d1-6e7a-7c3b-9f6e-3a2b1c0d9e8f/round';const options = { method: 'POST', headers: { cookie: 'bottle.session_token=<bottle.session_token>', 'Content-Type': 'application/json' }, body: '{"roundId":"019205d1-6e7a-7c3b-9f6e-3a2b1c0d9e8f"}'};
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/round \ --header 'Content-Type: application/json' \ --cookie bottle.session_token=<bottle.session_token> \ --data '{ "roundId": "019205d1-6e7a-7c3b-9f6e-3a2b1c0d9e8f" }'The van calls at both yards as ordinary stops: it collects at the one the stock is leaving and drops at the other. A collection from the yard the van loads at anyway goes on with the morning’s load instead of being a stop. The stock is held back at the first yard from now on. The round must still be planned and have a van. A transfer already aboard a van, after a drop that could not be made, can only go on a round of that same van, and needs only the drop. Moving it to another round takes it off the first.
Authorizations
Section titled “Authorizations”Parameters
Section titled “Parameters”Path Parameters
Section titled “Path Parameters”UUID v7
Example
019205d1-6e7a-7c3b-9f6e-3a2b1c0d9e8fUUID v7
Request Bodyrequired
Section titled “Request Bodyrequired”object
UUID v7
Example
019205d1-6e7a-7c3b-9f6e-3a2b1c0d9e8fResponses
Section titled “Responses”The transfer, with its lines and every stage it has been through
object
UUID v7
UUID v7
UUID v7
UUID v7
object
object
UUID v7
object
UUID v7
object
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
object
Example
{ "error": "not_found", "message": "Customer not found"}Not a member, or without the permission this needs
object
Example
{ "error": "not_found", "message": "Customer not found"}A product, yard or transfer that is not this business’s
object
Example
{ "error": "not_found", "message": "Customer not found"}The transfer is not at a stage that allows this
object
Example
{ "error": "not_found", "message": "Customer not found"}Validation failed
object
object
Example
{ "error": "validation", "issues": [ { "path": "email", "message": "Invalid email" } ]}