curl -X GET 'https://financial.api.e-cross.tech/fxRate/PRC' \ -H 'Authorization: Bearer YOUR_SALES_CHANNEL_TOKEN'
{ "fxRate": 5.51}
Sales Channel APIs
Get PRC FX rate
Retrieve the USD to BRL FX rate used for the PRC (Programa Remessa Conforme) authorized sales channel
curl -X GET 'https://financial.api.e-cross.tech/fxRate/PRC' \ -H 'Authorization: Bearer YOUR_SALES_CHANNEL_TOKEN'
{ "fxRate": 5.51}
This endpoint is not meant to be used directly in the e-commerce flow, nor in the product page neither in the cart/checkout page. The purpose of this endpoint is to provide the FX rate to the sales channel so it can be temporarily cached in the sales channel system. The advised cache time is 1 hour.
This endpoint uses the sales channel token authentication model, not the auth token generated with merchant credentials.The bearer token is provided by e-CROSS to the sales channel during the integration process.