younifyd
Menu

currencies

Search for Currency entities.

Use it in a workflow

  1. Add a step and choose the Fluent Commerce connector.
  2. Pick the currencies action (under Currencies).
  3. Fill in the fields below, then reference the result from later steps as {{currencies.response.data}}.

Query

This is the query the action sends by default. Edit it in the step's Query field to change which fields come back.

graphql
query Currencies($after: String, $alphabeticCode: [String], $before: String, $first: Int, $isISO4217: [Boolean], $last: Int, $minorUnits: [Int], $name: [String], $numericCode: [String]) {
  currencies(
    after: $after
    alphabeticCode: $alphabeticCode
    before: $before
    first: $first
    isISO4217: $isISO4217
    last: $last
    minorUnits: $minorUnits
    name: $name
    numericCode: $numericCode
  ) {
    edges {
      cursor
      node {
        alphabeticCode
        id
        isISO4217
        minorUnits
        name
        numericCode
      }
    }
    pageInfo {
      hasNextPage
      hasPreviousPage
    }
  }
}

Variables

Pass these as a JSON object in the step's Variables field.

afterstring

Returns the elements in the list that come after the specified global ID

alphabeticCodearray<string>

External reference to the `Currency`. Must be unique. For the standard currency types, this field is the three-letters-code used internationally (ISO-4217). eg: AUD, EUR, USD.

beforestring

Returns the elements in the list that come before the specified global ID

firstnumber

Returns the first n elements from the list

isISO4217array<boolean>

Currencies which are defined as part of the ISO-4217 standard cannot be deleted or modified.

lastnumber

Returns the last n elements from the list

minorUnitsarray<number>

The number of minor units that make up a major unit of the `Currency`

namearray<string>

The name of the `Currency`.

numericCodearray<string>

The numeric code of the `Currency`.

json
{
  "after": "string",
  "alphabeticCode": [
    "string"
  ],
  "before": "string",
  "first": 0,
  "isISO4217": [
    false
  ],
  "last": 0,
  "minorUnits": [
    0
  ],
  "name": [
    "string"
  ],
  "numericCode": [
    "string"
  ]
}

Response

Read the result with {{currencies.response.data.data.currencies}}. If the API returns errors, the step fails and they are at {{currencies.response.data.errors}}.

edgesarray<object>
cursorobject
nodeobject
pageInfoobject
hasNextPageboolean
hasPreviousPageboolean

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

Was this page helpful?