Skip to main content
GET
Retrieve a payment

Authorizations

X-Suby-Api-Key
string
header
required

Secret API key. sk_live_… (production) or sk_sandbox_… (sandbox).

Path Parameters

id
string
required
Example:

"pay_abc123"

Response

Payment details · adds deposit to what the list returns, when a crypto deposit is being watched

success
boolean
required
Example:

true

data
object
required

Public payment shape (PaymentPublic).

The response is scoped to its own rail. rail says which: on crypto the card-only fields (declineCode, declineCategory, declineAdvice, declineNetworkCode, threeDSecureResult) are ABSENT, and on card the chain fields (tokenAmount, tokenFeeAmount, quoteFiatAmountCents, quoteFiatCurrency, cryptoSettlementMode, settlementChainId, settlementAsset, settlementRecipient, depositAddress, settlementTxHash, lifiTxHash, lifiSubstatus) are. Absent, not null · a field that could only ever read null on your rail is not "unknown yet", and branching on it is branching on a case that cannot happen.

message
string