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.

FieldTypeDescription
idintegerSelligate’s order id. Use it with the other order endpoints.
order_nostringThe order number shown in the Selligate dashboard.
external_idstringYour reference, as you sent it. For order-form orders it looks like FORM-….
sourcestringapi or form.
statusstringassigned, out_for_delivery, delivered, failed, cancelled or returned. See Order lifecycle.
customerobjectname, phone, email, address, city, state.
itemsarrayEach with product_code, product_name, quantity, unit_price, amount.
total_amountnumberOrder total in naira.
payment_methodstringpay_on_delivery or paid_before_delivery.
amount_to_collectnumberWhat the agent collects from the customer. 0 if paid before delivery.
agentobject | nullThe agent handling it: { "name": "…" }.
failure_reasonstring | nullWhy delivery failed, when status is failed.
notesstring | nullYour delivery notes.
created_atstringWhen you sent the order.
out_for_delivery_atstring | nullWhen the agent took it out.
delivered_atstring | nullWhen it was delivered.
failed_atstring | nullWhen delivery failed.