POST
/
fx
/
rate
curl -X POST https://api.swervpay.co/api/v1/fx/rate \
  -H "Authorization: Bearer <TOKEN>" \
  -H "Content-Type: application/json" \
  -d '{
    "from": "NGN",
    "to": "USD",
    "amount": 1
  }'
{
  "from": {
    "amount": 123,
    "currency": "<string>"
  },
  "rate": 123,
  "to": {
    "amount": 123,
    "currency": "<string>"
  }
}
curl -X POST https://api.swervpay.co/api/v1/fx/rate \
  -H "Authorization: Bearer <TOKEN>" \
  -H "Content-Type: application/json" \
  -d '{
    "from": "NGN",
    "to": "USD",
    "amount": 1
  }'

Authorizations

Authorization
string
headerrequired

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

Body

application/json
amount
number
from
string
to
string

Response

200 - application/json
from
object
rate
number
to
object