Menu
financialTransactions
Search for FinancialTransaction entities.
Use it in a workflow
- Add a step and choose the Fluent Commerce connector.
- Pick the financialTransactions action (under Financial).
- Fill in the fields below, then reference the result from later steps as
{{financialtransactions.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 FinancialTransactions($after: String, $before: String, $cardType: [String], $createdOn: DateRange, $currency: [String!], $externalTransactionCode: [String], $externalTransactionId: [String], $first: Int, $last: Int, $paymentMethod: [String], $paymentProviderName: [String], $ref: [String], $status: [String], $total: [Float!], $type: [String!], $updatedOn: DateRange, $workflowRef: [String!], $workflowVersion: [Int!]) {
financialTransactions(
after: $after
before: $before
cardType: $cardType
createdOn: $createdOn
currency: $currency
externalTransactionCode: $externalTransactionCode
externalTransactionId: $externalTransactionId
first: $first
last: $last
paymentMethod: $paymentMethod
paymentProviderName: $paymentProviderName
ref: $ref
status: $status
total: $total
type: $type
updatedOn: $updatedOn
workflowRef: $workflowRef
workflowVersion: $workflowVersion
) {
edges {
cursor
node {
cardType
createdOn
currency
externalTransactionCode
externalTransactionId
id
order
paymentMethod
paymentProviderName
ref
status
total
type
updatedOn
workflowRef
workflowVersion
}
}
pageInfo {
hasNextPage
hasPreviousPage
}
}
}
Variables
Pass these as a JSON object in the step's Variables field.
{
"after": "string",
"before": "string",
"cardType": [
"string"
],
"createdOn": {
"from": "string",
"to": "string"
},
"currency": [
"string"
],
"externalTransactionCode": [
"string"
],
"externalTransactionId": [
"string"
],
"first": 0,
"last": 0,
"paymentMethod": [
"string"
],
"paymentProviderName": [
"string"
],
"ref": [
"string"
]
}
Response
Read the result with {{financialtransactions.response.data.data.financialTransactions}}. If the API returns errors, the step fails and they are at {{financialtransactions.response.data.errors}}.
Need more? See the Fluent Commerce guide for connection setup and behaviour shared by every action.
Was this page helpful?