For developers
Built for
developers.
Clean APIs, comprehensive SDKs, and everything you need to integrate in hours — not weeks.
Developer toolkit
Everything you need
to ship faster.
Six tools that turn a multi-week, multi-mandate integration into a same-day deployment.
01
REST
REST API
Comprehensive RESTful API with versioning, pagination, and filtering.
02
EVENTS
Webhooks
Real-time event notifications for invoice status changes and compliance updates.
03
SDK
SDKs
Official SDKs for JavaScript, Python, Java, PHP, and .NET.
04
LIMITS
Rate Limits
Generous rate limits with burst support. Enterprise plans get unlimited throughput.
05
ERRORS
Error Handling
Structured error responses with error codes, messages, and resolution steps.
06
POSTMAN
Postman Collection
Pre-built Postman collection with all endpoints and example payloads.
Quick start
Your first invoice
in 10 lines.
Install the SDK, drop in your API key, and submit a fully cleared invoice to any GCC mandate in seconds.
sdk/example.ts
npm · @hash/einvoice-sdk200 OK
# Install SDK
npm install @hash/einvoice-sdk
import { HashClient } from '@hash/einvoice-sdk';
const client = new HashClient({
apiKey: 'your_api_key',
region: 'sa'
});
// Create and submit an invoice
const invoice = await client.invoices.create({
type: 'standard',
customer: 'cust_abc123',
items: [{
description: 'Consulting Services',
quantity: 1,
unit_price: 10000,
vat_rate: 0.15
}],
compliance: { zatca: true }
});
console.log(invoice.status); // "approved"
console.log(invoice.qr_code); // Base64 QR