Overview
What the ERP API does, how a call is built and where to go next.
On this page
The ERP API runs the documents of a trading or light-production company from one order. You enter a sales order, confirm it, reserve stock for it, deliver it, invoice it and record the payment; you buy goods with purchase orders, record what arrives, match each supplier bill to its order and receipts and take it through approval to payment; and you make items from components with work orders. It is a JSON API over HTTPS: you send requests, and it sends events to an address you register.
Client credentials, your base address and a test company are issued with your account. Accounts are opened by our team: ask for one through the contact form and we set it up with you.
Request an accountHow a call works
Sign in
Ask for a token with your client credentials. See Authentication.
Read
Lists take
limitandcursor; every record carries arevision. See Pagination.Change
Every change carries an
operationIdand, on an existing record, anexpectedRevision. The answer is 202 with the operation result. See Idempotency and concurrency.Listen
Each change sends one event. See Event envelope and Event catalogue.
States of a sales order
A sales order has one status. Statuses says what moves an order from one to the next and what refuses the move.
| Status | Meaning |
|---|---|
draft | The order is entered and can still be refused for credit. Nothing is reserved. |
confirmed | The credit check passed. Stock is reserved line by line; a short line stays unreserved until goods arrive. |
reserved | Every line is covered by stock set aside for the order. |
delivered | The reserved units left the warehouse on a delivery. |
invoiced | The invoice is issued and a balance is open. |
paid | Payments cover the whole invoice. |
Where next
- Take an order to an invoice in the Quickstart.
- Learn how the documents link in The document chain.
- Buy goods and check a bill in Buy and receive goods and Match a supplier bill.
- Look up every operation in Sales orders.