Setup guide · Qoyod payroll journals · Coming soon
Set up Qoyod payroll journals: step by step
This guide is for two people working together: the person who manages your Qoyod account, who creates the API key, and the person who runs payroll in AhlanHamad, who connects it and maps the accounts with your accountant. Follow it in order. Every AhlanHamad label below is the one you will see on screen.
Updated 14 October 2026
1. Before you start
Coming soon. Posting payroll journals to Qoyod is switched off. You can do the Qoyod side (section 2) now; the Qoyod page appears under Integrations once we switch it on for your company. Until posting is on for your company, the Field Mapping tab says “Posting payroll journals to Qoyod isn't switched on for your workspace yet.”
| Check | What you need |
|---|---|
| Where it stands | Built against Qoyod's published API documentation (API V2), and tested only against a simulated Qoyod API. It hasn't posted to a real Qoyod account yet, so start with a Qoyod trial account and check your first entries closely. |
| Qoyod | A Qoyod account in which you can create an API key. If you can't find where to create one, ask Qoyod support whether your account includes API access. |
| Currency | AhlanHamad doesn't read your Qoyod account's currency: Qoyod's API documents no way to read it, so the books are taken to be in Saudi riyals (SAR). A run in another currency (Kuwaiti dinars, for example) is held unless you allow conversion. If your Qoyod books are not in SAR, don't switch on posting: tell us first. |
| In Qoyod | Someone who manages your Qoyod account's settings and can create an API key. |
| In AhlanHamad | A company admin who can manage settings (to connect and save the mapping), and the person who finalizes and pays payroll. Your accountant should help with the mapping. |
Only totals are sent to Qoyod: one line per account, never a line per employee. Names, IDs and individual salaries stay in AhlanHamad (the journal's description carries the number of employees in the run, nothing more).
2. In Qoyod: create an API key
AhlanHamad connects with your own Qoyod API key: Qoyod's API takes the key in an API-KEY header on every request (Qoyod API documentation). There is no sign-in screen and no redirect URI.
Create the key
- Sign in to Qoyod as someone who manages the account's settings. To try it first, use a trial account: AhlanHamad's own form says “To test, use an API key from a Qoyod trial account; for live, use a key from your real Qoyod account.”
- Open the settings where Qoyod creates API keys. AhlanHamad's Connection tab says “Generate one in Qoyod under Settings → API”, and Qoyod's API documentation places the key under the general settings. The screen may be named differently in your version; if you can't find it, ask Qoyod support where to create an API key (Qoyod API documentation).
- Create the key and copy it. Treat it like a password: anyone who has it can use Qoyod's API on your account. Keep it until section 3.
- Use one key for AhlanHamad and keep it. A new key for the same Qoyod account keeps the saved mapping: on connect AhlanHamad checks, live, that the new key's chart still holds every mapped account (same account id and code) — Qoyod documents no organisation id, so the chart is the identity. A key for a different Qoyod account forgets it, and posting waits until you map your accounts again.
Check your chart of accounts
- In Qoyod's chart of accounts, make sure you have the accounts payroll needs: an expense account for salaries and one for employer social insurance (GOSI), liability accounts for net salaries payable, social insurance payable and the end-of-service provision, and the bank or cash account salaries are paid from (section 4 has the full list).
- Don't plan to use a receivable or payable (customer or supplier) account: they can't be picked. For salaries payable, use a liability account of its own, such as “Salaries payable”.
3. In AhlanHamad: connect Qoyod
- Go to Integrations and open Qoyod. Stay on the Connection tab; the card is called Qoyod Connection and says “Connect to your Qoyod account using your API key”.
- API Key: paste the key from section 2. Under the field: “Your credentials are encrypted and stored securely”.
- Company ID is optional. AhlanHamad only shows it on the card to help you recognise the account; it is not sent to Qoyod.
- Click Connect to Qoyod. The button reads Verifying Connection while AhlanHamad reads your chart of accounts from Qoyod with the key (
https://api.qoyod.com/2.0/accounts). - When Qoyod accepts the key you see “Connection saved and verified”, and the card shows Connected to Qoyod (with the Company ID, if you entered one). If Qoyod refuses it, the message is shown on the card and the button reads Reconnect (section 7).
The key is stored encrypted on the server and never shown again. To use another key, click Disconnect Qoyod, paste the new key and click Connect to Qoyod. A new key for the same Qoyod account keeps the saved mapping: on connect AhlanHamad checks, live, that the new key's chart still holds every mapped account (same account id and code) — Qoyod documents no organisation id, so the chart is the identity. A key for a different Qoyod account is treated as a different account: AhlanHamad forgets the saved mapping, and posting waits until you load your accounts and save the mapping again. You don't need the Sync Settings tab for payroll journals.
Already sending payroll to another accounting system? If another one is connected and receiving payroll, AhlanHamad asks first: “Connect a second accounting system?” If you connect Qoyod too, every payroll run is posted to both and your payroll costs are booked twice. If you are moving to Qoyod, click Cancel, disconnect the other system first, then connect Qoyod.
4. Map your accounts
- Open the Field Mapping tab (it opens once Qoyod is connected). The card is called Post payroll journals to Qoyod.
- Click Load my accounts. The card shows Posting to Qoyod and Base currency: SAR. That currency is assumed, not read from Qoyod (section 1).
- Map each Ahlan Hamad account to a Qoyod account (table below). Some are pre-selected and marked Suggested when the match is clear; check every one with your accountant.
- Click Save mapping. Until every required account is mapped the card says “Runs that use an unmapped account are held until it is mapped.”
- If you pay any payroll in a currency other than SAR, decide on Post runs in other currencies (section 5).
Which Qoyod account for each payroll account
| Code | Ahlan Hamad account | Needed | Typical Qoyod account type |
|---|---|---|---|
| 5100 | Salaries — basic, other allowances, overtime & additions | Required | Expense |
| 5400 | Housing allowance | Required | Expense |
| 5500 | Transport allowance | Required | Expense |
| 5200 | Employer social-insurance contribution | Required | Expense |
| 5300 | End-of-service expense | Required | Expense |
| 2100 | Net salaries payable | Required | Liability |
| 2200 | Social insurance payable (employee + employer) | Required | Liability |
| 2300 | End-of-service provision | Required | Liability |
| 1101 | Bank account salaries are paid from | Required | Asset (the bank or cash account salaries are paid from) |
| 2700 | Deductions withheld (loans, penalties, unpaid leave) | Only if used | Liability |
| 5810 | Bank transfer charges on salaries | Only if used | Expense |
| 5310 | DIFC DEWS employer contribution | Only if used | Expense |
| 2310 | DIFC DEWS payable | Only if used | Liability |
| 5900 | Foreign-exchange gain/loss on payroll (only if a run in another currency is paid at a different rate) | Only if used | Your exchange gain or loss account |
- Receivable and payable accounts can't be picked. AhlanHamad says why: “Accounts Payable and Accounts Receivable can't be picked: Qoyod needs a vendor or customer on every line posted there, and payroll journals post totals only. Pick a liability or clearing account instead.”
- AhlanHamad lists the accounts Qoyod's accounts API returns (Qoyod API documentation), read in one request. If an account you need isn't in the list, click Reload accounts; if it still isn't there, tell us.
- No cost centres or projects are sent: each line carries an account, an amount and a short comment.
End-of-service is not on the payroll journal. It is its own journal each month (5300 End-of-service expense / 2300 End-of-service provision).
5. What gets posted, and when
| When this happens in AhlanHamad | Qoyod receives | Dated |
|---|---|---|
| A payroll run is finalized (Finalize) | Payroll accrual: salaries and allowances, employer social insurance and the payables they create (debits 5100–5500, credits 2100, 2200 and, if used, 2700) | The last day of the payroll month |
| The run is paid (Mark as Paid, or CEO Sign-off & Pay) | Salary payment: debit 2100 Net salaries payable, credit 1101 | The day the run was signed off and paid |
| Bank transfer charges are recorded on a paid run | Bank charges: debit 5810, credit 1101 | The pay day |
| A month ends | End-of-service accrual: debit 5300, credit 2300 — sent automatically on the 1st of the next month. You can also run it by hand for a finished month with Run Monthly Accrual on the Finance page. | The last day of that month |
| A run is deleted, or a posted journal is corrected | A reversal: a new journal entry with the same lines, debit and credit swapped. A corrected run is then posted again as a new entry. | The day of the change |
- Each journal is sent to Qoyod as one journal entry (Qoyod API documentation): the debits and the credits as two separate lists of positive amounts, one line per mapped account, each with a short comment. The entry's description holds what it is, AhlanHamad's reference and, at the end, our marker in square brackets (for example
[AH…]). - Qoyod documents no reference field for this, so the marker sits in the description. Before sending, AhlanHamad searches Qoyod's journal entries for it. That search is built from Qoyod's documentation and hasn't been confirmed on a real Qoyod account yet: if a send was cut off, look in Qoyod for an entry with the marker before you press Retry, and tell us if you find one.
- We never edit or delete an entry in Qoyod. Corrections are always new entries: the reversal first, then the corrected run as a new entry.
- Amounts are sent in SAR, with two decimals: the currency AhlanHamad takes your Qoyod books to be in (it isn't read from Qoyod). A run in another currency is held unless you switch on Post runs in other currencies; then it is converted at AhlanHamad's daily exchange rate, and the rate is written in the entry's description.
- Runs finalized or paid before you saved the mapping are not sent on their own. Open each run and press Send this run's journals to Qoyod. The mapping card lists them under “Earlier runs not sent to Qoyod yet”.
- End-of-service months booked before you connected are listed on the mapping card. Press Send them, check the list of months and amounts, and confirm. They go oldest first, each dated at its own month end.
Every journal's description starts with what it is and AhlanHamad's own reference for it: PAY-KW-2026-10 for the October 2026 Kuwait payroll accrual, PAY-KW-2026-10-PMT for its salary payment, PAY-KW-2026-10-FEES for its bank charges, IND-KW-2026-10 for that month's end-of-service accrual (the country code is the run's own). A reversal's description starts with “Reversal of” and the reference it reverses. Each journal also carries a marker: AH followed by 12 letters and digits.
6. Check your first payroll in Qoyod
- In AhlanHamad, open the payroll run. The Qoyod journals card lists each journal (Payroll accrual, Salary payment, …) with its status. Posted means Qoyod accepted it.
- In Qoyod, open your list of journal entries (the screen may be named differently in your version) and find the entry whose description ends with the marker the run card shows (
[AH…]), or look for the reference (for examplePAY-SA-2026-10). - Check: the date (the last day of the payroll month for the accrual), one line per mapped account, and totals that match the payroll run in AhlanHamad.
- If the run was converted from another currency, check the rate written in the description.
Statuses on the run card: Queued and Sending (on its way), Waiting (another journal must reach Qoyod first), Retrying (Qoyod or the network was busy; we try again automatically), Posted, On hold (needs you; the reason is shown), Failed (Qoyod refused it; the reason is shown), Not needed (nothing to send; the reason is shown).
7. Troubleshooting
Company admins who can manage settings, and finance managers, also get an in-app notice and an email when Qoyod journals are held or fail: one per problem, a reminder after three days, and a short note when it clears. No amounts, names or Qoyod errors are put in the email; open the payroll run to see the reason.
When connecting (Connection tab)
| What you see | What to do |
|---|---|
| Authentication failed: invalid Qoyod API key | Qoyod refused the key. Check you copied all of it and that it is still active in Qoyod, or create a new one, then connect again. |
| Qoyod error: … — … | Qoyod answered with another error (the number is Qoyod's answer). Try again in a few minutes; if it keeps happening, send us the whole message. |
| Qoyod no longer accepts this connection (…). Reconnect Qoyod from Integrations. | Qoyod stopped accepting the saved key while posting, usually because it was deleted or switched off in Qoyod. Paste a working key and click Reconnect. A new key for the same Qoyod account keeps the mapping; for a different account, map your accounts again (section 4). |
| Connect to Qoyod stays greyed out | Paste the API key first: the button works only once the API Key field is filled. |
When loading your accounts (Field Mapping tab)
| What you see | What to do |
|---|---|
| An account is not in the Qoyod account list | Click Reload accounts. If it still isn't there, check it exists in Qoyod's chart of accounts and isn't a receivable or payable account, then tell us. |
| Base currency: SAR, but your Qoyod books are in another currency | AhlanHamad can't read Qoyod's currency and assumes SAR. Don't save the mapping or post: tell us first. |
On the payroll run: On hold
A held journal is waiting, not lost. Fix the reason and it goes, either by itself or when you press Retry on the run card.
| What you see | What to do |
|---|---|
| Map these accounts first: 5400, 5500. | Map the listed account codes on the Field Mapping tab and click Save mapping, then Retry. |
| Load your accounts and save the mapping on the integration page first. | On the Field Mapping tab, click Load my accounts, save the mapping, then Retry. You also see this after connecting with an API key for a different Qoyod account (a new key for the same account keeps the mapping): the mapping must be saved again. |
| … mapped to an account that can't be used in a journal (Accounts Payable or Receivable, a system or bank account, or an account with no code). Pick another account on the integration page. | In Qoyod terms: a receivable or payable (customer or supplier) account. Map those codes to a liability or clearing account, save, then Retry. |
| This run's currency differs from your books. Allow other-currency posting to send it. | Switch on Post runs in other currencies on the Field Mapping tab, then Retry. Or keep that run out of Qoyod. |
| The connection needs to be renewed. Reconnect and try again. | Qoyod stopped accepting the API key: usually it was deleted or switched off in Qoyod. On the Connection tab, paste a working key and click Reconnect. Journals held for this reason are sent once you reconnect; with a key for a different Qoyod account, first map your accounts again and save, then Retry. |
| Not connected, or posting is switched off. | Connect Qoyod again on the Connection tab. Held journals are sent automatically once you reconnect. If Qoyod is connected and you still see this, ask us: posting may have been switched off for your company. |
On the payroll run: Failed
These come back from Qoyod, in English, with Qoyod's own words added after ours. Fix the cause in Qoyod or in the mapping, then press Retry.
| What you see | What to do |
|---|---|
| Qoyod rejected the journal (400). followed by Qoyod's own message | Read Qoyod's message after ours: it says what Qoyod didn't accept. The number in brackets is Qoyod's answer and may be another one than 400. Fix the cause in Qoyod or in the mapping, then Retry. If the message isn't clear, send it to us. |
| Qoyod refused access (403). The connection may lack permission to post journals, or the organisation was disconnected — reconnect Qoyod. | Qoyod didn't let this API key create journal entries. Check in Qoyod that the key is still active and belongs to the account you post to. If you create a new key, reconnect with it — the mapping is kept for the same Qoyod account, and for a different account you map your accounts again — then Retry. |
| Qoyod could not find the company or an account this journal points at (404). Check the account mapping belongs to the connected company. | A mapped account was deleted or archived in Qoyod. Click Reload accounts, fix the mapping, save, then Retry. |
| This run's payroll accrual journal did not reach Qoyod. Retry the accrual first, then retry this payment, so it clears exactly the salaries payable the accrual booked. | Retry the Payroll accrual line first, then the Salary payment line. |
| No exchange rate from … to … is available. | Try again later, or contact us. |
| … — gave up after 6 attempts. | Qoyod or the network kept failing. Check Qoyod opens normally, then press Retry. |
On the payroll run: Not needed
| What you see | What it means |
|---|---|
| Reversed in Ahlan Hamad before it reached Qoyod; the pair nets to zero. | Nothing to do: the journal and its reversal cancel out, so neither is sent to Qoyod. |
| Reverses an entry that never reached Qoyod, so there is nothing to reverse there. | Nothing to do. |
Two accounting systems
If the Qoyod page or the payroll run says “Payroll is being posted to …” with more than one system, every run is booked in each of them. If you keep your books only in Qoyod, disconnect the others so payroll costs aren't counted twice.
8. Disconnecting
- In AhlanHamad, go to Integrations → Qoyod → Connection and click Disconnect Qoyod. AhlanHamad deletes the stored API key and says “Integration disconnected”.
- AhlanHamad cannot withdraw anything at Qoyod for you. If you won't use the key again, delete or switch it off in Qoyod, where you created it.
The saved mapping stays in AhlanHamad. If you connect again with the same key it is kept; a new key for the same Qoyod account keeps it too (its chart is checked, live, to still hold every mapped account); a key for a different Qoyod account is forgotten and you map your accounts again.
- Journals already in Qoyod stay there. We never delete or change them.
- While Qoyod is disconnected, new payroll journals are not sent. The run card says “Qoyod is not connected, so new journals are not being sent.”
- If you connect again later, open each payroll run from that time and press Send this run's journals to Qoyod, and send any end-of-service months listed on the mapping card.
Qoyod sources used in this guide
- Qoyod: API documentation (API V2: the API key header, Accounts and Journal Entries).
- We could not check Qoyod's own menus for this guide. If a name here doesn't match your screen, Qoyod support can tell you where API keys and journal entries are in your version.