Get
Retrieves a payment.
POST Payment/Get
Input
Parameter | Type | Required | Description | Default |
---|---|---|---|---|
PaymentId | string | yes | the payment ID from Payment/Create | – |
Output
Parameter | Type | Description |
---|---|---|
Id | string | payment ID |
AssetCode | string | asset symbol, e.g. "USDC" |
BlockchainCode | number | blockchain code, e.g. "ETH" |
Amount | string | how much asset to send in a string format without decimal point |
Fee | string | how much commission fee will be taken for this payment |
RecipientAddress | string | the wallet address where to send the asset |
Status | string | payment status |
Txid | string | blockchain transaction hash – only if transaction is in the mempool or in a block |
Status Values
Value | Description |
---|---|
0 | new (unpaid) |
10 | pending (see below) |
100 | success (paid) |
55 | canceled (used for payouts) |
59 | expired |
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"
}