younifyd
Menu

paymentTransactions

Search for PaymentTransaction entities.

Use it in a workflow

  1. Add a step and choose the Fluent Commerce connector.
  2. Pick the paymentTransactions action (under Payment).
  3. Fill in the fields below, then reference the result from later steps as {{paymenttransactions.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 PaymentTransactions($after: String, $authorizationKey: [String], $before: String, $cardType: [String], $createdOn: DateRange, $currency: CurrencyLinkInput, $first: Int, $last: Int, $paymentMethod: [String!], $ref: [String!], $status: [String!], $type: [String!], $updatedOn: DateRange, $workflow: WorkflowLinkInput, $workflowRef: [String!], $workflowVersion: [Int!]) {
  paymentTransactions(
    after: $after
    authorizationKey: $authorizationKey
    before: $before
    cardType: $cardType
    createdOn: $createdOn
    currency: $currency
    first: $first
    last: $last
    paymentMethod: $paymentMethod
    ref: $ref
    status: $status
    type: $type
    updatedOn: $updatedOn
    workflow: $workflow
    workflowRef: $workflowRef
    workflowVersion: $workflowVersion
  ) {
    edges {
      cursor
      node {
        amount
        attributes
        authorizationKey
        cardType
        createdOn
        currency
        id
        payment
        paymentMethod
        paymentServiceProvider
        ref
        status
        type
        updatedOn
        workflow
        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

authorizationKeyarray<string>

The key received when executing a pre authorisation transaction. Typically used to perform a subsequent payment capture.

beforestring

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

cardTypearray<string>

Card type. Some sample values are 'MASTERCARD', 'VISA', 'AMEX', 'DINERS'

createdOnobject
fromstring
tostring
currencyobject
alphabeticCodestringrequired
firstnumber

Returns the first n elements from the list

lastnumber

Returns the last n elements from the list

paymentMethodarray<string>

Payment method.

refarray<string>

External reference of the object. Must be unique.

statusarray<string>

Status of the `PaymentTransaction`.

typearray<string>

Type of the `PaymentTransaction`, typically used by the Orchestration Engine to determine the workflow that should be applied. Common types that are used are: CAPTURE REFUND, AUTHORIZATION

updatedOnobject
fromstring
tostring
workflowobject
refstringrequired
versionnumberrequired
workflowRefarray<string>

DEPRECATED, please use the field `workflow` instead - The reference of the workflow.

workflowVersionarray<number>

DEPRECATED, please use the field `workflow` instead - The version of the workflow.

json
{
  "after": "string",
  "authorizationKey": [
    "string"
  ],
  "before": "string",
  "cardType": [
    "string"
  ],
  "createdOn": {
    "from": "string",
    "to": "string"
  },
  "currency": {
    "alphabeticCode": "string"
  },
  "first": 0,
  "last": 0,
  "paymentMethod": [
    "string"
  ],
  "ref": [
    "string"
  ],
  "status": [
    "string"
  ],
  "type": [
    "string"
  ]
}

Response

Read the result with {{paymenttransactions.response.data.data.paymentTransactions}}. If the API returns errors, the step fails and they are at {{paymenttransactions.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.