Skip to content

Domain Glossary

Reference of all domain enums, codes, and classification types used across the finances system.


Account Types (AccountTypeEnum)

Follows standard double-entry accounting classification.

ValueDescription
ASSETResources owned. Debit increases, credit decreases.
LIABILITYObligations owed. Credit increases, debit decreases.
REVENUEIncome earned. Credit increases, debit decreases.
EXPENSECosts incurred. Debit increases, credit decreases.
EQUITYOwner's residual interest. Credit increases, debit decreases.

Debit / Credit Sign Rules

Account TypeDEBIT effectCREDIT effect
ASSET+ (increase)− (decrease)
EXPENSE+ (increase)− (decrease)
LIABILITY− (decrease)+ (increase)
REVENUE− (decrease)+ (increase)
EQUITY− (decrease)+ (increase)

REVERSAL entries invert the sign regardless of account type.


Account Codes (AccountCodeEnum)

Standardized account identifiers. Each code implies a specific AccountTypeEnum and EntityTypeEnum.

Payin Accounts

CodeTypeEntityDescription
ACQUIRER_RECEIVABLEASSETACQUIRERFunds receivable from acquirer after a payment is captured
BUSINESS_PAYABLELIABILITYBUSINESSNet amount owed to the merchant after fees
PLATFORM_CLEARINGLIABILITYPLATFORMTemporary holding account for platform fee clearing

Cash Accounts

CodeTypeEntityDescription
PLATFORM_CASHASSETPLATFORM(Reserved — currently unused.) Defined in the enum but not referenced by any preparer or entry generator. Use BANK for a platform-level cash account.
WITHDRAWAL_FUNDSASSETACQUIRERFunds held at the acquirer to settle withdrawals. Queried per-acquirer via ACQ#{acquirer}#CUR#{currency}.

Withdrawal Accounts

CodeTypeEntityDescription
BUSINESS_WITHDRAWAL_PAYABLELIABILITYBUSINESSWithdrawal amount owed to the merchant

Revenue Accounts

CodeTypeEntityDescription
PROCESSING_FEES_REVENUEREVENUEPLATFORMRevenue from payin processing fees
WITHDRAWAL_FEES_REVENUEREVENUEPLATFORMRevenue from withdrawal processing fees

Third-Party Cost Accounts

