FX
Get FX Rates
Get exchange rate
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
Bearer authentication header of the form Bearer <token>
, where <token>
is your auth token.
Body
application/json
Response
200
application/json
OK
The response is of type object
.
Was this page helpful?
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>"
}
}