cURL
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>" } } }
Convert user’s balance from one currency to another (fiat-to-fiat)
Base currency to convert.
NGN
USD
Currency being converted to.
Amount to convert.
successful operation
Show child attributes