Payable amount
The RKFL provides an API to return the payable amount for the selected cryptocurrency. The cryptocurrency market is volatile and changes frequently. The RKFL backend system calculates the payable amount based on the current cryptocurrency rate.
Merchant websites should call this API whenever a shopper switches between cryptocurrencies. This API also returns a unit rate of the cryptocurrency.
The below screenshot shows the payable amount in the bold text of "You Pay" and the crypto conversion rate just below.

GET
/users/payable-amounts?invoice={uuid}&cc={cryptocurrency}
The value of "invoice", returns as "uuid" in the "POST /invoices"
The value of "cryptocurrency" could be "btc/eth/ltc/xrp/etc"
Headers
Authorization*
String
"Bearer" + shopper access token
{
"ok": true,
"result": {
"order_amount": 2,
"order_currency": "2.00",
"payable_amount": 31.47376371,
"payable_currency": "DOGE",
"conversion_rate_per_unit": "0.06507"
}
}
Last updated
Was this helpful?