TRADOM PaymentDocs

API objects

Fields on PaymentIntent, CryptoQuote, Refund, Event, and WebhookEndpoint objects

The SDK converts REST API snake_case fields to TypeScript-friendly camelCase.

ObjectExample IDPurpose
PaymentIntentpi_…Amount, status, deposit instructions, refunds, and internal transactions for one payment
CryptoQuotecq_…Preview of the stablecoin quantity and reference rate
RefundRF-…Refund ledger entry attached to a PaymentIntent
Eventevt_…PaymentIntent completion, cancellation, or refund event
WebhookEndpointNumeric IDMerchant endpoint that receives webhooks

PaymentIntent

SDK fieldDescription
amountCharge amount in the fiat currency's major unit
amountReceivedRecorded amount received
amountRefundedAmount requested for refund
currencyLowercase fiat currency code, such as jpy or usd
statusrequires_payment_method / requires_action / processing / succeeded / canceled / failed
clientSecretBrowser authorization for a hosted session; omitted from webhook snapshots
nextActionDeposit instructions while in requires_action; otherwise null
transactionsTransaction hashes (explorerUrl is always null in the current implementation)
refunds.dataRefunds attached to this payment
metadataArbitrary merchant data
livemodeWhether the object was created with a live key
settlementInternal transfer ID, channel, and transaction hash; not a settlement-complete status

amount uses a fiat currency's major unit. Token quantities such as nextAction.cryptoDeposit.amount are strings to preserve decimal precision.

Deposit instructions

Key fields in nextAction.cryptoDeposit:

FieldDescription
stablecoin / networkSelected payment rail
chainId / tokenContractChain information required by the wallet
depositAddressDestination address
amountToken quantity to send, represented as a string
eip681UriURI for QR codes and wallet deep links
expiresAtDeposit deadline as Unix seconds
refreshRemainingInformational only (always 2 in the current implementation; re-confirm is not limited)
modesimulate / testnet / live
faucetsTestnet faucet links

CryptoQuote

A cryptoQuote is a read-only preview. It is valid for about 15 minutes, but confirm does not lock the cq_… quote and recalculates the token amount. Display nextAction.cryptoDeposit.amount from the confirmation response as the final transfer amount.

Refund

refunds.data on a PaymentIntent contains its refund ledger entries. status: "requested" means a refund has been requested, not that funds have already been returned.

Event

SDK fieldMeaning
idevt_…; the same value as the Tradom-Event-Id webhook header
objectAlways "event"
typepayment_intent.succeeded / payment_intent.canceled / payment_intent.refunded
createdTime of occurrence (Unix seconds); may be null
data.objectPaymentIntent snapshot at the time of the event
livemodeWhether the event originated from a live key

data.object contains a PaymentIntent snapshot from the time the event occurred. It excludes clientSecret. See Receive payment events for supported event types.

WebhookEndpoint

SDK fieldMeaning
idNumeric ID
urlDelivery URL (https / http only; private and loopback addresses are rejected with url_invalid)
enabledWhether the endpoint is active (there is currently no API to change it)
secretwhsec_…; returned only in the create response, never by list

On this page