Skip to content

Say where the round's van is

POST
/rounds/{id}/position
curl --request POST \
--url https://example.com/rounds/019205d1-6e7a-7c3b-9f6e-3a2b1c0d9e8f/position \
--header 'Content-Type: application/json' \
--cookie bottle.session_token=<bottle.session_token> \
--data '{ "latitude": 1, "longitude": 1, "occurredAt": "2026-04-15T12:00:00Z" }'

A fix from the driver’s phone while the round is out, every minute or so and after a big move. Kept for the office’s map and the customer’s tracking page, and shown for twenty minutes. A fix older than the one already kept is ignored, so fixes held back by a patch of no signal cannot move the van backwards; so is one sent once the round is no longer out. A driver’s own round only.

id
required

UUID v7

string format: uuid
Example
019205d1-6e7a-7c3b-9f6e-3a2b1c0d9e8f

UUID v7

Media typeapplication/json
object
latitude
required
number
>= -90 <= 90
longitude
required
number
>= -180 <= 180
occurredAt

When it happened, by the device’s clock. Left out, now.

string format: date-time
Examplegenerated
{
"latitude": 1,
"longitude": 1,
"occurredAt": "2026-04-15T12:00:00Z"
}

Noted

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"
}

Not found

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
Allowed values: validation
message
required
string
issues
required
Array<object>
object
path
required
string
message
required
string
Example
{
"error": "validation",
"issues": [
{
"path": "email",
"message": "Invalid email"
}
]
}