Skip to main content

Assign rider

PUT 

/v1/orders/:id/rider

Assign or update the delivery rider for an order.

By default (provider: api) the rider is external: user_id is the id of the rider in your own system and OlaClick stores it as-is. With provider: olaclick the rider is one of your OlaClick users: user_id is required and must belong to an active user of your company with the rider role (list them with GET /v1/users?filter[role]=rider), the order must be a delivery and must not be in PENDING status. Any of those failing answers 422 validation_failed.

Required scope: logistics:write

Request

Responses

Rider assigned.