Rates
Currency exchange rates
Retrieves all available currency exchange rates
Authorizations
ww-api-keystringRequired
Responses
200
List of all exchange rates
application/json
get
/v1/ratesGET /v1/rates HTTP/1.1
Host: capi.wewireafrica.com
ww-api-key: YOUR_API_KEY
Accept: */*
200
List of all exchange rates
[
{
"from": "USD",
"to": "EUR",
"bid": 1,
"ask": 1
}
]Retrieves the exchange rate between two specified currencies
Authorizations
ww-api-keystringRequired
Query parameters
fromstring · enumRequiredPossible values:
Source currency code
tostring · enumRequiredPossible values:
Target currency code
Responses
200
Exchange rate for the currency pair
application/json
400
Invalid currency codes
get
/v1/rates/pairGET /v1/rates/pair?from=NGN&to=NGN HTTP/1.1
Host: capi.wewireafrica.com
ww-api-key: YOUR_API_KEY
Accept: */*
{
"currency": "USD",
"rate": 0.85,
"targetCurrency": "EUR"
}Calculates the result of converting an amount between currencies including fees
Authorizations
ww-api-keystringRequired
Body
objectOptional
Responses
200
Conversion preview with rates and fees
application/json
post
/v1/rates/conversion/previewPOST /v1/rates/conversion/preview HTTP/1.1
Host: capi.wewireafrica.com
ww-api-key: YOUR_API_KEY
Content-Type: application/json
Accept: */*
Content-Length: 38
{
"from": "USD",
"to": "EUR",
"amount": 100
}200
Conversion preview with rates and fees
{
"convertedAmount": 85,
"rate": 0.85,
"fee": 2.5
}post
Authorizations
ww-api-keystringRequired
Body
objectOptional
Responses
201
201 response
post
/v1/rates/conversion/preview/invoice-ratePOST /v1/rates/conversion/preview/invoice-rate HTTP/1.1
Host: capi.wewireafrica.com
ww-api-key: YOUR_API_KEY
Content-Type: application/json
Accept: */*
Content-Length: 2
{}201
201 response
No content
Last updated