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

X-Api-User
string
header
required
X-Api-Key
string
header
required
X-User-Version
string
header
required

Body

application/json
fromCurrency
enum<string>
required

Base currency to convert.

Available options:
NGN,
USD
toCurrency
enum<string>
required

Currency being converted to.

Available options:
NGN,
USD
amount
string

Amount to convert.

Response

200 - application/json
successful operation
success
boolean
message
string
data
object