Rates

Currency exchange rates

Get all exchange rates

get

Retrieves all available currency exchange rates

Authorizations
ww-api-keystringRequired
Responses
200

List of all exchange rates

application/json
get
/v1/rates
GET /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
  }
]

Get exchange rate for currency pair

get

Retrieves the exchange rate between two specified currencies

Authorizations
ww-api-keystringRequired
Query parameters
fromstring · enumRequired

Source currency code

Possible values:
tostring · enumRequired

Target currency code

Possible values:
Responses
200

Exchange rate for the currency pair

application/json
get
/v1/rates/pair
GET /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"
}

Preview currency conversion

post

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/preview
POST /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
post
/v1/rates/conversion/preview/invoice-rate
POST /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