UiPath Documentation
industry-department-solutions
latest
false
Supply Chain & Retail Solutions API guide

Currency Conversion

currency_conversion API resource storing exchange rates between currency pairs for cross-region price normalization in the Merchandising solution.

Overview​

The currency_conversion resource stores exchange rates between currency pairs. The Merchandising solution uses these rates to normalise prices, sales values, and stock values to a common reporting currency when a tenant operates across multiple regions.

Resource Endpoint​

/api/v2/ingest/object/{prefix}CURRENCY_CONVERSION{suffix}
/api/v2/ingest/object/{prefix}CURRENCY_CONVERSION{suffix}

Supported Methods​

MethodReturn TypeDescription
POSTResponseIngest (create/update) currency-conversion records via UPSERT operation

Request Headers​

HeaderRequiredDescription
AuthorizationYesYour Personal Access Token (PAT) from platform.peak.ai
Content-TypeYesMust be application/json

Properties​

Primary Keys​

  • from_currency (string) - ISO currency code being converted from
  • to_currency (string) - ISO currency code being converted to
  • created_at (timestamp) - Timestamp when the rate record was created — part of the PK so successive rate updates for the same pair are distinct rows

Attributes​

About Required + Nullable: every attribute key must appear in each payload (Required: Yes). Nullable: Yes means the value can be null when you don't have data; Nullable: No means a non-null value is required. See Schema definition structure for the underlying rules.

AttributeData TypeRequiredNullableDescription
from_currencystringYesNoISO currency code the exchange rate is converting from (e.g., USD). Primary Key.
to_currencystringYesNoISO currency code the exchange rate is converting to (e.g., GBP). Primary Key.
exchange_ratefloatYesNoExchange rate to apply — 1 from_currency = exchange_rate to_currency.
updated_attimestampYesYesTimestamp when the record was last updated.
created_attimestampYesNoTimestamp when the rate was recorded (Primary Key).

Relationships​

Outbound References​

None

Inbound References​

None

JSON Representation​

{
  "solutionName": "MP_OOTB",
  "data": [
    {
      "from_currency": "USD",
      "to_currency": "GBP",
      "exchange_rate": 0.79,
      "updated_at": "2025-01-28T10:00:00Z",
      "created_at": "2025-01-28T10:00:00Z"
    }
  ],
  "operationType": "UPSERT"
}
{
  "solutionName": "MP_OOTB",
  "data": [
    {
      "from_currency": "USD",
      "to_currency": "GBP",
      "exchange_rate": 0.79,
      "updated_at": "2025-01-28T10:00:00Z",
      "created_at": "2025-01-28T10:00:00Z"
    }
  ],
  "operationType": "UPSERT"
}

Example Request​

curl -X POST \
  'https://ingestion.peak.ai/api/v2/objects/MP_CURRENCY_CONVERSION_OOTB' \
  -H 'Authorization: YOUR_API_KEY' \
  -H 'Content-Type: application/json' \
  -d '{
    "solutionName": "MP_OOTB",
    "data": [
      {
        "from_currency": "USD",
        "to_currency": "GBP",
        "exchange_rate": 0.79,
        "updated_at": "2025-01-28T10:00:00Z",
        "created_at": "2025-01-28T10:00:00Z"
      }
    ],
    "operationType": "UPSERT"
  }'
curl -X POST \
  'https://ingestion.peak.ai/api/v2/objects/MP_CURRENCY_CONVERSION_OOTB' \
  -H 'Authorization: YOUR_API_KEY' \
  -H 'Content-Type: application/json' \
  -d '{
    "solutionName": "MP_OOTB",
    "data": [
      {
        "from_currency": "USD",
        "to_currency": "GBP",
        "exchange_rate": 0.79,
        "updated_at": "2025-01-28T10:00:00Z",
        "created_at": "2025-01-28T10:00:00Z"
      }
    ],
    "operationType": "UPSERT"
  }'

Important Notes​

  • Direction matters: a rate is one-way — USD → GBP and GBP → USD are separate rows. Send both directions if your downstream needs to convert both ways.
  • Historical rates: created_at is part of the primary key so you can ingest a new rate for the same pair at any time without overwriting the old rate; downstream picks the latest by created_at.
  • Currency codes: use 3-letter ISO 4217 codes (e.g., USD, GBP, EUR) for both from_currency and to_currency. The same code should be used in the location resource's currency field.
  • Custom Attributes: Additional custom attributes can be added using the /CURRENCY_CONVERSION/add-attribute endpoint.
  • Data Validation: All attributes are validated according to their defined data types.
  • location - Location's currency comes from this code set
  • sale - Sales values that may need conversion to a common reporting currency
  • product_pricing_daily - Prices that may need conversion to a common reporting currency

Was this page helpful?

Connect

Need help? Support(opens in new window)

Want to learn? UiPath Academy(opens in new window)

Have questions? UiPath Forum(opens in new window)

Stay updated