Create
Creates a new payment.
POST Payment/Create
Input
| Parameter | Type | Required | Description | Default |
|---|---|---|---|---|
| InvoiceId | string | yes | the invoice ID from Invoice/Create | – |
| AssetCode | string | yes | asset symbol, e.g. "USDC" | – |
| BlockchainCode | number | yes | blockchain code, e.g. "ETH" | – |
| IsEvm | string | yes | whether or not this payment is done via Web3 | – |
| UserAddress | string | no | user's wallet address – only for Web3 payments | null |
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 (always New here) |
| Txid | string | blockchain 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
}