Skip to main content
GET
/
api
/
convert
Currency Converter
curl --request GET \
  --url https://sandbox.soleaspay.com/api/convert \
  --header 'Authorization: Bearer <token>'
{
  "success": true,
  "data": {
    "value": "624.28",
    "devise": "XAF"
  }
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Query Parameters

amount
number<float>
required

The amount to convert

Example:

1

from
string
required

The currency code of the amount you want to convert (ISO 4217)

Example:

"USD"

to
string

The currency code to convert the amount to (ISO 4217). If not provided, conversion to all supported currencies will be returned.

Example:

"XAF"

Response

Conversion result

success
boolean
Example:

true

data
object