Browse documentation

On this page

Partner APIAPI contract v1.1.0

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:

ItemAmount
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.

MistakeEffectInstead
Credit sales with the $1,060.00 collectedRevenue is overstated by the taxCredit $60.00 to a tax liability
Debit the bank with all tenders at the closeThe bank will not match its statementDebit the Cash Drawer and clearing accounts
Record the $492.50 card settlement as salesThe sale is counted twiceClear the card account; record the fee as an expense
Adjust sales to hide a till differenceSales no longer match the POSPost the difference to Cash Over/Short

Before you start

Complete Your first accounting entry first. You need a provisioned company and a session whose permissions allow account and journal writes.

Shell
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.

AccountType
Sales RevenueIncome
Sales Tax PayableLiability; use an ordinary liability account, not a system control account
Cash DrawerAsset
Card ClearingAsset
E-wallet ClearingAsset
BankAsset
Card and E-wallet FeesExpense
Cash Over/ShortExpense

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.

AccountDebitCredit
Cash Drawer$360.00—
Card Clearing$500.00—
E-wallet Clearing$200.00—
Sales Revenue—$1,000.00
Sales Tax Payable—$60.00
Shell
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:

AccountDebitCredit
Cash Over/Short$2.00—
Cash Drawer—$2.00
Shell
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

AccountDebitCredit
Bank$358.00—
Cash Drawer—$358.00
Shell
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.

AccountDebitCredit
Bank$492.50—
Card and E-wallet Fees$7.50—
Card Clearing—$500.00
Shell
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

Shell
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:

AccountDebitCredit
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.

Evaluate Paprel

Build in sandbox, launch with a production trial

Use sandbox for developer testing with no billing. When you are ready for real workflows, start production on a monthly plan with a 14-day free trial.

API-First Delivery
Audit-Ready Controls
Sandbox And Guided Rollout
We use cookies to improve your experience.

We use cookies and local storage for essential settings and, with your choices, analytics and advertising. Online identifiers and activity can be personal data. You can reject optional categories or change your choices.

These cookies are necessary for the basic functionality of the website, ensuring a seamless user experience. They cannot be disabled.