API Reference

Selligate API

A small REST API: send orders, follow them, and look up your products and delivery coverage. Requests and responses are JSON.

Base URL

Livehttps://api.selligate.com/api/v1
Testhttps://staging-api.selligate.com/api/v1

Authentication

Send your secret key as a bearer token on every request. See Authentication.

curl https://api.selligate.com/api/v1/me \
  -H "Authorization: Bearer sk_live_…"

Responses

Every response has the same envelope: success, a message, and the result in data. Errors have success: false and a code; see Errors.

{
  "success": true,
  "message": "Success",
  "data": { ... }
}

Pagination

List endpoints take page and limit (up to 100) and return a meta object:

{
  "success": true,
  "data": [ ... ],
  "meta": { "total": 134, "page": 2, "limit": 20, "totalPages": 7 }
}

Resources

EndpointWhat it does
POST /ordersSend an order to be delivered
GET /ordersList your orders
GET /orders/{id}Get one order
POST /orders/{id}/cancelCancel an order that hasn’t left
GET /productsYour products, codes and stock by state
GET /locationsStates, and where you have stock
GET /meCheck a key

Versioning

This is version 1 (/v1). We may add new fields, events and statuses without notice, so make sure your code ignores anything it doesn’t recognise. Anything that would break existing integrations will come as a new version.