Skip to main content

Create

Creates a new payment.

POST Payment/Create​

Input​

ParameterTypeRequiredDescriptionDefault
InvoiceIdstringyesthe invoice ID from Invoice/Create–
AssetCodestringyesasset symbol, e.g. "USDC"–
BlockchainCodenumberyesblockchain code, e.g. "ETH"–
IsEvmstringyeswhether or not this payment is done via Web3–
UserAddressstringnouser's wallet address – only for Web3 paymentsnull

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 (always New here)
Txidstringblockchain transaction hash – only if transaction is in the mempool or in a block

Example Input​

{
"InvoiceId": "dWYZPB4756cDhz",
"AssetCode": "usdc",
"BlockchainCode": "eth",
"IsEvm": false,
"UserAddress": null
}

Example Output​

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