Skip to content
Developers

Build on SA4S with the Developer API

Turn store orders into ZATCA-ready invoices, keep stock in sync and pull reports into your own tools — with a JSON REST API, scoped keys and signed webhooks.

The developer guide

Everything an integrator needs in one document: authentication, scopes, conventions, error codes, sandbox rules, recipes with real requests and responses in curl, JavaScript, Python, PHP and C#, webhooks with signature verification, and complete store-sync examples.

Edition 1.1.0 · updated 2026-10-06

The same guide, the interactive API reference and your keys are inside the ERP under Settings → API & Integrations.

What the API gives you

  • REST and JSON

    Products, customers, suppliers, sales and purchase invoices, payments, stock and reports — one consistent API for your company data.

  • Scoped API keys

    Every key gets only the permissions you tick, with optional expiry, IP allow-list, per-key rate limit and rotation without downtime.

  • Sandbox keys

    Build against your real data safely: sandbox keys read everything and can only create drafts.

  • Safe retries

    Send a clientUuid with invoices and payments and a retried request never creates a duplicate.

  • Signed webhooks

    Invoice, payment, stock and e-invoicing events pushed to your endpoint, signed with HMAC-SHA256 and retried automatically.

  • E-invoicing built in

    Invoices you create are reported or cleared with ZATCA by SA4S; read the status and QR code through the API.

Start in three steps

  1. 1

    Choose a plan with API access

    The Developer API is included in the Business and Enterprise plans.

  2. 2

    Create a sandbox key

    In the ERP, create a key with the scopes your integration needs.

  3. 3

    Follow a recipe

    Make your first call in two minutes, then move to a live key.

Ready to run your business more efficiently?

Start a free trial and see how SA4S brings your sales, inventory and invoicing together in one place.

No credit card required. Cancel any time.