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
- 200
- 401
- 403
- 404
- 422
Rider assigned.
Unauthenticated — the request is missing a credential, or the Bearer token / API key is invalid, expired, or revoked.
Insufficient scope — the credential is authenticated but lacks a scope the endpoint requires.
Not found — no resource matches the id in the path (or it belongs to a different company).
Validation failed — the request body failed schema validation. errors[] lists every offending field.