idstringrequired*— Unique identifier of the transaction.
typestringrequired*— Transaction type, e.g. "CHARGE", "REFUND", "CREDIT" (open string).
statusstringrequired*— Transaction status, e.g. "COMPLETED" (open string).
accountIdstringrequired*— LawPay account id the transaction was processed against.
accountNamestringnullrequired*— Operator-configured display label for accountId (from the accounts credential); null when the id isn't mapped.
createdstringnullrequired*— When the transaction was created; presence varies by endpoint (provisional).
completionTimestampstringnullrequired*— When the transaction completed; null while pending or unavailable.
amountintegerrequired*— Transaction amount in integer minor units (e.g. USD cents).
currencystringrequired*— ISO 4217 currency code, e.g. "USD" (open string).
amountRefundedintegernullrequired*— Total amount refunded against this transaction, in integer minor units; null when not applicable.
surchargeAmountintegernullrequired*— Surcharge amount included in the transaction, in integer minor units; null when not applicable.
autoCapturebooleannullrequired*— Whether the charge was configured to auto-capture; null when not applicable.
authorizationCodestringnullrequired*— Card network authorization code; null when unavailable.
failureCodestringnullrequired*— Failure reason code (open string); null when not failed.
chargeIdstringnullrequired*— Id of the parent CHARGE transaction; present on a REFUND.
referencestringnullrequired*— Merchant-supplied correlation reference; null when unset.
cvvResultstringnullrequired*— CVV verification result code (open string); null when not collected.
avsResultstringnullrequired*— Address-verification result code (open string); null when not collected.
messagesarraynullrequired*— Human-readable status/processing messages; null when none.
methodobjectrequired*— Payment method used for the transaction.
typestringrequired*— Payment method type, e.g. "card" or "bank" (open string).
cardTypestringnullrequired*— Card brand, e.g. "Visa"; null for non-card methods.
numberstringnullrequired*— LawPay-masked card number, e.g. "************4242"; null when not applicable.
last4stringnullrequired*— Last four digits of the card number, derived from the masked number; null when not derivable.
expMonthintegernullrequired*— Card expiration month (1-12); null for non-card methods.
expYearintegernullrequired*— Card expiration year; null for non-card methods.
fingerprintstringnullrequired*— LawPay's stable fingerprint for this payment method; null when unavailable.
namestringnullrequired*— Holder display name — the account/card holder name for business bank and card methods, or the given name + surname composition for individual bank holders; null when unavailable.
givenNamestringnullrequired*— Individual bank account holder's given name; null for business holders or card methods.
surnamestringnullrequired*— Individual bank account holder's surname; null for business holders or card methods.
bankNamestringnullrequired*— Bank name; null for card methods.
accountTypestringnullrequired*— Bank account type, e.g. "checking" (open string); null for card methods.
accountHolderTypestringnullrequired*— Bank account holder type, e.g. "individual" or "business" (open string); null for card methods.
routingNumberstringnullrequired*— LawPay-masked bank routing number, e.g. "******013"; null for card methods.
accountNumberstringnullrequired*— LawPay-masked bank account number, e.g. "******0003"; null for card methods.
refundsarraynullrequired*— Refunds issued against this transaction; present on a CHARGE, null otherwise.
[]object
14 fields
idstringrequired*— Unique identifier of the refund transaction.
typestringrequired*— Transaction type (open string; expected "REFUND").
statusstringrequired*— Transaction status, e.g. "COMPLETED" (open string).
accountIdstringrequired*— LawPay account id the refund was processed against.
accountNamestringnullrequired*— Operator-configured display label for accountId (from the accounts credential); null when the id isn't mapped.
createdstringnullrequired*— When the refund was created; presence varies by endpoint (provisional).
completionTimestampstringnullrequired*— When the refund completed; null while pending or unavailable.
amountintegerrequired*— Refund amount in integer minor units (e.g. USD cents).
currencystringrequired*— ISO 4217 currency code, e.g. "USD" (open string).
failureCodestringnullrequired*— Failure reason code (open string); null when not failed.
chargeIdstringnullrequired*— Id of the parent CHARGE transaction this refund applies to.
referencestringnullrequired*— Merchant-supplied correlation reference; null when unset.
methodobjectrequired*— Payment method used for the refund.
15 fields
typestringrequired*— Payment method type, e.g. "card" or "bank" (open string).
cardTypestringnullrequired*— Card brand, e.g. "Visa"; null for non-card methods.
numberstringnullrequired*— LawPay-masked card number, e.g. "************4242"; null when not applicable.
last4stringnullrequired*— Last four digits of the card number, derived from the masked number; null when not derivable.
expMonthintegernullrequired*— Card expiration month (1-12); null for non-card methods.
expYearintegernullrequired*— Card expiration year; null for non-card methods.
fingerprintstringnullrequired*— LawPay's stable fingerprint for this payment method; null when unavailable.
namestringnullrequired*— Holder display name — the account/card holder name for business bank and card methods, or the given name + surname composition for individual bank holders; null when unavailable.
givenNamestringnullrequired*— Individual bank account holder's given name; null for business holders or card methods.
surnamestringnullrequired*— Individual bank account holder's surname; null for business holders or card methods.
bankNamestringnullrequired*— Bank name; null for card methods.
accountTypestringnullrequired*— Bank account type, e.g. "checking" (open string); null for card methods.
accountHolderTypestringnullrequired*— Bank account holder type, e.g. "individual" or "business" (open string); null for card methods.
routingNumberstringnullrequired*— LawPay-masked bank routing number, e.g. "******013"; null for card methods.
accountNumberstringnullrequired*— LawPay-masked bank account number, e.g. "******0003"; null for card methods.
messagesarraynullrequired*— Human-readable status/processing messages; null when none.
1 field
[]string