Transfer
Convert from one currency to another
KYC
Transfer
discount
Transfer
Convert from one currency to another
Convert from one currency to another
POST
/
convert
curl --request POST \
--url https://staging-api.getpartna.com/v4/convert \
--header 'Content-Type: application/json' \
--header 'x-api-key: <api-key>' \
--header 'x-api-user: <api-key>' \
--data '{
"accountName": "convertcurrencyuser",
"fromAmount": 1,
"fromCurrency": "ETH",
"toCurrency": "USD",
"transactionReference": "bbcdef2234567890abcdef1234568880"
}'
{
"data": {
"accountName": "convertcurrencyuser",
"fromAmount": 2,
"fromCurrency": "ETH",
"rate": 2640,
"toAmount": 5280,
"toCurrency": "USD",
"transactionReference": "bbcdef2234567890abcdef1234568880"
},
"message": "success"
}
Body
application/json
Response
200
application/json
convert success
The response is of type object
.
curl --request POST \
--url https://staging-api.getpartna.com/v4/convert \
--header 'Content-Type: application/json' \
--header 'x-api-key: <api-key>' \
--header 'x-api-user: <api-key>' \
--data '{
"accountName": "convertcurrencyuser",
"fromAmount": 1,
"fromCurrency": "ETH",
"toCurrency": "USD",
"transactionReference": "bbcdef2234567890abcdef1234568880"
}'
{
"data": {
"accountName": "convertcurrencyuser",
"fromAmount": 2,
"fromCurrency": "ETH",
"rate": 2640,
"toAmount": 5280,
"toCurrency": "USD",
"transactionReference": "bbcdef2234567890abcdef1234568880"
},
"message": "success"
}