Integrating other systems
Connect an online store, accounting software and messaging to Stater through the API and webhooks, and the conventions they share.
Other systems connect to Stater through its REST API and webhooks:
- Online store: push orders with
POST /orders(channel: "online") and subscribe tostock.changedto keep online stock in step. - Accounting: Stater sends daily journals, supplier bills and customer invoices to Xero, QuickBooks, MYOB, Dynamics 365, Sage and others itself, as import files or directly; see Accounting. For other systems, take daily sales and payments from the Insight report exports or
GET /payments, and supplier invoices frominvoice.updatedwebhooks. - Email and SMS: once email is set up, Stater emails "ready to collect" notices itself (Email). For text messages or another provider, subscribe to
order.updatedand send the messages from your own provider.
Conventions#
- Configuration: one binary, configured by environment variables with the
STATER_prefix, secrets from…_FILE. See the settings reference. - Health:
/health/liveand/health/ready. Metrics: Prometheus text at/metrics. See Monitoring. - API: OpenAPI generated from code, bearer tokens with roles, problem+json errors written for people. See the API guide.
- Webhooks: HMAC-SHA256 signatures over
timestamp.body, at-least-once delivery with back-off. See Webhooks.