Convert funds
Collect & Onramp
- GETRetrieve merchant account balance
- GETRetrieve merchant record
- PATCHUpdate merchant record
- POSTMake a mock payment
- GETRetrieves conversion rates
- GETRetrieve merchant transaction summary
- POSTCreate a new voucher payment
- GETRetrieve voucher record
- GETGet multiple records
- PATCHRedeem existing unused voucher
- PATCHRedeem and withdraw
- GETRetrieves conversion rates
- GETRetrieves minimum and maximum voucher amounts
Offramp
- POSTCreate api key
- POSTCreate payment
- GETGet a single payment
- GETGet a transaction
- GETGet current rates
- GETGet minimum amount allowed
- GETGet supported currencies
- GETGet supported cryptocurrencies and network
- GETResolve overpaid Transaction
- GETRetrieve subscribed webhook url
- GETRetrieve user's transaction records
- GETRetrieve user's transaction summary
- GETRetrieves a user's crypto wallet addresses
- PUTSubscribe to webhook
Payout
- GETGet current rates
- POSTWithdraw balance
- GETGet a transaction
- POSTResolve bank account
- GETGet minimum amount allowed
- GETRetrieve a list of supported banks
- GETRetrieve subscribed webhook url
- GETRetrieve user's account balance
- GETRetrieve user's transaction records
- GETRetrieve user's transaction summary
- PUTSubscribe to webhook
- POSTTransfer funds
- POSTWallet transfer
Convert funds
Convert user’s balance from one currency to another (fiat-to-fiat)
POST
/
balance
/
convert
curl --request POST \
--url https://staging-biz.coinprofile.co/v2/balance/convert \
--header 'Content-Type: application/json' \
--header 'X-Api-Key: <api-key>' \
--header 'X-Api-User: <api-key>' \
--header 'X-User-Version: <api-key>' \
--data '{
"fromCurrency": "NGN",
"toCurrency": "NGN",
"amount": "<string>"
}'
{
"success": true,
"message": "<string>",
"data": {
"transferDetail": {
"transactionId": "<string>",
"sender": "<string>",
"status": "fullfiled",
"date": "2023-12-25",
"toCurrency": "NGN",
"fromCurrency": "NGN",
"receiveAmount": "<string>",
"amount": "<string>",
"username": "<string>",
"senderPrevbalance": "<string>"
}
}
}
Authorizations
Body
application/json
Base currency to convert.
Available options:
NGN
, USD
Currency being converted to.
Available options:
NGN
, USD
Amount to convert.
Response
200 - application/json
successful operation
Available options:
fullfiled
, processing
, failed
Available options:
NGN
, USD
Available options:
NGN
, USD
curl --request POST \
--url https://staging-biz.coinprofile.co/v2/balance/convert \
--header 'Content-Type: application/json' \
--header 'X-Api-Key: <api-key>' \
--header 'X-Api-User: <api-key>' \
--header 'X-User-Version: <api-key>' \
--data '{
"fromCurrency": "NGN",
"toCurrency": "NGN",
"amount": "<string>"
}'
{
"success": true,
"message": "<string>",
"data": {
"transferDetail": {
"transactionId": "<string>",
"sender": "<string>",
"status": "fullfiled",
"date": "2023-12-25",
"toCurrency": "NGN",
"fromCurrency": "NGN",
"receiveAmount": "<string>",
"amount": "<string>",
"username": "<string>",
"senderPrevbalance": "<string>"
}
}
}