For the complete documentation index, see llms.txt. This page is also available as Markdown.

Exchange Rates

Specifies how exchange rates are managed, stored, and applied across multi-currency transactions through API.

Post Exchange Rate Policy

post
/apis/policy-sets/v1/policy/exchange-rates

This API is used to create new or update the existing exchange rate policies.

Body
compliance_namestringRequired

Name of the policy. - Exchange Rates

unique_keystringRequired

Its. GUID. Globally unique identifier generated by the system.

format_typestringRequired

It's JSON format of data.

Responses
200

Set exchange rate Policy

application/json
compliance_idstringRequired

A system-generated compliance ID on creating or updating the policy.

errorarrayRequired

Displays information about problems that occurred while handling the request. Commonly used to report validation errors, missing or invalid parameters, or other issues related to API processing.

post/apis/policy-sets/v1/policy/exchange-rates
POST /apis/policy-sets/v1/policy/exchange-rates HTTP/1.1
Host: {realm}.{env}.rightrev.cloud/
Content-Type: application/json
Accept: */*
Content-Length: 261

{
  "compliance_name": "Exchange Rates",
  "unique_key": "guid",
  "format_type": "json",
  "compliance_spec": [
    {
      "conversion_rate": 0.9,
      "end_date": "2025-05-31",
      "from_currency": "USD",
      "rate_type": "Daily",
      "start_date": "2025-05-01",
      "to_currency": "INR",
      "guid": "a2Xfl0000002GWvEAN"
    }
  ]
}
200

Set exchange rate Policy

{
  "compliance_details": [
    {
      "error": [],
      "message": "created successfully",
      "unique_key": "a2Xfl0000002GWvEAN"
    }
  ],
  "compliance_id": "2b02cfb3-f6c5-430e-9288-1bd402acbaea",
  "error": []
}

Last updated

Was this helpful?