PrimeiroPay
Search…
Pulling our FX Rates
Via API
The following command authenticates you with your API credentials that you use for payment processing and returns the FX Rate upon successful authentication
Command-line example with curl
1
https://reports.primeiropay.com/fx?username=XXXXXXX&merchantId=XXXXXX&password=XXXXX
Copied!
if the authentication fails, you will receive:
1
{
2
"reason" : "INVALID_USER_AUTHENTICATION",
3
"message" : "Failed to authenticate principal, user and/or password invalid"
4
}
Copied!
If the authentication is successful you will be returned with the current valid FX Rates:
Please note that only your settlement currency pair is being returned. If you wish to change your settlement currency, please contact your Account Manager.
1
{
2
"rate" : [ {
3
"currency_pair" : "BRLUSD",
4
"rate" : "3.795674",
5
"valid_until" : "2015-01-15 15:00:00.0"
6
} ]
7
}
Copied!
FX Rates.rar
464B
Binary
Pulling FX Rates Json Request
Copy link