Skip to main content

Get

Retrieves a payment.

POST Payment/Get

Input

ParameterTypeRequiredDescriptionDefault
PaymentIdstringyesthe payment ID from Payment/Create

Output

ParameterTypeDescription
Idstringpayment ID
AssetCodestringasset symbol, e.g. "USDC"
BlockchainCodenumberblockchain code, e.g. "ETH"
Amountstringhow much asset to send in a string format without decimal point
Feestringhow much commission fee will be taken for this payment
RecipientAddressstringthe wallet address where to send the asset
Statusstringpayment status
Txidstringblockchain transaction hash – only if transaction is in the mempool or in a block

Status Values

ValueDescription
0new (unpaid)
10pending (see below)
100success (paid)
55canceled (used for payouts)
59expired

The pending status for incoming payments indicates that the transaction has been detected in the blockchain's mempool. This means the user has already sent it, but none of the blocks have included it yet. For payouts, the pending status means that the payment is currently being sent.

Example Input

{
"PaymentId": "aXfV6BC6DOgfilqF"
}

Example Output

{
"Id": "aXfV6BC6DOgfilqF",
"AssetCode": "usdc",
"BlockchainCode": "eth",
"Amount": "1000200",
"Fee": "10002",
"RecipientAddress": "0x386a528091a3E9c490656E708075D1c30384E3dc",
"Status": 100,
"Txid": "0x5698aa17ebd7b0074cbdccb70408abb7f83c5dc9da11c2deb7cc118a3353faff"
}