Private OAuth integrations are open

Build private apps with Zahir ERP API

Register an OAuth app, pass Zahir review, and let authorized company owners connect your product with scoped consent.

Owner-Controlled Consent

Only authorized Zahir users can approve access. Tokens are bound to app, company, scope, and connection.

Interactive API Docs

Explore 75+ endpoints with interactive documentation powered by Scalar. Try requests directly from the browser effortlessly.

Two Integration Models

Private OAuth for third-party products. API Key remains for internal, company-owned integrations.

Full ERP Access

Master data, sales, purchases, inventory, cash & bank, reports, dashboards — all accessible via scalable RESTful JSON APIs.

Private App Review

Submit app metadata, redirect URIs, and requested scopes for Zahir approval. Public marketplace listing is intentionally pending.

Sandbox Environment

Test integrations safely with sandbox credentials and non-production data before connecting real companies.

Quick Start

Use OAuth for third-party apps. API Keys are only for internal company-owned integrations.

# 1. Register your Private OAuth App and save client_id/client_secret
# 2. Send the customer to /oauth/authorize for Zahir login and consent
# 3. Exchange the authorization code on your backend:

const tokenRes = await fetch('https://app.zahironline.com/oauth/token', {
  method: 'POST',
  headers: {
    'Content-Type': 'application/json',
  },
  body: JSON.stringify({
    grant_type: 'authorization_code',
    client_id: 'zahir_your_client_id',
    client_secret: 'zhsec_your_client_secret',
    code: 'authorization_code_from_redirect',
    redirect_uri: 'https://yourapp.com/callback'
  })
});

const { access_token } = await tokenRes.json();
const response = await fetch('https://app.zahironline.com/api/v2/contacts', {
  headers: { Authorization: `Bearer ${access_token}` }
});

const { data } = await response.json();
console.log(data); // [{ id: 1, name: "PT Maju Jaya", ... }]

Use Cases per Industri

Panduan integrasi nyata — dari skenario bisnis ke kode yang bisa langsung dipakai.

Real-time

Build responsive apps with Webhooks

Get notified instantly when data changes in Zahir. Eliminate polling completely and rely on our reliable event delivery system.

  • 20+ Event Types: Subscribe to contact.created, sales_invoice.updated, and more.
  • Secure Delivery: Payloads signed with HMAC-SHA256. Verify via X-Zahir-Signature.
  • Automatic Retry: Failed deliveries are retried automatically with exponential backoff.
Dashboard API Monitoring
App Ecosystem
Private Apps

Scale with Private OAuth Apps

Build unlisted third-party apps that customers connect through Zahir login, company selection, and scoped consent.

  • OAuth2 Platform Apps: One app serves multiple companies securely with user-authorized access flows.
  • 8 App Categories: Target E-Commerce, CRM, Payments, Logistics, HR, and Productivity channels.
  • Verified Badge: Approved apps receive a verified developer status for higher trust.

Transparent API Pricing

Scale without limits. Start for free in our comprehensive sandbox and only pay as you grow.

Starter

Free / forever

Perfect for discovering all properties of the API and simple internal tools.

  • 1,000 API calls / day
  • 30 requests / min
  • Read-only access (Tier 1)
  • Sandbox environment
Get Started Free
Popular

Growth

Rp 499K / mo

For businesses ready to automate and link multiple core systems.

  • 50,000 API calls / day
  • 300 requests / min
  • Read + Write access (Tier 1+2)
  • 5 webhooks enabled
  • Email support
Start Building

Enterprise

Custom

Dedicated infrastructure, unlimited capabilities, and direct support.

  • Unlimited API calls
  • Custom rate limits
  • Dedicated SLA & Support
  • Staging + Production DBs
Contact Sales

Zahir API FAQ

Jawaban ringkas untuk integrasi Zahir ERP, OAuth, API Key, dan webhook.

Bagaimana cara integrasi aplikasi pihak ketiga dengan Zahir?

Daftarkan Private OAuth App, dapatkan client_id dan client_secret, lalu arahkan user ke Zahir OAuth consent. Setelah user memilih company dan approve scope, backend aplikasi menukar authorization code menjadi access token dan refresh token.

Kapan memakai API Key dan kapan memakai OAuth?

Private OAuth wajib untuk vendor atau produk pihak ketiga. API Key hanya untuk integrasi internal yang dimiliki dan dikendalikan oleh perusahaan pemilik data Zahir.

Apakah Zahir API mendukung webhook?

Ya. Webhook tersedia sesuai entitlement plan perusahaan, menggunakan HMAC signature, retry otomatis, delivery log, dan auto-disable setelah kegagalan berulang.

Apakah marketplace app publik sudah tersedia?

Belum. Rilis ini hanya mendukung Private OAuth Apps yang unlisted. Marketplace listing, discovery, publishing, dan billing publik masih pending.