In this topic:

Rate Sets

Rate sets are used for storing the information on currency exchange rates, providers, and valid intervals to provide conversion rates.

To create a new rate set, specify its name, description, status, type of interval, and the details about the provider in the payload as detailed below.

POST http://example-currency.gotransverse.com/currex/2/rate-sets

Request

{
  "name": "My rate set #1",
  "description": "additional info",
  "status": "ACTIVE",
  "interval_type": "DAILY",
  "provider_type": "CUSTOM",
  "provider_name": "test"
}

Response

{
  "id": "698",
  "name": "My rate set #1",
  "description": "additional info",
  "status": "ACTIVE",
  "interval_type": "DAILY",
  "provider_type": "CUSTOM",
  "provider_name": "test",
  "provider_properties": [
    {
	 "key": "sample_key",
	 "value": "100",
	 "label": "Sample Label",
	 "data-type": "NUMBER",
	 "format": "INT32"
    }
  ]
}

Now, proceed with configuring conversion intervals.

Top