Convert currency using dynamic rates (deprecated path)
Changed onDeprecated. Use Convert currency using dynamic rates (POST /v1/currency-converter/effective) instead: same request and response, and it also accepts client tokens (ClientToken) and employee-scoped access tokens (OAuth2Assertion).
Authentication
This endpoint accepts any one of the following token types:
- Company-scoped access token (OAuth2AuthorizationCode) — obtained by a company manager through the Authorization Code flow or the Refresh Token flow. See Authentication for partners.
- Company-scoped access token (assertion) (OAuth2CompanyManagerAssertion) — obtained through the urn:ietf:params:oauth:grant-type:jwt-bearer grant for a company manager. See OAuth Assertion.
- Client credentials access token (OAuth2ClientCredentials) — obtained through the Client Credentials flow or the Refresh Token flow. See Authentication for partners.
- Customer API token (CustomerAPIToken) — generated by the customer on their Integration Settings page, with the scopes they choose there. See Authorization for customers.
Request
- Base URLhttps://gateway.remote.com
- Auth
- OAuth 2Authorization code/auth/oauth2/authorizeToken URL/auth/oauth2/token
- or OAuth 2Client credentialsToken URL/auth/oauth2/token
- or OAuth 2Client credentialsToken URL/auth/oauth2/token
- or HTTP bearer
Request body
The parameters for the currency conversion
The amount to convert in cents
The currency code to convert from
The currency code to convert to
Example request
{
"amount": 1000,
"source_currency": "USD",
"target_currency": "EUR"
}Response
Success
The response from the currency converter
Example response
{
"data": {
"conversion_data": {
"exchange_rate": 0.85,
"source_amount": 1000,
"source_currency": {
"code": "CZK",
"name": "Czech Koruna",
"symbol": "Kč"
},
"target_amount": 850,
"target_currency": {
"code": "CZK",
"name": "Czech Koruna",
"symbol": "Kč"
}
}
}
}Changes
- info
the
messageresponse's property patternNot Foundwas removed for the status
- info
- info
api operation id
post_v1_currency-converter_effective (2)removed and replaced withpost_v1_currency-converter - info
the endpoint scheme security
ClientTokenwas removed from the API
2 more changes in this revision
- info