API Reference
Orders
Send pay-on-delivery orders to Selligate, then follow them until they’re delivered. Each order is assigned to an agent the moment it is created.
The order object
Returned by every order endpoint, and sent as data.order in webhooks.
| Field | Type | Description |
|---|---|---|
id | integer | Selligate’s order id. Use it with the other order endpoints. |
order_no | string | The order number shown in the Selligate dashboard. |
external_id | string | Your reference, as you sent it. For order-form orders it looks like FORM-…. |
source | string | api or form. |
status | string | assigned, out_for_delivery, delivered, failed, cancelled or returned. See Order lifecycle. |
customer | object | name, phone, email, address, city, state. |
items | array | Each with product_code, product_name, quantity, unit_price, amount. |
total_amount | number | Order total in naira. |
payment_method | string | pay_on_delivery or paid_before_delivery. |
amount_to_collect | number | What the agent collects from the customer. 0 if paid before delivery. |
agent | object | null | The agent handling it: { "name": "…" }. |
failure_reason | string | null | Why delivery failed, when status is failed. |
notes | string | null | Your delivery notes. |
created_at | string | When you sent the order. |
out_for_delivery_at | string | null | When the agent took it out. |
delivered_at | string | null | When it was delivered. |
failed_at | string | null | When delivery failed. |