Field Reference

This is the field-level reference for the core entities every Athia deployment uses — transactions and attempts, orders, instruments and customer, money movement, cost, risk and disputes. The naming conventions and the crosswalk between the names here and the names on the use-case pages are on the parent page, Athia Data Dictionary.

Transactions and attempts

The core domain. Each payment attempt carries its own processor, outcome and decline reason.

Core entity relationships
FIELD REFERENCEHow the core entities relate ORDER the commercial record CUSTOMER who bought user_id SUBSCRIPTION recurring only subscription_id order_id + retry_sequence PAYMENT ATTEMPT one row per attempt, including every retry INSTRUMENT BIN and last four card_bin SETTLEMENT money actually received payout id payment_transaction_id PAYMENT EVENT auth, 3DS, capture, void REFUND value returned DISPUTE chargeback lifecycle COST LINE interchange, scheme, fees order_id FRAUD DECISION blocked before a processor Attached to the order, never to an attempt. A blocked order produces no attempt row, which is why it sits outside acceptance rate entirely. The orange join is the one to protect. Without order_id on every attempt and a retry sequence, every attempt reads as a separate order: acceptance understated, volume overstated.

The join keys on the edges are what make cross-provider analysis possible. Lose order_id on an attempt or the retry sequence and every attempt reads as a separate order: acceptance understated, volume overstated. A fraud decision hangs off the order and never off an attempt, which is why a blocked order sits outside acceptance rate entirely.

Core entityThe join that matters mostSupporting entity

The join keys on the edges are what make cross-provider analysis possible, and the two that matter most are order_id on every attempt and retry_sequence, whose absence Field availability on the parent page explains.

Payment attempt

One attempt to take payment for an order, including every retry. An order with three tries has three payment attempts.

FieldTypeDescriptionWhy Athia needs it
order_idStringReference to the order the attempt belongs toGroups retries to their order
payment_transaction_idStringThe processor's transaction identifier, unique per attemptAttempt-level joins and deduplication
payment_timestampISO 8601 stringWhen the attempt was made, UTC. Use authorization timeEvery trend and baseline
payment_statusEnumauthorized, captured, denied, pending, refunded, chargedback. denied is the value for a declined attempt — what the rest of the documentation calls a decline, and the attempts that carry psp_error_codeOutcome of every attempt; the basis for acceptance rate and every funnel figure
payment_amountDecimalAmount of the attempt. May differ from the order total on partial capturesValue weighting, cost per approved transaction
currency_codeISO 4217Transaction currencyPrevents cross-currency aggregation
psp_nameStringThe processor that handled the attemptAny routing comparison, and how agents learn which processor wins
psp_error_codeStringThe processor's decline code. Failed attempts onlyAll decline analysis, and how agents learn which declines are worth retrying
psp_error_messageStringHuman-readable decline descriptionClusters raw codes into causes
mit_cit_referenceEnumCIT (customer-initiated) or MIT (merchant-initiated)The two are priced, authenticated and declined differently
retry_sequenceIntegerPosition of the attempt in its order's sequenceFirst-attempt against final acceptance, and retry gain
threeds_outcomeStringAuthentication result and version, where reportedAuthenticated and unauthenticated attempts approve differently
avs_resultStringAddress verification response, match or no-matchIssuer behavior and fraud context
cvv_resultStringCVV response, match or no-match. The submitted value is never collectedIssuer behavior and fraud context
mccStringMerchant category code the attempt was processed underInterchange level and issuer behavior vary by MCC
card_binStringCards only. Defined under Instruments and customerIssuer-level and BIN-level routing analysis
metadataJSONExtra context: device fingerprint, IP geography, session identifierSignals your provider does not expose as fields

Where your provider reports intermediate states, Athia also ingests payment events — authorization, 3DS, capture, refund and void as discrete rows rather than one final status. These answer timing questions, such as how long elapses between authorization and capture.

Order

The commercial record a payment belongs to.

FieldTypeDescriptionWhy Athia needs it
order_idStringOrder identifier, unique per orderThe join key for everything else
order_timestampISO 8601 stringWhen the order was placed, UTCOrder-level trends and conversion
order_total_amountDecimalTotal order valueTurns acceptance into revenue
order_statusEnumcreated, completed, cancelled, refundedCommercial outcome against payment outcome
payment_methodEnumcredit_card, debit_card, cash, wallet, bnplMethod mix and method-level acceptance
order_channelEnumweb, app, call_center, kioskChannel comparison, and separating checkout problems from payment problems
merchant_idStringBrand or regional entity identifierMulti-brand and multi-market comparison. Carries merchant_name, utc_offset and merchant_currency
user_idStringDefined under Instruments and customerRepeat behavior and segmentation
subscription_idStringSubscription reference, recurring charges onlyRenewal failure and involuntary churn

