younifyd
Menu

financialTransactions

Search for FinancialTransaction entities.

Use it in a workflow

  1. Add a step and choose the Fluent Commerce connector.
  2. Pick the financialTransactions action (under Financial).
  3. 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.

graphql
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.

afterstring

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

beforestring

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

cardTypearray<string>

The card type used for the payment. Possible values are 'MASTERCARD', 'VISA', 'AMEX', 'DINERS'.

createdOnobject
fromstring
tostring
currencyarray<string>

Currency used for the transaction.

externalTransactionCodearray<string>

The unique transaction code or request code provided by the payment gateway

externalTransactionIdarray<string>

The unique transaction ID or request ID provided by the payment gateway

firstnumber

Returns the first n elements from the list

lastnumber

Returns the last n elements from the list

paymentMethodarray<string>

The way in which payment was made. Platform provides support for the following payment methods - 'CREDITCARD', 'PAYPAL', 'GIFTVOUCHER', 'CASH', 'AFTERPAY'. However, these can be overridden/configured per client as settings

paymentProviderNamearray<string>

The name of the payment gateway. Platform provided values are 'CYBERSOURCE', 'GIVEX', 'PAYPAL', 'BRAINTREE', 'AFTERPAY'. However, these can be overridden/configured per client as settings using 'PAYMENT.PROVIDER'

refarray<string>

The unique transaction reference provided by the Retailer to the payment gateway

statusarray<string>
totalarray<number>

The total transaction amount

typearray<string>
updatedOnobject
fromstring
tostring
workflowRefarray<string>
workflowVersionarray<number>
json
{
  "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}}.

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?