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"
}

Authorizations

x-api-key
string
header
required
x-api-user
string
header
required

Body

application/json
accountName
string
required

valid account name

fromAmount
number
required

from amount

fromCurrency
enum<string>
required

valid from currency

Available options:
USD,
NGN,
GHS,
ETH,
BTC,
BNB
toCurrency
enum<string>
required

valid to currency

Available options:
USD,
NGN,
GHS,
ETH,
BTC,
BNB
transactionReference
string

valid transaction reference in hexadecimal

Response

200
application/json
convert success
data
object
message
string