cURL
curl --request POST \ --url https://payvra.com/api/v1/merchants/invoice/create \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --data '{ "amount": 1, "amountCurrency": "USD", "acceptedCoins": [ "<string>" ], "underPaidCover": 25, "feePaidByPayer": true, "lifeTime": 1440, "returnUrl": "<string>" }'
{ "id": "<string>", "merchantId": "<string>", "paymentUrl": "<string>", "status": "PENDING", "address": "<string>", "txHash": "<string>", "amount": 123, "amountCurrency": "<string>", "rate": 123, "payAmount": 123, "cryptoCurrency": { "symbol": "<string>" }, "network": { "network": "<string>" }, "feePaidByPayer": true, "underPaidCover": 123, "isWhiteLabel": true, "returnUrl": "<string>", "expiresAt": "2023-11-07T05:31:56Z", "createdAt": "2023-11-07T05:31:56Z" }
Creates a new payment invoice for the authenticated merchant
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Bearer <token>
<token>
Payment invoice created successfully
The response is of type object.
object