Retail and F&B point of sale
A POS platform sees hundreds of small tickets a day, but a merchant's accountant usually needs one thing from them: a daily close that agrees with the till, the card terminal and the bank. This guide posts one summary journal per outlet per day, then clears each tender as the money arrives.
In this example, a café closes the day on $1,060.00 collected:
| Item | Amount |
|---|---|
| Net sales | $1,000.00 |
| Sales tax collected | $60.00 |
| Cash tendered | $360.00 |
| Card tendered | $500.00 |
| E-wallet tendered | $200.00 |
The 6% tax here is only an example. Your merchant's rate and treatment depend on their business and jurisdiction.
Why tenders need their own accounts
Sales are earned at the close, but the money arrives on different days and in different amounts. Each tender gets its own account, which returns to zero once that money reaches the bank.
| Mistake | Effect | Instead |
|---|---|---|
| Credit sales with the $1,060.00 collected | Revenue is overstated by the tax | Credit $60.00 to a tax liability |
| Debit the bank with all tenders at the close | The bank will not match its statement | Debit the Cash Drawer and clearing accounts |
| Record the $492.50 card settlement as sales | The sale is counted twice | Clear the card account; record the fee as an expense |
| Adjust sales to hide a till difference | Sales no longer match the POS | Post the difference to Cash Over/Short |
Before you start
Working in your own language? These samples use plain HTTP. You can generate a typed Partner API client from openapi-partner.json with the same generators; see SDKs and client libraries.
Complete Your first accounting entry first. You need a provisioned company and a session whose permissions allow account and journal writes.
export BASE="https://api.paprel.com"
export AUTH="authorization: Bearer $SESSION_TOKEN"
export PARTNER="x-partner-domain: $PARTNER_DOMAIN"
export CT="content-type: application/json"
1. Set up the accounts
Read the company's chart with GET /v1/accounting/accounts, and reuse existing accounts where they fit. Create what is missing with POST /v1/accounting/accounts, and store each returned data.id with the merchant record. Account ids differ between companies.
| Account | Type |
|---|---|
| Sales Revenue | Income |
| Sales Tax Payable | Liability; use an ordinary liability account, not a system control account |
| Cash Drawer | Asset |
| Card Clearing | Asset |
| E-wallet Clearing | Asset |
| Bank | Asset |
| Card and E-wallet Fees | Expense |
| Cash Over/Short | Expense |
Use one Cash Drawer and clearing set per outlet if merchants need each outlet's balance on its own.
2. Post the daily close
Post once, after the outlet closes and voids and refunds for the day are final. Use the outlet's business date, which can differ from the calendar date for late-night trading.
| Account | Debit | Credit |
|---|---|---|
| Cash Drawer | $360.00 | — |
| Card Clearing | $500.00 | — |
| E-wallet Clearing | $200.00 | — |
| Sales Revenue | — | $1,000.00 |
| Sales Tax Payable | — | $60.00 |
curl -X POST "$BASE/v1/accounting/journals" \
-H "$AUTH" -H "$PARTNER" -H "$CT" \
-d '{
"date": "2026-11-02",
"currency": "USD",
"reference": "CLOSE-OUTLET01-20261102",
"description": "POS daily close, outlet 01",
"posted": true,
"lines": [
{ "account_id": "<Cash Drawer id>", "description": "Cash tendered", "debit": "360.00" },
{ "account_id": "<Card Clearing id>", "description": "Card tendered", "debit": "500.00" },
{ "account_id": "<E-wallet Clearing id>", "description": "E-wallet tendered", "debit": "200.00" },
{ "account_id": "<Sales Revenue id>", "description": "Net sales", "credit": "1000.00" },
{ "account_id": "<Sales Tax Payable id>", "description": "Sales tax collected", "credit": "60.00" }
],
"meta_data": { "root_entity_type": "pos_daily_close", "root_entity_id": "OUTLET01-20261102" }
}'
Keep the ticket detail in your POS and link to it through root_entity_id. Refunds and voids made before the close reduce that day's figures. A refund made on a later day belongs in that later day's close.
3. Record a till difference
The till count at close is $358.00, which is $2.00 short of the POS figure:
| Account | Debit | Credit |
|---|---|---|
| Cash Over/Short | $2.00 | — |
| Cash Drawer | — | $2.00 |
curl -X POST "$BASE/v1/accounting/journals" \
-H "$AUTH" -H "$PARTNER" -H "$CT" \
-d '{
"date": "2026-11-02",
"currency": "USD",
"reference": "TILL-OUTLET01-20261102",
"description": "Till difference, outlet 01",
"posted": true,
"lines": [
{ "account_id": "<Cash Over/Short id>", "description": "Cash short at close", "debit": "2.00" },
{ "account_id": "<Cash Drawer id>", "description": "Adjust drawer to counted cash", "credit": "2.00" }
],
"meta_data": { "root_entity_type": "pos_till_difference", "root_entity_id": "OUTLET01-20261102" }
}'
If the till is over, reverse the two sides.
4. Record cash banked
| Account | Debit | Credit |
|---|---|---|
| Bank | $358.00 | — |
| Cash Drawer | — | $358.00 |
curl -X POST "$BASE/v1/accounting/journals" \
-H "$AUTH" -H "$PARTNER" -H "$CT" \
-d '{
"date": "2026-11-03",
"currency": "USD",
"reference": "BANKIN-OUTLET01-20261103",
"description": "Cash banked, outlet 01",
"posted": true,
"lines": [
{ "account_id": "<Bank id>", "description": "Cash deposit", "debit": "358.00" },
{ "account_id": "<Cash Drawer id>", "description": "Cash moved to bank", "credit": "358.00" }
],
"meta_data": { "root_entity_type": "pos_cash_banking", "root_entity_id": "OUTLET01-20261103" }
}'
5. Record the card settlement
The acquirer settles $492.50 after a $7.50 fee. Revenue is not on this journal.
| Account | Debit | Credit |
|---|---|---|
| Bank | $492.50 | — |
| Card and E-wallet Fees | $7.50 | — |
| Card Clearing | — | $500.00 |
curl -X POST "$BASE/v1/accounting/journals" \
-H "$AUTH" -H "$PARTNER" -H "$CT" \
-d '{
"date": "2026-11-04",
"currency": "USD",
"reference": "CARD-STL-20261104",
"description": "Card settlement, outlet 01",
"posted": true,
"lines": [
{ "account_id": "<Bank id>", "description": "Net card settlement", "debit": "492.50" },
{ "account_id": "<Card and E-wallet Fees id>", "description": "Card processing fee", "debit": "7.50" },
{ "account_id": "<Card Clearing id>", "description": "Card sales settled", "credit": "500.00" }
],
"meta_data": { "root_entity_type": "pos_card_settlement", "root_entity_id": "CARD-STL-20261104" }
}'
Record the e-wallet settlement in the same way when it arrives.
6. Verify the books
curl --get "$BASE/v1/reports/trial-balance" \
-H "$AUTH" -H "$PARTNER" \
--data-urlencode 'date=2026-11-04' \
| jq '.data.trial_balance[] | {account_name, debit, credit, balance}'
With the e-wallet money still to arrive, expect:
| Account | Debit | Credit |
|---|---|---|
| Cash Drawer | — | — |
| Card Clearing | — | — |
| E-wallet Clearing | $200.00 | — |
| Bank | $850.50 | — |
| Sales Revenue | — | $1,000.00 |
| Sales Tax Payable | — | $60.00 |
| Card and E-wallet Fees | $7.50 | — |
| Cash Over/Short | $2.00 | — |
Each clearing balance should equal what its provider still owes the merchant. A difference points to a missing journal or a settlement that does not match the close.
Production notes
Retries. Paprel does not deduplicate journals. Record each outlet and business date in your own database before posting, and keep at most one request in flight for each. After an ambiguous timeout, follow the journal retry rule; do not resend automatically.
Reopened days. Do not post a second close for the same day. Post a separate adjustment journal, with its own root_entity_id, for the difference.
Closed periods. A close dated inside a locked accounting period is rejected. Alert the merchant rather than moving the date on your own.
Multiple outlets. One company with an account set per outlet suits a single legal entity. Provision a separate company for each legal entity that keeps its own books.
Tax. Confirm whether these journals meet the merchant's tax reporting needs, or whether sales should go through documents instead. Tax-inclusive pricing, service charges and exemptions need the merchant's accountant.
Tips and service charges. Tips held for staff are a liability, not sales. Agree the treatment with the merchant's accountant.
Next: merchant financing.