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