This feature is in Limited Availability. If you wish to have access to the feature, submit a request at Zuora Global Support.
This reference describes how to query custom foreign exchange rates from Zuora. You can use this API method to query exchange rates only if you use a custom exchange rate provider and upload rates with the Import Foreign Exchange Rates mass action.
Accept-Encoding | string Include the If specified, Zuora automatically compresses responses that contain over 1000 bytes of data, and the response contains a |
Content-Encoding | string Include the |
Authorization | string The value is in the |
Zuora-Track-Id | string <= 64 characters A custom identifier for tracing the API call. If you set a value for this header, Zuora returns the same value in the response headers. This header enables you to associate your system process identifiers with Zuora API calls, to assist with troubleshooting in the event of an issue. The value of this field must use the US-ASCII character set and must not include any of the following characters: colon ( |
Zuora-Entity-Ids | string An entity ID. If you have Zuora Multi-entity enabled and the OAuth token is valid for more than one entity, you must use this header to specify which entity to perform the operation in. If the OAuth token is only valid for a single entity, or you do not have Zuora Multi-entity enabled, you do not need to set this header. |
curl -X GET -H "Authorization: Bearer 6d151216ef504f65b8ff6e9e9e8356d3" -H "Content-Type: application/json" "https://rest.sandbox.eu.zuora.com/v1/custom-exchange-rates/EUR?startDate=2019-04-28&endDate=2019-04-30"
{- "success": true,
- "inverse": false,
- "rates": {
- "2019-04-28": {
- "providerExchangeRateDate": "2019-04-28",
- "GBP": 1.135239621,
- "USD": 0.889028445
}, - "2019-04-29": {
- "providerExchangeRateDate": "2019-04-29",
- "GBP": 1.134623962,
- "USD": 0.892140244
}, - "2019-04-30": {
- "providerExchangeRateDate": "2019-04-30",
- "GBP": 1.134589832,
- "USD": 0.892243287
}
}
}