younifyd
Menu

Get directory/currency

Get directory/currency

GET/V1/directory/currency

Use it in a workflow

  1. Add a step and choose the Adobe Commerce connector.
  2. Pick the Get directory/currency action (under Store).
  3. Fill in the fields below, then reference the result from later steps as {{getDirectoryCurrency.response.data}}.

Fields

baseUrlstring

The API host this action calls. Override to point at a different environment.

Default "/rest/default"

forwardAllHeadersboolean

If enabled, all headers from the incoming request will be forwarded. Additional headers below will override forwarded ones.

Default false

headerskeyvalue

Extra HTTP headers to include, beyond what this action already declares. These override forwarded or declared headers with the same name.

queryParamskeyvalue

Extra URL query parameters to include, beyond what this action already declares. These override declared query parameters with the same name.

Response

Returns 200 with an object. Read it in later steps with {{getDirectoryCurrency.response.data.<field>}}.

base_currency_codestring

The base currency code for the store.

base_currency_symbolstring

The currency symbol of the base currency for the store.

default_display_currency_codestring

The default display currency code for the store.

default_display_currency_symbolstring

The currency symbol of the default display currency for the store.

available_currency_codesarray<string>

The list of allowed currency codes for the store.

exchange_ratesarray<object>

The list of exchange rate information for the store.

currency_tostringrequired

The currency code associated with the exchange rate.

ratenumberrequired

The exchange rate for the associated currency and the store's base currency.

extension_attributesobject

ExtensionInterface class for @see \Magento\Directory\Api\Data\ExchangeRateInterface

extension_attributesobject

ExtensionInterface class for @see \Magento\Directory\Api\Data\CurrencyInformationInterface

json
{
  "base_currency_code": "string",
  "base_currency_symbol": "string",
  "default_display_currency_code": "string",
  "default_display_currency_symbol": "string",
  "available_currency_codes": [
    "string"
  ],
  "exchange_rates": [
    {
      "currency_to": "string",
      "rate": 0,
      "extension_attributes": {}
    }
  ],
  "extension_attributes": {}
}

Need more? See the Adobe Commerce guide for connection setup and behaviour shared by every action.