Overview & Architecture
Expressoft exposes GraphQL APIs for three kinds of integrations:
Integration | What you use it for | What it supports |
|---|---|---|
Delivery API | Locations, products, prices, customers, addresses, companies and orders for delivery integrations | Queries, mutations and webhooks |
Customers, points balance, wallet, vouchers, promotions, the points of each receipt and gift cards | Queries and mutations | |
Accounting APIAccounting API | Accounting documents, products, companies and stocks for an ERP, and the creation of purchase invoices | Queries and one mutation |
The Delivery API and the CRM & Loyalty API share one schema. The Accounting API has its own schema.
What all the APIs have in common
- GraphQL over HTTPS. Every request is a POST.
- One authentication flow. You get a Bearer token with a user name and a password, then send it with every request. Use the endpoint that the token request returns in extension.apiURL.
- Cursor pagination. Most lists accept first, after, last and before, and return totalCount, pageInfo and items.
- Expressoft is the source of truth. Don't recalculate or cache values that the API already gives you (loyalty balances, stock, prices). Query them when you need them.
What differs
| Delivery API | CRM & Loyalty API | Accounting API |
|---|---|---|---|
Push notifications | Yes, through webhooks | No | No |
Main data | Orders, locations, products, delivery areas | Customers, points, vouchers, gift cards | Documents, products, companies, stocks |
Permission of your user | Delivery | Delivery | Accounting (ConnectAccounting) |
Mutation errors | errorCode from 1 | errorCode from 1 | errorCode from 0 |
Where to start
- Read Getting Access to get your credentials.
- Read Authentication Overview to generate a token.
- Open the section for the integration you need and follow it from top to bottom: Delivery API or CRM & Loyalty API or Accounting API.