Without utc_offset, peak hour and the daily boundary land in the wrong place across markets.

Instruments and customer

Card attributes, and the identifiers that link attempts to a person.

FieldTypeDescriptionWhy Athia needs it
card_binStringLeading digits identifying issuer and product: 6 or 8 digits; 8 where the provider supplies themResolves issuer, brand, card product and card country against BIN reference data
last_four_digitsStringMasked card reference, last four onlyInstrument identification alongside BIN
expiry_dateISO 8601 stringWhen the stored instrument expiresExpiry-driven renewal failure
Fingerprint or PARStringThe provider's stable card reference, where suppliedRecognizes one card across reissues and providers
payment_method_idStringStored instrument, held as a tokenized referenceStored-method mix and acceptance
payment_method_typeEnumFor example credit_card, debit_card, paypal, apple_pay, pixMethod-level performance
user_idStringInternal user identifier. Prefer a stable UUIDSeparates a first-time buyer's decline from a returning customer's
email, phone, addressStringOptional. Deliver hashed, tokenized or generalizedAthia never requires raw personal data
📘

Card data is minimized to BIN plus last four. No full card number and no CVV value is collected on any path. CVV and AVS appear only as match / no-match response codes.

Money movement

What actually left and arrived, so acceptance can be reconciled against money.

FieldTypeDescriptionWhy Athia needs it
Refund amount and timestampDecimal, ISO 8601 stringValue returned and whenNet revenue, and separating refunds from disputes
Settlement or payout identifierStringThe payout the transaction was included inGroups transactions to money received
Original transaction referenceStringLink from a settlement line to the payment attemptWithout it, settlement cannot be reconciled to authorizations
Settlement dateISO 8601 stringWhen the payout was madeAuthorization-to-cash timing
Gross, deductions, net settled amountDecimalWhat was billed, withheld and landedThe gap between approved and settled
Settlement currency and FX rateISO 4217, DecimalPayout currency and the rate appliedSeparates a real movement from a rate movement

Cost

What a transaction cost to process. Acceptance alone ranks routes; only cost data says which is cheaper per approved transaction.

FieldTypeDescriptionWhy Athia needs it
InterchangeDecimalFee paid to the issuing bank, set by the networkUsually the largest cost component
Scheme feesDecimalFees charged by the card network itselfCost per approved transaction, downgrade detection
Gateway or provider marginDecimalYour provider's own chargeProvider-by-provider cost comparison
Network token feeDecimalCharge applied to network-tokenized transactionsWhether tokenization pays for itself
Chargeback feeDecimalFee applied per disputeThe true cost of a dispute beyond the reversed amount
FX markupDecimalCost of currency conversionCross-border route cost
Contracted rate cardTableRates, thresholds and conditions agreed with each providerExpected against actual cost, where pricing leakage shows

Under blended pricing your provider charges one rate absorbing interchange, scheme fees and margin, and the components cannot be separated afterward. Under interchange-plus they arrive as separate lines. Where your provider does not itemize, supply fees through the in-product cost CSV upload against the Athia template.

Risk and disputes

Fraud outcomes and the dispute lifecycle, joined back to the attempt.

FieldTypeDescriptionWhy Athia needs it
Fraud decisionEnumApprove, review or decline from your fraud engineThese declines never reach a processor, so they sit outside acceptance rate
Fraud scoreDecimalThe score behind the decisionWhat your rules cost you as well as what they save
Fraud reason or ruleStringWhat drove the decisionSeparates a tightened rule set from a real rise in fraud
Dispute identifierStringThe chargeback recordDispute rate by provider, BIN and segment
Original transaction referenceStringLink back to the payment attemptWithout it a dispute cannot be attributed to a route or BIN
Dispute reason codeStringThe network reason code raisedFraud disputes and service disputes have different remedies
Dispute amount and feeDecimalValue reversed and fee chargedTrue cost of a dispute
Dispute stage and statusEnumWhere the case standsOpen exposure against closed
Dispute and representment datesISO 8601 stringWhen the case was raised, answered and resolvedResponse deadlines and representment win rate
Representment outcomeStringWon or lost after responseWhether contesting disputes is worth the effort

Disputes are raised 30 to 180 days after the transaction, so twelve months of history is the working minimum for dispute analysis. A shorter window understates the rate, because the dispute period on recent transactions has not closed.

Related


Did this page help you?