Payment gateway reconciliation¶
Reconcile card processor settlement reports (Bancard first, then Dinelco, Contimarket, PIK, Tienda
Naranja, then UPAY) against B1 for the finance and accounting team, through the MCP
server and the sap-b1 plugin.
Last updated: 2026-11-12
How accounting books card sales today (COMPU, explored 2026-11-05)¶
Card codes and G/L accounts¶
Card code (CreditCards) |
Name | G/L |
|---|---|---|
| 1, 13, 14 | Bancard POS tarjetas, Bancard web débito, Bancard POS QR débito | 113107 |
| 9, 18, 19 | Bancard crédito, Bancard web crédito, Bancard POS QR crédito | 113113 |
| 2 / 10 | Dinelco débito / crédito | 113111 / 113112 |
| 11 / 12 | Upay débito / crédito | 113114 / 113115 |
| 15 / 16 | PIK crédito / débito | 113117 / 113118 |
| 6 | Tienda Naranja | 113108 |
| 7 | Contimarket | 113109 |
| 3, 4 | Retenciones IVA, Anticipo IRE (used as payment means for withholdings) | 113203, 113210 |
CreditCards.CompanyID holds informal rates ("0.03", "0.1"); it is not a reliable contract source.
Flows¶
- Sale: incoming payment with a
PaymentCreditCardsline on the card G/L.VoucherNumand the journal line'sAdditionalReference(Ref3) hold the processor's sale key (see "Sale keys in B1"). Cashiers cancel and re-enter payments typed with a wrong amount, so card accounts also hold cancelled pairs. - Net credit: month-end
VendorPayments, DocTyperAccount,TransferAccount= card G/L,PaymentAccounts= bank G/L. Remarks likeACRED TC PER. 09/26,ACRED. TD PER. 09/26, plusACRED PEND. 08/26 ACRED. EN 09/26for the previous month's sales paid in the current month. One payment is reconciled against the whole month of bank lines (111303 reconciliation 169: 2 payments against 63 lines). - Commission: processor A/P invoices; Bancard (PL0015) sends one per branch per month,
ADQ. Tarjeta de crédito SUC n, account 513117, IVA_10. Paid by a supplier vendor payment whoseTransferAccountis the card G/L. Debit commissions are separate invoices (Tarjeta de Débito <mes>) plus POS rental on 513116. - Withholdings: one
rAccountvendor payment per certificate; its credit card line (card 3, on 113113) pays 113203 (Ret. IVA) and 113204 (Ret. Renta). MemoRet.IVA/RENTA <certificate> relacionada a la ft.<invoice> | BANCARD. - B1's credit card
Depositshave not been used since January 2024.
Bank accounts and statement keys¶
| Bancard account | House bank | G/L | Branches |
|---|---|---|---|
<Itaú account> |
Itaú Gs. Ah. | 111303 | 1, 3, 5, 6 |
<Sudameris account> |
Sudameris Gs. Ah. | 111305 | 4 (EE.AA 2) |
- Credit cards: one
CREDITO A COMERCIO BANCARline per summary, net, 2–3 business days after the sale. On Itaú,Referenceis the credit date as d+mm+yy (11026= 01/10/26,300926= 30/09/26). - Debit and QR: one
Venta hecha en POS INFONETline per sale, gross, same day. On Itaú,ReferenceisNro. transaccionwithout its first 3 digits and leading zeros (5750123456 → 123456). Checked on 6 lines of 02/10/26. BANCARD-MATRIZdebits on the Itaú account: not yet identified (debit commissions?).- Contimarket: one credit per report line on Continental (111401), carrying the line's
Numero Comprobante Extracto(confirmed 2026-11-12, still to check againstBankPages).
Sale keys in B1 (checked in COMPU 2026-11-12)¶
| Processor | Card codes seen | VoucherNum |
Checked |
|---|---|---|---|
| Bancard | 1, 14 → 113107; 9, 18 → 113113 | Nro. transaccion |
All 43 payments of 02/10 |
| Dinelco | 10 → 113112 | Boleta N° |
6 October payments |
| PIK | 15 → 113117 | First 20 characters of the 22-character ID |
1 payment |
| Contimarket | 7 → 113109 | Numero de Orden; one payment per order, the sum of its lines |
Orders of 1, 4 and 5 lines |
| Tienda Naranja | 6 → 113108 | Order ID with leading zeros; amount = Total GMV (Producto) |
1 payment |
| Upay codes | 11 → 113114, 12 → 113115 | 12-digit boletas like Dinelco's on 12; other formats on 11 | 6 October payments |
- Bancard's
VoucherNumis typed by hand. Of the 43 payments of 02/10, 24 hold the number as reported, 14 have00in front (12 digits) and 5 have one or two digits wrong (5750412345 typed as 5750142345); amount, date and card G/L always match. Two debit sales of Gs. 69,000 that day show why the amount alone can't settle a typo. - STQR and STAR sales are booked as Bancard debit, mostly card 1, sometimes 14, on 113107. Within one G/L the card code doesn't identify the product (TDQR on 1 and 14, credit on 9 and 18): only the G/L (debit 113107, credit 113113) can be checked.
- Card codes 11 and 12 are still used in October 2026 (about 25 credit and 20 debit payments),
credited monthly from Ueno Bank (111304:
Acred. P. Op. con TC mes 10_2026Gs. 18,561,641,TDGs. 5,998,075), with a withholding certificate from RED DIGITAL. Accounting says UPAY was discontinued; see question 7.
Bancard settlement file (August–October 2026)¶
Samples: docs/local/payment-processors/bancard/ (gitignored: contains card holder data).
;-separated, Latin-1, 43 columns, same header every month. One month of sales per file: August
1,017 rows (Gs. 574.2M), September 914 (Gs. 658.1M), October 959 (Gs. 706.0M).
- September and October were re-saved through Excel: codes lost their leading zeros (authorization
codes of 4–5 digits,
Plan de pago0instead of00). - Credit cards (TC, TCQR, TCTK): 335–412 rows a month with commission, IVA on commission, RENTA
withheld, IVA withheld, net, credit date, bank account and
Nro. de resumen. - Net = gross − commission − IVA on commission − RENTA − IVA withheld on every settled row.
- Commission = gross × 3% rounded to the guaraní, then down to 10 Gs, on all 1,137 settled rows of the three months, whatever the brand, origin or installments. IVA = 10% of the commission. RENTA = 1% of gross, rounded. IVA withheld = gross ÷ 110, rounded (6 rows ending in exactly .5 were rounded down).
Porcentaje de comision al comerciois commission ÷ gross rounded to two decimals, not the contract rate: its 2.99% and 2.91% rows are 3% rows.- Summaries: one per branch and credit date (two on 7 of 246 branch-days), each on one bank account, with 1–3 products and 1–4 sale days. No summary or transaction appears in two monthly files; the month's last summaries are credited in the next month (33–55 rows).
- Credit 2–3 business days after the sale; 4 around the 29/09 holiday.
- Debit and QR have no fee or settlement columns: TD, TDQR, TDTK, STQR (QR debit in account, about 230 rows a month) and STAR (app/web, 12–21 rows).
- CABAL and PANAL credit-card sales (3–10 a month) are approved but never in a summary: Bancard doesn't pay them.
- Reversals:
EstadoReversadoorAnuladoandFecha de anuladaon the original row, with no settlement amounts; 1–6 a month, up to 8 days after the sale. - Test sales of Gs. 1 (30/09, branch 4).
- Personal data in the file (birth date, sex, masked card number) must never be imported.
Other processors' reports (samples 2026)¶
Samples in docs/local/payment-processors/<processor>/ (gitignored). Each file holds one month; no
row repeats in another month's file.
| Processor | Card G/L | Samples | Rows a month | Month by | Amounts | Payout key |
|---|---|---|---|---|---|---|
| Dinelco (Bepsa) | 113111 / 113112 | Aug–Oct | 33–43 | sale date | all components, net, credit date | none |
| UPAY | 113114 / 113115 | Apr–Jun | 99–133 | credit date | all components, net, credit date | Nro. de comprobante de pago |
| PIK | 113117 / 113118 | Aug–Oct | 50–74 (40–57 paid) | sale date | gross and one fee | none |
| Contimarket | 113109 | Aug–Oct | 61–105 lines | sale date | commission, IVA, net, pay date | Numero Comprobante Extracto |
| Tienda Naranja | 113108 | Jan, Feb, Sep, Oct | 25–43 lines | purchase date | commission, shipping, net | none |
Dinelco (one merchant, one branch)
- Only rows with Tipo Afectación = PAGAR are sales. The others are rejected payments (Estado
R), balance inquiries (CONSULTA DE SALDO, Gs. 0) and approved rows still Pendiente de Proceso
(one sale of 15/08 never processed).
- Products: card POS, QR (COMPRA POS QR) and SPI transfers (TRANSFERENCIA SPI, Boleta N°
starting with 68).
- Rates: credit 3%, debit 2%, SPI 1.36%. One Mastercard Black credit-card sale on 13/08 at 1.36%.
- Every product is paid net: gross − commission − IVA on commission − RENTA − IVA withheld. RENTA
(1%) and IVA withheld only on credit cards; IVA withheld = gross × 0.0909 ÷ 10, rounded (all 65
rows).
- Payout: EN LOTE rows are credited in one batch per credit date, the business day after
processing; EN LINEA rows (SPI, some debit) one by one, the same day.
- Keys: Boleta N° (12 digits, space-padded; B1's VoucherNum) and the authorization code (empty
on some rows).
- Commissions are also invoiced: FT.659608 Comisiones por operaciones de TC/TD | Octubre (Gs.
587,136) and a withholding certificate (RENTA 177,920, IVA 161,729) were paid against 113112 on
30/10. Neither matches a calendar month of the report (commission + IVA: September 641,066,
October 831,443; RENTA: September 176,584, October 182,233): Dinelco bills on its own cycle, like
Bancard.
UPAY (samples April–June 2026; accounting says it was discontinued, but its card codes are still
used, question 7)
- Two merchant codes, Av. del Chaco and Multiplaza, with different rates: local cards 2.90% at Av.
del Chaco and 3.00% at Multiplaza; international cards 3.00% at both; QR (Ueno, Bancard) 2.90%.
- Withholdings only on credit cards. IVA withheld is about gross ÷ 110 (1 Gs off on 15% of rows).
- Refunds: a negative row (gross and net negative, fees positive) in the same payout as the sale.
- Payout: Nro. de comprobante de pago, one credit date, merchant and card/QR kind each; 7 digits,
14 on 16 June payouts. Credit 1–6 days after the sale.
- Card sales have no time (00:00:00); Boleta Nº is numeric for cards, …UP… or a UUID for QR,
sometimes empty.
PIK (SmartPOS, two terminals)
- Only Estado = Liquidado rows are sales. Abandonado, Rechazado, Expirado, Error and
Denegada (10–17 rows a month) are failed attempts, often with the same amount and day as the
paid sale.
- No net, credit date, bank account, IVA or withholdings: only Monto and Cargos de Servicio.
Fecha de Actualización (2 days after the sale, around 14:00) is the settlement day.
- Rates: 4.5% flat until 30/09/2026. From 01/10: debit 2%, credit in 1 installment 3%, 2–6
installments 7%, 8–10 installments 8% (one 24-installment sale at 3%). Fee = gross × rate,
rounded.
- Keys: ID (same as ID Transacción; B1 keeps its first 20 characters), Número de Ticket.
Código de Autorización is 999999 on about 30% of paid rows and can't be a key.
Contimarket (Banco Continental's marketplace)
- One row per order line (Numero de Detalle); an order can have several lines and one card payment
(Numero Transaccion, a Bepsa boleta number not found in the Dinelco file).
- Commission 8% of the line, IVA on it (rounding varies), Comision a Facturar = commission + IVA,
Monto a Acreditar = line − commission − IVA. No withholdings.
- Each line is credited on its own (see bank keys). Fecha Pago follows weekly cycles: Thursday
sales paid on Monday, Wednesday sales on Friday.
- B1 books one payment per order (Numero de Orden) for the sum of its lines, while the bank
credits each line: the order groups the sale side, the line is the payout.
Tienda Naranja (marketplace)
- One row per order line (order ID + SKU; B1's VoucherNum is the order ID). Commission 10% of the product price (11.1% on 3
September lines). Total a transferir = product net + shipping cost on most lines; discounted
prices break the formulas on 0–7 lines a month.
- No payout ID or payment date. Accounting adds its own columns (Comprob Banco Itau, MES / AÑO
ACRED EN BANCO, CONTROL 1, ESTADO); one Itaú transfer covers 2–15 lines.
- Gestión de pago a comercio goes from Pendiente a la fecha to PAGADO.
- The January and February files have an extra year column after Mes under unchanged headers:
every later column is shifted by one.
Balances noticed (2026-11-05, unexplained)¶
113107 −124.6M, 113108 924.8M, 113112 976.1M, 113117 778.7M, 113106 "No usar" 202.1M, 113113 35.8M. Stage 4 targets these.
Commission invoices vs the file¶
Bancard's invoices follow its own billing cycle, not the calendar month. October: branch 3 equals the file's commission exactly; branch 1 equals sales up to 28/10; branches 4, 5, 6 differ (likely late September sales; September's file is now available to check).
Design¶
Card account statement¶
Each gateway report is imported as statement lines (BankPages) of the processor's card G/L
(113113, 113107, …), not of the bank account. The existing matching, investigation and external
reconciliation tools then work on the card accounts. Bank statements stay as they are.
Per payout, the statement holds one line per sale plus the payout's own lines, dated on the credit date. Which lines exist depends on the processor and product: debit, PIK and the marketplaces have no withholdings, Tienda Naranja adds shipping.
| Line | Sign | Matched in B1 against (on the card G/L) |
|---|---|---|
| Sale | + gross | Incoming payment line, 1:1 by transaction number (Ref3) |
| Reversal | − gross | Payment cancellation |
| Shipping | + | Shipping on the sale (Tienda Naranja; how it is booked is open) |
| Payout | − net | The month's net credit entry, N:1 (decision 4) |
| Commission | − | Processor invoice payment, N:1 per branch and billing period |
| IVA on commission | − | Same invoice payment |
| RENTA withheld | − | RENTA line of the withholding payment, N:1 |
| IVA withheld | − | IVA line of the withholding payment, N:1 |
A payout's lines add up to zero. The statement's running balance is "sold, not yet settled" and must equal the card G/L balance at any date.
Reports are snapshots¶
The reports show each sale's current state, not a log of events: a Bancard reversal changes the
original row (up to 8 days later), and Dinelco Pendiente de Proceso or Tienda Naranja Pendiente a
la fecha rows are paid later. Only UPAY reports a refund as a row of its own.
- An import compares each row with what earlier imports stored under the same sale key and writes only the change as new lines: the sale, its reversal, its settlement. Stored lines are never edited; replaying the imports in order rebuilds the same statement.
- A row missing from a newer export of the same month is reported, not reversed.
- Duplicates (decision 8): rows whose key and state are already stored are skipped and counted in the result, never silently.
- The file hash is stored for audit only: the same data re-saved through Excel or edited by accounting has another hash.
Common line format and keys¶
Each processor has a pure parser that outputs GatewayLine[]; everything downstream only sees this
format.
- Types:
sale,reversal,shipping,payout,commission,commission_vat,income_tax_withholding,vat_withholding,adjustment; the processor's own value is kept asrawType. - Rows that are not sales (rejected or abandoned attempts, balance inquiries, Gs. 1 tests) are dropped by the parser and counted in the result, so the file's totals still add up.
- Dates: sale date, credit date and statement date are separate fields; none is derived from another once imported.
- Amounts: every line keeps its components (gross, commission, IVA on commission, RENTA, IVA withheld, net) as the processor reported them, with signs normalized (UPAY refunds carry positive fees on a negative gross).
- Codes are trimmed and lose their leading zeros before any key is built.
- Dedupe key, scoped per processor and card G/L account:
PROCESSOR:account:type:transactionfor sales and reversals,PROCESSOR:account:type:payoutfor payout lines. A key that is global across accounts collides when two accounts share transaction numbers (a Firefly III bug).
Statement line fields (OBNK UDFs, proposed)¶
U_GwType, U_GwTxn, U_GwBatch, U_GwBranch, U_GwKey (dedupe), U_GwImport (file hash).
Reference = transaction (sales) or payout (payout lines); Memo human-readable;
U_BankBalance = running balance.
Parsers¶
- Read a list of known columns and never import the rest. Every report has personal data: birth date, sex and card number (Bancard), client name and card number (Dinelco), customer, cardholder and staff names (PIK), customer name and ID number (Contimarket).
- Check what the columns contain, not only their headers, and refuse the file when they don't parse (Tienda Naranja January and February: shifted columns under the right headers).
- Date formats:
dd/mm/yyyy H:MM(Bancard, PIK),dd/mm/yyyy HH:MM:SSwith a meaningless am/pm (Dinelco),dd-mm-yyyyplus ISO credit dates (UPAY),m/d/yyyy h:mm:ss AM(Contimarket), ISO (Tienda Naranja).
Payout keys¶
| Processor | Payout | Bank side |
|---|---|---|
| Bancard credit | Nro. de resumen |
One CREDITO A COMERCIO BANCAR line per summary |
| Bancard debit, QR | The sale | One line per sale, by transaction number |
| Dinelco | Credit date for EN LOTE; each EN LINEA sale on its own |
To check |
| UPAY | Nro. de comprobante de pago |
To check |
| Contimarket | Numero Comprobante Extracto, one per line |
One Continental line per report line |
| PIK | Settlement day, calculated: gross − fees of the sales settled that day | By amount (how PIK pays is open) |
| Tienda Naranja | None | Itaú transfer found by amount, 2–15 lines each |
Matching order¶
- Sales one to one by transaction number, leading zeros removed. Then, on the same card G/L and date, a payment with the same amount and a transaction number one or two digits off is proposed as a typo to correct in B1, never matched silently. Cancelled payments and their reversals are left out.
- Groups by label (payout key, branch + period, certificate's invoice).
- Bounded amount search: a fallback where the report gives a payout key, the main method for PIK and Tienda Naranja payouts.
Ambiguous groups are never reconciled automatically. Fee recalculations are reported as findings separate from matches.
Tolerances stay narrow: card lines have exact keys and the processor's own amounts, so a match needs equal amounts. The only tolerances are each component's rounding, set on the contract line (Bancard commission 10 Gs, IVA and withholdings 1 Gs), and credit dates moved by weekends and Paraguayan holidays. A gap larger than that is a finding, not a match.
Reconciliation profile and runs¶
Each card G/L account has a profile: its processor, its payout key, the matching methods in order and their tolerances. Each run records the account, date range, profile version, proposals, what was reconciled and by whom, so a run can be read back for audit and replayed. Profiles and runs are stored in a B1 user-defined object, like the contract table (decision 9).
States and ageing¶
Each sale moves through: provisional (sold, no settlement data yet), expected (expected credit date known from the contract table), settled (in a processor payout), bank-confirmed (payout found on the bank statement) or exception. A sale past its expected credit date without a payout is late, which is different from "not paid yet". A sale the report lists but another processor pays (Bancard's CABAL and PANAL credit cards) is paid elsewhere, never late. Exceptions show their age in days.
Contract table (stage 3)¶
A B1 user-defined object, read and cached like the e-invoice settings. - Header per processor and product: card codes, card G/L, payout key, payout mode (net per payout / gross per sale), fee billing (deducted, invoiced, or both: Bancard and Contimarket deduct the fee and invoice it too), fee supplier and accounts, withholding accounts and rules by card type (only credit cards are withheld), valid-from. - Rate lines: product, payment type (card, QR, SPI transfer), card type, brand, origin, merchant code, installment range, rate, fixed fee, rounding and tolerance per component, business days to credit, valid-from. The most specific line wins; changes add versions. - Branch → bank account table. - Holiday calendar (Paraguay) for expected credit dates.
Known values, from the reports:
| Processor | Rates | Credit |
|---|---|---|
| Bancard credit | 3% whatever the brand, origin or installments | 2–3 business days |
| Bancard debit, QR | Invoiced monthly; rates open | Same day, gross |
| Dinelco | Credit 3%, debit 2%, SPI 1.36% | EN LOTE next business day, EN LINEA same day |
| UPAY | Local cards 3.00% Multiplaza, 2.90% Av. del Chaco; international 3.00%; QR 2.90% | 1–6 days |
| PIK | 4.5% until 30/09/2026; from 01/10 debit 2%, 1 installment 3%, 2–6 7%, 8–10 8% | Settled 2 days after the sale; credit open |
| Contimarket | 8% + IVA | Weekly (Thursday → Monday, Wednesday → Friday) |
| Tienda Naranja | 10% | Open |
Every fee and withholding on a line records where its numbers came from: observed (the processor's report), expected (the contract line and version used), variance and source. Where the report has no fees, as for Bancard debit and QR, the expected amount is the only one and is marked as such.
Report source (decision 3)¶
Accounting puts each report in a Google Drive folder with one subfolder per processor (bancard/,
dinelco-bepsa/, pik/, contimarket/, tienda-naranja/, upay/), files named by month as
today. How the server reads Drive is open (decision 10).
User workflow (target)¶
- Daily: put the report in its Drive folder, import it (checks shown before writing), import bank statements, then "Conciliá tarjetas": sales ↔ payments, payouts matched on card and bank, then exceptions.
- Exceptions:
- sale with no payment;
- payment with no sale;
- wrong card G/L (a debit sale on the credit account or the reverse);
- transaction number typed wrong in B1;
- reversal still active in B1;
- late payout;
- sale paid by another processor;
- fee different from the contract.
- Month end: the month's net credit entry per card account, proposed from its payouts and reconciled on card and bank; commission invoices (e-invoice import, then checked against commission lines), withholding payments per certificate, debit commission check, balance check and report.
Decisions¶
| # | Decision | Status | Notes |
|---|---|---|---|
| 1 | External reconciliation accepts incoming payment lines on a card G/L | Confirmed (2026-11-05) | |
| 2 | Statement lines (BankPages) accepted on 113113 / 113107 |
To test in ZZ_COMPU_3 | Needed for stage 2 |
| 3 | How the file reaches the server | Confirmed (2026-11-12) | Google Drive folder, one subfolder per processor |
| 4 | Monthly vs per-summary net entries | Confirmed (2026-11-12): monthly | Accounting's current practice; one entry per card account and month, reconciled N:1 against payout lines and bank lines |
| 5 | Keys in OBNK UDFs rather than a Memo format | Proposed | |
| 6 | Commission and IVA on commission as separate lines | Proposed | Allows checking invoice net and IVA separately |
| 7 | Contract table as a B1 user-defined object | Proposed | |
| 8 | Duplicates: imports write only state changes per sale key; known rows skipped and counted; file hash for audit only | Confirmed (2026-11-12) | Reports are snapshots, not event logs |
| 9 | Where profiles and run history are stored | Confirmed (2026-11-12): B1 user-defined object | Same place as the contract table |
| 10 | How the server reads Google Drive | Pending | Service account (works unattended) or the user's Google login |
Stages¶
Stage 1: Bancard check (read-only)¶
- [ ] Drive folder reader (decision 10)
- [ ] Bancard parser →
GatewayLine[]: known columns only, codes normalized, non-sales counted - [ ] Checks: summary zero-sum, fee recalculation (3%, rounding as above)
- [ ] Sale ↔ payment matching by
VoucherNumon 113113 / 113107: normalized, then typos by amount and date - [ ] Exceptions: no payment, no sale, wrong card G/L, typed number wrong, reversal active in B1, paid elsewhere
- [ ] Unit tests on anonymized extracts of the August–October files
- [ ] README tables, server instructions, plugin skill, plugin version
- [ ] Run October in COMPU; accounting reviews the exceptions
Stage 2: Bancard import and reconciliation¶
- [ ] Decision 2
- [ ] OBNK UDFs created (ZZ_COMPU_3, then COMPU)
- [ ] Import as state changes per sale key, file hash, confirmation before writing
- [ ] Matching passes on card accounts; bank side by credit date / transaction reference
- [ ] Monthly net entries proposed and reconciled on both sides
- [ ] Plugin skill
card-settlement-reconciliation - [ ] Accounting runs one month on their own
Stage 3: Contract table and month end¶
- [ ] Contract table UDO, Bancard credit/debit/QR rows
- [ ] Holiday calendar
- [ ] Debit and QR checked against contract rates
- [ ] Expected credit dates and "late" state
- [ ] Commission invoice check (billing period from amounts)
- [ ] Withholding payments proposed per certificate
- [ ] Month-end balance check and report
Stage 4: Other processors and old balances¶
- [ ] Dinelco parser + contract (payout by credit date and mode)
- [ ] Contimarket parser + contract (sales per order in B1, payouts per line at the bank)
- [ ] PIK parser + contract (calculated payouts, amount matching; needs question 5)
- [ ] Tienda Naranja parser + contract (amount matching against Itaú transfers; needs question 6)
- [ ] UPAY parser (scope depends on question 7)
- [ ] Load past reports to explain old card G/L balances (with accounting)
Open questions for accounting¶
- Rates and terms for Bancard debit and QR (invoiced monthly).
- What the
BANCARD-MATRIZdebits on the Itaú account are; how debit commission invoices are paid. - CABAL and PANAL credit-card sales in Bancard's report: who pays them and how they are booked.
- Dinelco charged 1.36% instead of 3% on a Mastercard Black credit-card sale of 13/08: error or special rate?
- PIK: how it pays (net per settlement day? which bank account), whether
Cargos de Servicioincludes IVA, whether it withholds, and the 24-installment sale at 3%. - Tienda Naranja: how accounting finds which lines an Itaú transfer pays, and how shipping is booked.
- Card codes 11 and 12 (Upay) are still used in October 2026, credited monthly from Ueno Bank with withholdings from RED DIGITAL, although the UPAY samples stop in June: which processor is it now, and where are its reports?
Answered on 2026-11-12: Bancard's 2.99% rows are 3% (rounding of the percentage column); September's
Bancard file and the other processors' samples are in; STQR and STAR are booked as Bancard debit
(card 1, sometimes 14) on 113107; Contimarket credits each line on Continental with its Numero
Comprobante Extracto; no Bancard summary was split across two monthly files in August–October.
Reference research (2026-11-05)¶
| Source | Idea taken |
|---|---|
| Blnk | Upload as a batch with an ID, strict duplicate policy, one_to_many / many_to_one, dry_run |
| Formance Reconciliation | Balance reconciliation: ledger balance vs provider balance |
| Midday inbox matching | Deterministic scoring, learning from confirmations, read-only evaluation |
| OCA account-reconcile | Reconciliation profile per account, run history (account_mass_reconcile) |
| Odoo reconciliation models | Ordered rules, underpayment tolerance to a named account |
| reconify | Separate reference and group key, fixed pass order, fee checks as separate findings, audit snapshot |
| Adyen, Stripe, Mercado Pago | Line types, gross/fee/net components, batch and payout IDs |
| A2X vs Synder | One journal per payout matches the bank deposit 1:1 |
| Modern Treasury | Rule priority, date ranges for late payments, no auto-match when ambiguous |
| Juspay | Adapters per processor, three-way match, states, expected vs observed fees, narrow tolerances |
| Brazilian card reconciliation (Cielo EDI) | Three layers (sales, payouts, bank), contract per card type with days to credit |