CodeTypeEntityDescription
ACQUIRER_FEES_EXPENSEEXPENSEPLATFORMPayin fees charged by the acquirer — recorded as an expense on the platform's books (ENT#T1#CUR#{currency}).
WITHDRAWAL_ACQUIRER_FEES_EXPENSEEXPENSEPLATFORMWithdrawal fees charged by the acquirer — expense on the platform's books (ENT#T1#CUR#{currency}).
WITHDRAWAL_ACQUIRER_FEES_PAYABLELIABILITYACQUIRERAmount owed to the specific acquirer for withdrawal fees (ACQ#{acquirer}#CUR#{currency}).

Tax Accounts

CodeTypeEntityDescription
VAT_PAYABLELIABILITYPLATFORMIVA/VAT collected, to be remitted
VAT_RECEIVABLEASSETPLATFORMIVA/VAT paid to acquirers, reclaimable

Reserve Accounts

CodeTypeEntityDescription
RESERVE_RECEIVABLEASSETACQUIRERRolling reserve the acquirer is holding on behalf of the platform. One account per acquirer (ACQ#{acquirer}#CUR#{currency}).
RESERVE_PAYABLELIABILITYBUSINESSThe portion of the merchant's balance held as rolling reserve — the platform's obligation to release it back to the merchant (ENT#{entity_id}#CUR#{currency}).

Other Accounts

CodeTypeEntityDescription
BANKASSETPLATFORMBank settlement account
BUSINESS_SETTLEMENT_PENDINGLIABILITYBUSINESSFunds pending settlement disbursement

Equity Accounts

CodeTypeEntityDescription
PRIOR_PERIOD_ADJUSTMENTEQUITYPLATFORMContra account for historical balance loads and prior-period corrections. Used as the source when loading opening balances into merchant accounts that predate the system.

Entity Types (EntityTypeEnum)

ValueDescription
BUSINESSMerchant / commercial entity. Has accounts prefixed ENT#{entity_id}#CUR#{currency}.
ACQUIRERPayment processor. Has accounts prefixed ACQ#{acquirer}#CUR#{currency}.
PLATFORMTonder platform itself. Has accounts prefixed ENT#T1#CUR#{currency}.

Journal Types (JournalTypeEnum)

Every transaction produces a pair of journals:

ValueDescription
INAcquirer-side journal. Records what the acquirer owes/receives.
OUTBusiness-side journal. Records the merchant's net, fees, and platform revenue.

Journal Categories (JournalCategoryEnum)

ValueDescriptionProduces
PAYMENTSuccessful payment capturedIN + OUT pair
VOIDPayment voided before settlementIN + OUT pair
REFUNDFull or partial refundIN + OUT pair
DISPUTE_WONDispute resolved in merchant's favorIN + OUT pair
DISPUTE_IN_REVIEWDispute opened, under reviewIN + OUT pair
WITHDRAWALMerchant withdrawal (payout)IN + OUT pair
TOPUPWithdrawal account top-upIN + OUT pair
SETTLEMENT_APPROVESettlement approved, journals taggedSingle journal
SETTLEMENT_CONFIRMSettlement confirmed, funds disbursedSingle journal
ROUTINGPlatform routing entry during settlementSingle journal
ROLLING_RESERVE_RELEASEScheduled release of rolling reserveSingle journal
ADJUSTMENTManual adjustment / internal transferSingle journal

Entry Types (EntryTypeEnum)

ValueDescription
DEBITLeft side of double-entry. Increases ASSET/EXPENSE, decreases LIABILITY/REVENUE/EQUITY.
CREDITRight side of double-entry. Increases LIABILITY/REVENUE/EQUITY, decreases ASSET/EXPENSE.

Transaction Types (TransactionTypeEnum)

Source event types from the payments system:

ValueDescription
PAYMENTCard or APM payment captured
PAYOUTOutbound payout to external account
REFUNDFull or partial refund of a payment
DISPUTEChargeback or dispute event
WITHDRAWALMerchant fund withdrawal
VOIDPayment void before settlement

Detail Types (DetailTypeEnum)

EventBridge detail-type values that trigger processing:

ValueEventBridge SourceDescription
PAYMENTS.PAYMENTPAYMENTSStandard card payment
APMS.PAYMENTAPMSAlternative payment method (bitso, oxxopay, mercadopago)
WITHDRAWALS.WITHDRAWALWITHDRAWALSMerchant withdrawal
WITHDRAWALS.TOPUPWITHDRAWALSWithdrawal account top-up
PAYOUTS.PAYOUTPAYOUTSExternal payout
WITHDRAWALS_ACCOUNT_ACTIVITY.DEPOSITWITHDRAWALSWAA deposit
PAYMENTS.REFUNDPAYMENTSRefund event
PAYMENTS.DISPUTEPAYMENTSDispute/chargeback event
PAYMENTS.VOIDPAYMENTSPayment void
SETTLEMENTS.SETTLEMENT_APPROVESETTLEMENTSSettlement approval
SETTLEMENTS.SETTLEMENT_CONFIRMSETTLEMENTSSettlement confirmation
ROUTING.ROUTINGROUTINGPlatform routing
ROLLING_RESERVE.ROLLING_RESERVE_RELEASEROLLING_RESERVEReserve release

Transfer Types (TransferTypeEnum)

Used in internal transfers (POST /v1/accounts/transfers). Each maps to an AdjustmentTypeEnum:

Transfer TypeMaps ToUse Case
PAYMENT_CORRECTIONMANUAL_ADJUSTMENTFix an incorrect payment amount or allocation
FEE_ADJUSTMENTFEE_CORRECTIONCorrect a fee that was over/under-charged
RESERVE_MOVEMENTRESERVE_ADJUSTMENTMove funds to/from rolling reserve
SERVICE_CREDITSERVICE_COMPENSATIONCredit a merchant for a service issue
BALANCE_RECONCILIATIONBALANCE_RECONCILIATIONReconcile a balance discrepancy
TAX_ADJUSTMENTTAX_CORRECTIONCorrect a tax calculation (IVA)
PRIOR_PERIOD_CORRECTIONPRIOR_PERIOD_CORRECTIONLoad historical balance or correct a prior accounting period. Source is always PRIOR_PERIOD_ADJUSTMENT (equity).

Adjustment Types (AdjustmentTypeEnum)

Full taxonomy of adjustment reasons used in journal metadata:

Product Reversals

ValueDescription
PAYMENT_REVERSALReverse a payment entry
WITHDRAWAL_REVERSALReverse a withdrawal entry
REFUND_REVERSALReverse a refund entry

Flow-Specific Corrections

ValueDescription
REFUND_CORRECTIONFix a refund amount or allocation
DISPUTE_CORRECTIONFix a dispute resolution entry

Fees / Costs / Income

ValueDescription
FEE_CORRECTIONCorrect an over/under-charged fee
PROVIDER_CORRECTIONCorrect an acquirer/provider fee
SERVICE_COMPENSATIONCredit for service disruption or error
PROMOTIONAL_CREDITPromotional credit or discount

Taxes, FX, Reserves, Risk

ValueDescription
TAX_CORRECTIONCorrect IVA/VAT calculation
FX_RATE_CORRECTIONCorrect FX rate conversion
RESERVE_ADJUSTMENTModify rolling reserve amount
RISK_ADJUSTMENTRisk-related balance adjustment

General Accounting

ValueDescription
BALANCE_RECONCILIATIONReconcile a balance discrepancy
ACCOUNTING_ERROR_CORRECTIONFix a double-entry accounting error
TECHNICAL_CORRECTIONFix a system/technical issue
WRITE_OFFWrite off an uncollectable amount
PRIOR_PERIOD_CORRECTIONLoad historical balance or correct a prior accounting period (uses PRIOR_PERIOD_ADJUSTMENT equity as contra)

Manual / Catch-All

ValueDescription
MANUAL_ADJUSTMENTGeneral manual adjustment (requires description)
OTHEROther adjustment not covered above

Finances Module Flags (FinancesModuleEnum)

Per-acquirer configuration flags in FinancesConfigService:

ValueControlsDescription
FEES_CALCULATIONFee engineWhich journal categories trigger fee calculation. Array of category names.
LEDGER_ENTRIESLedger entriesWhether to generate ledger entries and update account balances. Boolean.
DAILY_BALANCESBalance snapshotsWhether to generate daily balance snapshots. Boolean.
JOURNALS_GENERATIONJournal creationWhether to generate accounting journals. Boolean.

Fee Rule Status (FeeRuleStatusEnum)

ValueDescription
activeRule is active and participates in fee matching
inactiveRule is disabled; ignored during fee calculation

Supported Acquirers (ACQEnum)

ValueNotes
kushkiCard payments (LATAM)
unlimitCard payments (international)
stpBank transfers (Mexico)
oxxopayCash payments — always routed as APMS_PAYMENT
safetypayBank transfers
mercadopagoMultiple methods — always routed as APMS_PAYMENT
neosurfVoucher payments
bitsoCrypto payments — always routed as APMS_PAYMENT
speiSPEI bank transfers (Mexico)

Fixed APM acquirers: bitso, oxxopay, mercadopago always map to DetailTypeEnum.APMS_PAYMENT regardless of the original transaction_type.


Transaction Status (TransactionStatusEnum)

Status values from the upstream payments system:

ValueDescription
SuccessTransaction completed successfully
PAID_FULLFull payment received
WonDispute won by merchant
Needs ResponseDispute requires merchant response
In ReviewDispute under review
LiquidadoSettled/liquidated
LostDispute lost

Error Codes (ErrorEnum)

CodeHTTP StatusMessage
E001500Unexpected error
E002401Unauthorized
E003404Not found
E004400Bad request
E005409Record already exists
E006500Error creating record
E007500Error updating record
E008500Error deleting record
E009500Error fetching record
E0010500Error fetching records
E0011400Action not allowed
E0012404Business not found
E0013404Fee rules not found
E0014400No settlement policy configured
E0015400Detail type not supported
E0016400Journal type not supported
E0017400Settlement already processed
E0018400No approved settlement pending confirmation

Vecnet — Build Spec v0.2 · Obsidian Terminal