Setup guide · NetSuite payroll journals · Coming soon
Set up Oracle NetSuite payroll journals: step by step
This guide is for two people working together: your NetSuite administrator, who switches on the features and creates the role, the integration record and the access token, and the person who runs payroll in AhlanHamad, who connects them 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 NetSuite is switched off. You can do the NetSuite side (sections 2 and 3) now. The Oracle NetSuite page under Integrations can already connect and read your chart of accounts; until posting is on for your company, its Field Mapping tab says “Posting payroll journals to NetSuite isn't switched on for your workspace yet.”
| Check | What you need |
|---|---|
| Where it stands | Built against Oracle's NetSuite REST web services documentation, and tested only against a simulated NetSuite. It hasn't posted to a real NetSuite account yet, so start in a sandbox account (its Account ID ends in _SB1, _SB2, … (Oracle: sandbox accounts)) and check your first journals closely. |
| How it signs in | Token-Based Authentication (TBA): your own integration record and access token, and every request signed with OAuth 1.0a (HMAC-SHA256). There is no sign-in screen and no redirect URI. AhlanHamad has no NetSuite app of its own. |
| Oracle's TBA announcement | Oracle has announced that starting in NetSuite 2027.1, new integrations that use TBA for REST web services can no longer be created; existing ones keep working until TBA's end of support, which Oracle gives as tentatively 2028.2 (Oracle: preparing for TBA end of support). This connector uses TBA only, so create the integration record (section 3) before your account moves to 2027.1. Oracle doesn't say whether a new access token can still be created on an older integration record after that. |
| Currency and decimals | Journals are posted in the base currency of the subsidiary you pick (without OneWorld, the company's base currency). Amounts are sent with 2 decimals, so KWD, BHD and OMR amounts are rounded to 2 decimals (section 5). |
| A NetSuite administrator | Someone who can enable features, create roles and integration records, and create access tokens (the Access Token Management permission). Oracle notes an administrator can't create a token for another administrator (Oracle: TBA roles). |
| 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 NetSuite: 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 NetSuite: switch on the features, and create a role and a user
AhlanHamad talks to NetSuite through REST web services, signed in with an access token rather than a password (Oracle: Token-based Authentication). Sign in to NetSuite (your sandbox first) as an administrator.
- Go to Setup → Company → Enable Features and open the SuiteCloud subtab. Under SuiteTalk (Web Services) tick REST Web Services, and under Manage Authentication tick Token-based Authentication. Click I Agree on the SuiteCloud Terms of Service when asked, then Save (Oracle: enable TBA, REST web services setup). Oracle's TBA page also ticks Client and Server SuiteScript: that is for RESTlets, which AhlanHamad doesn't use.
- Go to Setup → Users/Roles → User Management → Manage Roles → New. Name: for example
AhlanHamad payroll journals. Don't use the Administrator role for this: Oracle advises against it for web services. - On Permissions → Setup, add Log in using Access Tokens (Full) and REST Web Services (Full) (Oracle: TBA roles).
- Add what posting needs: Transactions: Make Journal Entry (Create). Lists: Accounts, Currency and, with OneWorld, Subsidiaries (View). Reports: SuiteAnalytics Workbook (Edit), which Oracle lists for REST web services; AhlanHamad reads your accounts, subsidiaries and base currency with SuiteQL queries. Leave out Journal Approval: AhlanHamad never approves its own journals. This list hasn't been checked on a real account yet: if loading accounts or posting says a permission is missing, add the one NetSuite names. With OneWorld, also make sure the role can reach the subsidiaries payroll goes to (the screen may be named differently in your version). Click Save.
- Give the role to a user, preferably one kept for AhlanHamad: Lists → Employees → Employees, Edit the user, open the Access subtab, choose the role in Role, click Add, then Save (Oracle: assign users to TBA roles).
3. In NetSuite: create the integration record and the access token
The integration record
- Go to Setup → Integration → Manage Integrations → New. Name: for example
AhlanHamad payroll. State: Enabled (Oracle: create integration records). - On the Authentication subtab keep Token-based Authentication (TBA) ticked. Leave TBA: IssueToken Endpoint, TBA: Authorization Flow and the OAuth 2.0 options unticked (no callback URL is needed), and clear User Credentials.
- Click Save. The confirmation page shows the Consumer Key and Consumer Secret. Copy both straight away: NetSuite shows them only once.
The access token
- Go to Setup → Users/Roles → Access Tokens and click New Access Token. Application Name: the integration record. User: the user from section 2. Role: the role from section 2. Token Name is filled in for you. Click Save (Oracle: create and assign a TBA token).
- Copy the Token ID and Token Secret from the confirmation page: NetSuite shows them only once. TBA tokens don't expire. Tokens are not copied from production into a sandbox, and a sandbox refresh means a new token.
Your Account ID
Find it at Setup → Company → Company Information (Account ID), or at the start of your NetSuite address: 1234567.app.netsuite.com is account 1234567, and a sandbox 1234567-sb1.app.netsuite.com is 1234567_SB1 (Oracle: find your account ID). AhlanHamad accepts 1234567, 1234567_SB1, 1234567_RP, TSTDRV1234567, and the address spelling 1234567-sb1.
4. In AhlanHamad: connect NetSuite
- Go to Integrations and open Oracle NetSuite. Stay on the Connection tab; the card is called NetSuite Connection and its form is headed Token-Based Authentication (TBA).
- Account ID: the ID from section 3, for example
1234567_SB1. Start with your sandbox. - Consumer Key and Consumer Secret: the values from the integration record.
- Token ID and Token Secret: the values from the access token.
- Click Connect to NetSuite. AhlanHamad makes one signed request that reads your chart of accounts. When it works it says “All set — you're connected”, and the card shows Connected to Oracle NetSuite with your Account ID.
The four values are stored encrypted for your company. To use a new access token, click Disconnect NetSuite, then enter all five values again and click Connect to NetSuite. Connecting to a different NetSuite account (for example from the sandbox to production) forgets the saved subsidiary and mapping.
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 NetSuite too, every payroll run is posted to both and your payroll costs are booked twice. If you are moving to NetSuite, click Cancel, disconnect the other system first, then connect NetSuite.
5. Pick the subsidiary and map your accounts
- Open the Field Mapping tab (it opens once NetSuite is connected). The card is called Post payroll journals to NetSuite.
- Click Load my accounts. If your account has more than one subsidiary, Choose the subsidiary says “Your NetSuite account has more than one subsidiary. Pick the one payroll journals go to — they are posted in its base currency.” Without OneWorld there is nothing to choose: the card says Posting to
NetSuite account 1234567_SB1. - Check the Base currency line under it: that is the currency every journal is posted in.
- Map each Ahlan Hamad account to a NetSuite 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 that base currency, decide on Post runs in other currencies (section 6).
Which NetSuite account for each payroll account
| Code | Ahlan Hamad account | Needed | Typical NetSuite 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 | Other Current Liability |
| 2200 | Social insurance payable (employee + employer) | Required | Other Current Liability |
| 2300 | End-of-service provision | Required | Other Current Liability or Long Term Liability |
| 1101 | Bank account salaries are paid from | Required | Bank |
| 2700 | Deductions withheld (loans, penalties, unpaid leave) | Only if used | Other Current 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 | Other Current 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 |
- Some accounts can't be picked. AhlanHamad says why: “Some accounts can't be picked: Accounts Payable and Accounts Receivable (NetSuite tracks them per vendor or customer, and payroll journals post totals only), and summary, non-posting and statistical accounts, which take no journal amounts. Pick a liability, expense or bank account instead.” Inactive accounts are greyed out too.
- 1101 can be your Bank account itself, or a “Salary clearing” liability that you clear when you reconcile the bank.
- Departments, classes, locations and names are not sent. Every line carries only the account, the amount and a memo. If your NetSuite account makes department, class or location mandatory on transactions (an accounting preference; the screen may be named differently in your version), NetSuite will refuse the journal.
- Amounts have 2 decimals. Each line is rounded to 2 decimals (half away from zero); if the rounded lines no longer balance, the difference goes on the largest line and the journal's memo says “Rounding of … put on the largest line.” A KWD, BHD or OMR amount such as
1234.567reaches NetSuite as1234.57: the third decimal is not kept.
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).
6. What gets posted, and when
| When this happens in AhlanHamad | NetSuite 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 with the same lines, debit and credit swapped, under its own marker. Its memo names the journal it reverses (its entry number and marker). NetSuite's own reversal (a reversal date on the original) is not used, so the two journals are not linked in NetSuite. A corrected run is then posted again as a new journal. | The day of the change |
- Each journal is created as one NetSuite journal entry, with one line per account (Oracle: journal entry record). Its External ID is our marker (
AHfollowed by 12 letters and digits), its memo starts with what it is and AhlanHamad's reference (for examplePAY-KW-2026-10) and ends “Posted by Ahlan Hamad payroll.”, and with OneWorld it is set on the subsidiary you picked. Before every send AhlanHamad looks the marker up by External ID and, if the journal is already there, takes it instead of creating a second one. - If your account requires journal approval (Require Approvals on Journal Entries, or an approval workflow for journal entries), the journal arrives pending approval: AhlanHamad never marks it approved. The run card still says Posted, but the amounts reach your general ledger only once someone with the Journal Approval permission approves it in NetSuite (Oracle: journal approval). A reversal waits for approval the same way.
- We never edit or delete a journal in NetSuite. Corrections are always new journals: the reversal first, then the corrected run as a new journal.
- Each journal is sent once. If a send is cut off halfway, the next try looks the journal up by its marker instead of creating a second one.
- Amounts are in your NetSuite base currency. 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 on the journal.
- 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 NetSuite. The mapping card lists them under “Earlier runs not sent to NetSuite 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.
7. Check your first payroll in NetSuite
- In AhlanHamad, open the payroll run. The NetSuite journals card lists each journal (Payroll accrual, Salary payment, …) with its status. Posted means NetSuite has it.
- In NetSuite, open the list of journal entries (often Transactions → Financial → Make Journal Entries → List; the screen may be named differently in your version) and find the entry by its memo (the reference, for example
PAY-KW-2026-10) or its External ID (theAH…marker the run card shows). - Check: the date (the last day of the payroll month for the accrual), the subsidiary, one line per mapped account, and totals that match the payroll run in AhlanHamad (to 2 decimals).
- If your account requires journal approval, approve the entry in NetSuite, then check it in your general ledger.
Statuses on the run card: Queued and Sending (on its way), Waiting (another journal must reach NetSuite first), Retrying (NetSuite or the network was busy; we try again automatically), Posted, On hold (needs you; the reason is shown), Failed (NetSuite refused it; the reason is shown), Not needed (nothing to send; the reason is shown).
8. Troubleshooting
Company admins who can manage settings, and finance managers, also get an in-app notice and an email when NetSuite journals are held or fail: one per problem, a reminder after three days, and a short note when it clears. No amounts, names or NetSuite errors are put in the email; open the payroll run to see the reason.
When connecting (Connection tab)
| What you see | What to do |
|---|---|
| Please fill in all fields | All five values are needed: Account ID, Consumer Key, Consumer Secret, Token ID and Token Secret. |
| Something glitched on our end — give it another go? | Check the Account ID first: AhlanHamad refuses anything that isn't a NetSuite account ID (digits, with _SB1 or _RP for a sandbox or Release Preview account, or TSTDRV and digits). If it is right, try again. |
| Failed to fetch accounts: … (NetSuite's own answer follows) | NetSuite refused the signed request. Check the five values (a sandbox needs its own token), that REST Web Services and Token-based Authentication are on (section 2), that the role has Log in using Access Tokens and REST Web Services, that the integration record's State is Enabled, and that the token isn't revoked. Then connect again. |
When loading your accounts (Field Mapping tab)
| What you see | What to do |
|---|---|
| Could not list your NetSuite companies (…). … | NetSuite refused the subsidiary list. Usually the role lacks Subsidiaries (View) or SuiteQL access (SuiteAnalytics Workbook). Add it in NetSuite, then click Reload accounts. |
| Choose which NetSuite company payroll journals go to. | Pick the subsidiary in Choose the subsidiary. |
| NetSuite did not report the base currency (ISO code) of this subsidiary. Check the currency record's ISO Code, then load your accounts again. | Open the subsidiary's base currency record in NetSuite and check its ISO code (for example KWD); check the role has Currency (View). Then click Reload accounts. |
| Your subsidiary is not in the Choose the subsidiary list | Inactive and elimination subsidiaries aren't listed. Check the subsidiary is active and that the role can reach it, then click Reload accounts. |
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, choose the subsidiary if asked, save the mapping, then Retry. This also shows when the connection now reaches a different NetSuite account than the saved setup. |
| … 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 NetSuite terms: an Accounts Payable or Accounts Receivable account, or a summary, non-posting or statistical account. Map those codes to an ordinary liability, expense or bank 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 NetSuite. |
| The connection needs to be renewed. Reconnect and try again. | NetSuite stopped accepting the access token: it was revoked, the role or user changed, or the integration record was blocked. The Connection tab shows the form again with NetSuite's answer. Create a new access token in NetSuite, enter all five values and click Connect to NetSuite. Journals held for this reason are sent automatically once you reconnect. |
| Not connected, or posting is switched off. | Connect NetSuite again on the Connection tab. Held journals are sent automatically once you reconnect. If NetSuite 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 NetSuite, in English, with NetSuite's own words added after ours. Fix the cause in NetSuite or in the mapping, then press Retry. A retry never creates a second journal.
| What you see | What to do |
|---|---|
| NetSuite rejected the journal (400). followed by NetSuite's own message | Read NetSuite's message after ours: it starts with NetSuite's error code in brackets (for example [INVALID_CONTENT]) and may name the field. Common causes: the date is in a closed or locked accounting period, a mapped account is inactive or not available to the subsidiary, or your account makes department, class or location mandatory. A NetSuite server error carries a NetSuite error id: give it to NetSuite support if you contact them. Fix the cause, then Retry. |
| NetSuite 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 NetSuite. Click Reload accounts, fix the mapping, save, then Retry. |
| This run's payroll accrual journal did not reach NetSuite. 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. | NetSuite or the network kept failing. Check NetSuite opens normally, then press Retry. |
| NetSuite refused access (403). The role on the access token (OAuth 2.0: the role on the M2M mapping) may lack a permission journals need (Make Journal Entry, Accounts, Subsidiaries, Currency, SuiteQL). | Add the missing permission to the role from section 2 (the token uses that role), then Retry. |
On the payroll run: Not needed
| What you see | What it means |
|---|---|
| Reversed in Ahlan Hamad before it reached NetSuite; the pair nets to zero. | Nothing to do: the journal and its reversal cancel out, so neither is sent to NetSuite. |
| Reverses an entry that never reached NetSuite, so there is nothing to reverse there. | Nothing to do. |
Two accounting systems
If the NetSuite 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 NetSuite, disconnect the others so payroll costs aren't counted twice.
9. Disconnecting
- In AhlanHamad, go to Integrations → Oracle NetSuite → Connection and click Disconnect NetSuite. AhlanHamad deletes the stored consumer and token values.
- AhlanHamad cannot withdraw anything at NetSuite for you: the access token stays valid there until you revoke it. In NetSuite go to Setup → Users/Roles → User Management → Access Tokens, click Edit on the token and click Revoke (Oracle: revoke a TBA token). If you won't use it again, set the integration record's State to Blocked.
- Journals already in NetSuite stay there. We never delete or change them.
- While NetSuite is disconnected, new payroll journals are not sent. The run card says “NetSuite 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 NetSuite, and send any end-of-service months listed on the mapping card.
Oracle sources used in this guide
- Token-based Authentication: overview, enable the feature, roles and permissions, assign users to roles, integration records, create a token, revoke a token, preparing for TBA end of support.
- REST web services and accounts: prerequisites and setup, journal entry record, find your account ID, sandbox accounts, Require Approvals on Journal Entries.
- NetSuite's menus change from release to release. If a name here doesn't match your screen, the linked page has Oracle's current wording.