Ahlan Hamad Partner API
Connect your product to the HR and payroll data of the GCC companies that use Ahlan Hamad — with their permission, one company at a time. Accounting systems read finalized payroll as balanced journals; POS and time-clock systems send shifts that flow into payroll; everyone can follow changes through signed webhooks.
1.0.0-draft.1). After each release ships, v1 only grows — new fields, parameters, enum values and events — and never removes anything.openapi.yaml for Postman, Swagger or codegen.ErrorsEvery error code and what to do about it.What ships when
| Release | What you can do |
|---|---|
v1.0 | Read company, employees and closed payroll runs (totals and journals) |
v1.1 | Push clock events from POS and time-clock systems; read attendance back |
v1.2 | Webhooks: signed events, delivery log and redelivery |
Each endpoint in the reference is tagged with the release it ships in. The contract is also available as JSON.
Start building
- Sign in to Ahlan Hamad, or create a free account.
- Open Integrations → API keys and chooseCreate sandbox company. You pick the country; the sandbox comes with generated employees and a finalized payroll run.
- Switch to the sandbox, create an API key (it starts with
ah_test_) and copy it — it is shown once. - Call the API:
curl https://actions.ahlanhamad.com/v1/company \ -H "Authorization: Bearer ah_test_…"
To go live with a customer, the customer creates an ah_live_key for you in their own account and chooses what it can access. Your code does not change — only the key.
What data you get — and what you never get
Available: company details and legal entities; employees' names (English and Arabic), staff numbers, job titles, departments, branches, status and dates; closed payroll runs as totals, per-component breakdowns and the double-entry journal; attendance.
Never returned: individual salaries or allowances, bank details, civil ID or passport numbers, dates of birth, social insurance numbers, documents, or reasons for leaving.
Base URL
https://actions.ahlanhamad.com— Production (live and sandbox companies)
Support
Email support@ahlanhamad.comand include the X-Request-Id of the call you are asking about. Use of the API is subject to the API terms.