Email a delivery partner the day's list
const url = 'https://example.com/delivery-partners/2489E9AD-2EE2-8E00-8EC9-32D5F69181C0/list/send';const options = { method: 'POST', headers: { cookie: '__Host-bottle.session_token=<__Host-bottle.session_token>', 'Content-Type': 'application/json' }, body: '{"date":"2026-04-15","orderIds":["019205d1-6e7a-7c3b-9f6e-3a2b1c0d9e8f"],"takenOffOrderIds":["019205d1-6e7a-7c3b-9f6e-3a2b1c0d9e8f"],"lastSentAt":"2026-04-15T12:00:00Z","email":"hello@example.com"}'};
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/delivery-partners/2489E9AD-2EE2-8E00-8EC9-32D5F69181C0/list/send \ --header 'Content-Type: application/json' \ --cookie __Host-bottle.session_token=<__Host-bottle.session_token> \ --data '{ "date": "2026-04-15", "orderIds": [ "019205d1-6e7a-7c3b-9f6e-3a2b1c0d9e8f" ], "takenOffOrderIds": [ "019205d1-6e7a-7c3b-9f6e-3a2b1c0d9e8f" ], "lastSentAt": "2026-04-15T12:00:00Z", "email": "hello@example.com" }'Sends the listed orders as a CSV file, with no prices or payment details, says which orders have been taken off since the last list, and records the send on each order. With no orders left it says there is nothing to deliver. Refused if the day has changed since the list was read. Nothing is recorded if the email fails. Signed-in people only.
Authorizations
Section titled “Authorizations”Parameters
Section titled “Parameters”Path Parameters
Section titled “Path Parameters”Request Bodyrequired
Section titled “Request Bodyrequired”object
The delivery day, in the UK.
The orders on the list. Refused if the day has changed since it was read.
The orders shown as taken off. Refused if that has changed since it was read.
When the list was last sent, as read. Refused if someone has sent it since.
Where to send it, for a partner with no email address. Saved on the partner.
Responses
Section titled “Responses”Sent
object
False if the email went but the send could not be recorded. Do not send it again.
Example generated
{ "sentAt": "2026-04-15T12:00:00Z", "to": "example", "orders": 1, "recorded": true}Not signed in
object
Example
{ "error": "not_found", "message": "Customer not found"}Not a member, without the permission this needs, or on a plan without delivery partners
object
Example
{ "error": "not_found", "message": "Customer not found"}Not found
object
Example
{ "error": "not_found", "message": "Customer not found"}Refused, with the reason
object
Example
{ "error": "not_found", "message": "Customer not found"}Validation failed
object
object
Example
{ "error": "validation", "issues": [ { "path": "email", "message": "Invalid email" } ]}