Menu
currencies
Search for Currency entities.
Use it in a workflow
- Add a step and choose the Fluent Commerce connector.
- Pick the currencies action (under Currencies).
- 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.
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.
{
"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}}.
Need more? See the Fluent Commerce guide for connection setup and behaviour shared by every action.
Was this page helpful?