Generated from the live OpenAPI document (
/api/v1/openapi.json, API version 1.0.0). The OpenAPI document and the live reference are the source of truth; if this page and they ever disagree, they win.
Base URL: https://connect.rylixfleet.com. Order endpoints need the orders:read or orders:write scope. A fleet company account (riders for other businesses) owns no orders, so its order endpoints answer 403 feature_off.
Orders use the public statuses.
GET /api/v1/orders
Scope: orders:read
Newest first. Cursor pagination: pass nextCursor as cursor.
Parameters
| Name | In | Required | About |
|---|---|---|---|
status |
query | no | Comma-separated statuses: pending, assigned, picked_up, on_the_way, arrived, delivered, failed, returning, returned, cancelled. |
created_from |
query | no | ISO 8601 date-time, or YYYY-MM-DD (a calendar day in the business's time zone). |
created_to |
query | no | ISO 8601 date-time (inclusive), or YYYY-MM-DD (the whole day). |
reference |
query | no | Your own order reference, exact match. |
limit |
query | no | min 1, max 100, default 25 |
cursor |
query | no |
Example request
curl -X GET "https://connect.rylixfleet.com/api/v1/orders" \
-H "Authorization: Bearer $RYLIX_API_KEY"
Example answer (200)
{
"object": "list",
"data": [
{
"id": "cm4w5r2xk0001s8z0a1b2c3d4",
"object": "order",
"reference": "WEB-10042",
"orderName": "WEB-10042",
"trackingNumber": "RX1234567",
"trackingUrl": "https://track.rylixfleet.com/t/Zx8k2mQ4pL9vB7nR",
"status": "pending",
"kind": "delivery",
"source": "api",
"customer": {
"name": "Rana Haddad",
"phone": "+96170123456"
},
"address": {
"text": "Hamra St, Bldg 12, 3rd floor",
"lat": 33.8959,
"lng": 35.4787
},
"pickupLocationId": "cm4w5q9yz0000s8z0l0c4t1on",
"note": "Call on arrival",
"cashOnDelivery": {
"amount": "25.00",
"currency": "USD"
},
"items": [
{
"title": "Running shoes",
"quantity": 1,
"unitPrice": "25.00"
}
],
"pieces": 1,
"failureCategory": null,
"etaMinutes": null,
"createdAt": "2026-11-29T09:30:00.000Z",
"updatedAt": "2026-11-29T09:30:00.000Z",
"terminalAt": null
}
],
"hasMore": false,
"nextCursor": null
}
Answers
| HTTP | Meaning |
|---|---|
| 200 | A page of orders. |
| 400 | A filter is not valid. |
| 401 | Missing, malformed, unknown or revoked API key. |
| 403 | insufficient_scope, feature_off, or (writes) suspended or read_only. |
| 429 | Rate limit reached for this key. |
POST /api/v1/orders
Scope: orders:write
Creates a delivery exactly as the dashboard's order form does: the customer is saved, dispatch starts at once. Coordinates are required. Without pickupLocationId the business's default pickup location is used.
Parameters
| Name | In | Required | About |
|---|---|---|---|
Idempotency-Key |
header | no | Any unique string (a UUID). Replaying the same request with the same key returns the first answer without doing anything again. Kept 24 hours. (max length 255) |
Request body
| Field | Type | Required | About |
|---|---|---|---|
reference |
string | no | Your own order number. Must be unique in the business. (max length 64) |
customer |
object | yes | |
customer.name |
string | yes | |
customer.phone |
string | yes | International (+961…) or local to the business's country. |
address |
object | yes | |
address.text |
string | yes | |
address.lat |
number | yes | min -90, max 90 |
address.lng |
number | yes | min -180, max 180 |
pickupLocationId |
string | no | |
clientId |
string | no | Delivery agencies: the client the order is for (its client card id). Without it (and without clientCode) the pickup location's client is used, else the agency's walk-in client. Unknown or archived: 400 with fields.clientId = client_not_found. |
clientCode |
string | no | Delivery agencies: the client's short code, instead of clientId (not both). |
cashOnDelivery |
object | no | |
cashOnDelivery.amount |
string | yes | Decimal, e.g. "25.00". |
cashOnDelivery.currency |
string (one of: USD, LBP) |
yes | |
note |
string | no | |
items |
array of object | no | max items 100 |
items[].title |
string | yes | |
items[].quantity |
integer | yes | min 1, max 999 |
items[].unitPrice |
string | no | |
pieces |
integer | no | min 1, max 50 |
Example request
curl -X POST "https://connect.rylixfleet.com/api/v1/orders" \
-H "Authorization: Bearer $RYLIX_API_KEY" \
-H "Content-Type: application/json" \
-H "Idempotency-Key: $(uuidgen)" \
-d '{"reference": "WEB-10042", "customer": {"name": "Rana Haddad", "phone": "+96170123456"}, "address": {"text": "Hamra St, Bldg 12, 3rd floor", "lat": 33.8959, "lng": 35.4787}, "cashOnDelivery": {"amount": "25.00", "currency": "USD"}, "note": "Call on arrival", "items": [{"title": "Running shoes", "quantity": 1, "unitPrice": "25.00"}]}'
Example answer (201)
{
"id": "cm4w5r2xk0001s8z0a1b2c3d4",
"object": "order",
"reference": "WEB-10042",
"orderName": "WEB-10042",
"trackingNumber": "RX1234567",
"trackingUrl": "https://track.rylixfleet.com/t/Zx8k2mQ4pL9vB7nR",
"status": "pending",
"kind": "delivery",
"source": "api",
"customer": {
"name": "Rana Haddad",
"phone": "+96170123456"
},
"address": {
"text": "Hamra St, Bldg 12, 3rd floor",
"lat": 33.8959,
"lng": 35.4787
},
"pickupLocationId": "cm4w5q9yz0000s8z0l0c4t1on",
"note": "Call on arrival",
"cashOnDelivery": {
"amount": "25.00",
"currency": "USD"
},
"items": [
{
"title": "Running shoes",
"quantity": 1,
"unitPrice": "25.00"
}
],
"pieces": 1,
"failureCategory": null,
"etaMinutes": null,
"createdAt": "2026-11-29T09:30:00.000Z",
"updatedAt": "2026-11-29T09:30:00.000Z",
"terminalAt": null
}
Answers
| HTTP | Meaning |
|---|---|
| 200 | An earlier request with the same Idempotency-Key created this order. |
| 201 | The order was created. |
| 400 | A field is missing or not valid (see fields). |
| 401 | Missing, malformed, unknown or revoked API key. |
| 403 | insufficient_scope, feature_off, or (writes) suspended or read_only. |
| 409 | An order with this reference exists. |
| 422 | The Idempotency-Key was used with another request (idempotency_key_reused), the pickup location is inactive (location_inactive), or — delivery agencies — the client is paused (client_paused) or its rate card does not serve the order (not_served, with fields.reason). |
| 429 | Rate limit reached for this key. |
GET /api/v1/orders/{id}
Scope: orders:read
Parameters
| Name | In | Required | About |
|---|---|---|---|
id |
path | yes | The order id. |
Example request
curl -X GET "https://connect.rylixfleet.com/api/v1/orders/cm4w5r2xk0001s8z0a1b2c3d4" \
-H "Authorization: Bearer $RYLIX_API_KEY"
Example answer (200)
{
"id": "cm4w5r2xk0001s8z0a1b2c3d4",
"object": "order",
"reference": "WEB-10042",
"orderName": "WEB-10042",
"trackingNumber": "RX1234567",
"trackingUrl": "https://track.rylixfleet.com/t/Zx8k2mQ4pL9vB7nR",
"status": "pending",
"kind": "delivery",
"source": "api",
"customer": {
"name": "Rana Haddad",
"phone": "+96170123456"
},
"address": {
"text": "Hamra St, Bldg 12, 3rd floor",
"lat": 33.8959,
"lng": 35.4787
},
"pickupLocationId": "cm4w5q9yz0000s8z0l0c4t1on",
"note": "Call on arrival",
"cashOnDelivery": {
"amount": "25.00",
"currency": "USD"
},
"items": [
{
"title": "Running shoes",
"quantity": 1,
"unitPrice": "25.00"
}
],
"pieces": 1,
"failureCategory": null,
"etaMinutes": null,
"createdAt": "2026-11-29T09:30:00.000Z",
"updatedAt": "2026-11-29T09:30:00.000Z",
"terminalAt": null
}
Answers
| HTTP | Meaning |
|---|---|
| 200 | The order. |
| 401 | Missing, malformed, unknown or revoked API key. |
| 403 | insufficient_scope, feature_off, or (writes) suspended or read_only. |
| 404 | No such order in this business. |
| 429 | Rate limit reached for this key. |
POST /api/v1/orders/{id}/cancel
Scope: orders:write
Cancels an order that is not delivered, failed, returned or cancelled yet.
Parameters
| Name | In | Required | About |
|---|---|---|---|
id |
path | yes | The order id. |
Idempotency-Key |
header | no | Any unique string (a UUID). Replaying the same request with the same key returns the first answer without doing anything again. Kept 24 hours. (max length 255) |
Example request
curl -X POST "https://connect.rylixfleet.com/api/v1/orders/cm4w5r2xk0001s8z0a1b2c3d4/cancel" \
-H "Authorization: Bearer $RYLIX_API_KEY"
Example answer (200)
{
"id": "cm4w5r2xk0001s8z0a1b2c3d4",
"object": "order",
"reference": "WEB-10042",
"orderName": "WEB-10042",
"trackingNumber": "RX1234567",
"trackingUrl": "https://track.rylixfleet.com/t/Zx8k2mQ4pL9vB7nR",
"status": "cancelled",
"kind": "delivery",
"source": "api",
"customer": {
"name": "Rana Haddad",
"phone": "+96170123456"
},
"address": {
"text": "Hamra St, Bldg 12, 3rd floor",
"lat": 33.8959,
"lng": 35.4787
},
"pickupLocationId": "cm4w5q9yz0000s8z0l0c4t1on",
"note": "Call on arrival",
"cashOnDelivery": {
"amount": "25.00",
"currency": "USD"
},
"items": [
{
"title": "Running shoes",
"quantity": 1,
"unitPrice": "25.00"
}
],
"pieces": 1,
"failureCategory": null,
"etaMinutes": null,
"createdAt": "2026-11-29T09:30:00.000Z",
"updatedAt": "2026-11-29T09:30:00.000Z",
"terminalAt": null
}
Answers
| HTTP | Meaning |
|---|---|
| 200 | The cancelled order. |
| 401 | Missing, malformed, unknown or revoked API key. |
| 403 | insufficient_scope, feature_off, or (writes) suspended or read_only. |
| 404 | No such order in this business. |
| 409 | The order is already finished. |
| 429 | Rate limit reached for this key. |
GET /api/v1/orders/{id}/tracking
Scope: orders:read
Parameters
| Name | In | Required | About |
|---|---|---|---|
id |
path | yes | The order id. |
Example request
curl -X GET "https://connect.rylixfleet.com/api/v1/orders/cm4w5r2xk0001s8z0a1b2c3d4/tracking" \
-H "Authorization: Bearer $RYLIX_API_KEY"
Example answer (200)
{
"id": "cm4w5r2xk0001s8z0a1b2c3d4",
"object": "tracking",
"status": "on_the_way",
"trackingNumber": "RX1234567",
"trackingUrl": "https://track.rylixfleet.com/t/Zx8k2mQ4pL9vB7nR",
"etaMinutes": 12,
"failureCategory": null,
"updatedAt": "2026-11-29T10:05:00.000Z",
"events": [
{
"type": "order.created",
"at": "2026-11-29T09:30:00.000Z"
},
{
"type": "order.assigned",
"at": "2026-11-29T09:31:10.000Z"
},
{
"type": "order.picked_up",
"at": "2026-11-29T09:52:40.000Z"
},
{
"type": "order.on_the_way",
"at": "2026-11-29T09:53:00.000Z"
}
]
}
Answers
| HTTP | Meaning |
|---|---|
| 200 | The status, the customer's tracking link and the status timeline. |
| 401 | Missing, malformed, unknown or revoked API key. |
| 403 | insufficient_scope, feature_off, or (writes) suspended or read_only. |
| 404 | No such order in this business. |
| 429 | Rate limit reached for this key. |
| Field | Type | Required | About |
|---|---|---|---|
id |
string | yes | |
object |
string (one of: order) |
yes | |
reference |
string or null | yes | |
orderName |
string | yes | |
trackingNumber |
string | yes | |
trackingUrl |
string | yes | |
status |
string (one of: pending, assigned, picked_up, on_the_way, arrived, delivered, failed, returning, returned, cancelled) |
yes | |
kind |
string (one of: delivery, return) |
yes | |
source |
string (one of: shopify, manual, csv, return, api) |
yes | |
customer |
object | yes | |
customer.name |
string | yes | |
customer.phone |
string or null | yes | |
address |
object | yes | |
address.text |
string or null | yes | |
address.lat |
number or null | yes | |
address.lng |
number or null | yes | |
pickupLocationId |
string or null | yes | |
note |
string or null | yes | |
cashOnDelivery |
object or null | yes | |
cashOnDelivery.amount |
string | yes | |
cashOnDelivery.currency |
string (one of: USD, LBP) |
yes | |
items |
array of object | yes | |
items[].title |
string | yes | |
items[].quantity |
integer | yes | |
items[].unitPrice |
string or null | yes | |
pieces |
integer | yes | min 1 |
failureCategory |
string or null | yes | |
etaMinutes |
integer or null | yes | |
createdAt |
string | yes | |
updatedAt |
string | yes | |
terminalAt |
string or null | yes |
| Field | Type | Required | About |
|---|---|---|---|
id |
string | yes | |
object |
string (one of: tracking) |
yes | |
status |
string (one of: pending, assigned, picked_up, on_the_way, arrived, delivered, failed, returning, returned, cancelled) |
yes | |
trackingNumber |
string | yes | |
trackingUrl |
string | yes | |
etaMinutes |
integer or null | yes | |
failureCategory |
string or null | yes | |
updatedAt |
string | yes | |
events |
array of object | yes | |
events[].type |
string (one of: order.created, order.assigned, order.picked_up, order.on_the_way, order.arrived, order.delivered, order.failed, order.returned, order.cancelled, order.rescheduled, order.address_changed) |
yes | |
events[].at |
string | yes |