GraphQL output types for Messages that represent a change or an action performed on a Payment or Payment Method.

Each type on this page implements MessagePayload and is returned in the payload field of a Message. For when each Message is generated, see Payment Messages.

Payment Messages

PaymentCreated

Generated after a successful Create Payment request.
payment​
Payment that was created.
type​
String​

PaymentInteractionAdded

Generated after a successful Add InterfaceInteraction update action.
interaction​
The interface interaction that was added to the Payment.
type​
String​

PaymentTransactionAdded

Generated after a successful Add Transaction update action.
transaction​
Transaction that was added to the Payment.
type​
String​

Transaction

Represents a financial transaction typically created as a result of a notification from the payment service.

id​
String​

Unique identifier of the Transaction.

timestamp​

Date and time (UTC) the Transaction took place.

type​
Type of the Transaction. For example, Authorization.
Can be Authorization, CancelAuthorization, Charge, Chargeback, or Refund​
amount​

Money value of the Transaction.

interactionId​
String​
Identifier used by the interface that manages the Transaction (usually the PSP). If a matching interaction was logged in the interfaceInteractions array, the corresponding interaction can be found with this ID.
state​

State of the Transaction.

Can be Failure, Initial, Pending, or Success​
custom​

Custom Fields defined for the Transaction.

interfaceId​
String​

Identifier used by the payment service that processes the Payment (for example, a PSP) in the current transaction.

TransactionType

Authorization
CancelAuthorization
Charge
Chargeback
Refund

TransactionState

Failure
Initial
Pending
Success

PaymentTransactionStateChanged

Generated after a successful Change TransactionState update action.
transactionId​
String​
Unique identifier for the Transaction for which the Transaction State changed.
state​
Can be Failure, Initial, Pending, or Success​
type​
String​

TransactionState

Failure
Initial
Pending
Success

PaymentTransactionInterfaceIdSet

Generated after a successful Set Transaction InterfaceId update action.
transactionId​
String​
Unique identifier of the Transaction.
newInterfaceId​
String​
Identifier used by the payment service that processes the Payment (for example, a PSP) after Set Transaction InterfaceId update action.
oldInterfaceId​
String​
Identifier used by the payment service that processes the Payment (for example, a PSP) before the Set Transaction InterfaceId update action.
type​
String​

PaymentStatusStateTransition

Generated after a successful Transition State update action.
force​
Boolean​
Whether State transition validations were turned off during the Change Transaction State update action.
state​
State of the Payment after the Transition State update action.
stateRef​
State of the Payment after the Transition State update action.
type​
String​

PaymentStatusInterfaceCodeSet

Generated after a successful Set StatusInterfaceCode update action.
paymentId​
String​
Unique identifier for the Payment for which the Set StatusInterfaceCode update action was applied.
interfaceCode​
String​
The interfaceCode that was set during the Set StatusInterfaceCode update action.
type​
String​

PaymentInterfaceIdSet

Generated after a successful Set InterfaceId update action.
interfaceId​
String​
Interface ID of the Payment after the Set InterfaceId update action.
oldInterfaceId​
String​
Interface ID of the Payment before the Set InterfaceId update action.
type​
String​

PaymentMethodInfoInterfaceSet

Generated after a successful Set MethodInfo Interface update action.
interface​
String​
Payment interface of the Payment Method after the Set MethodInfo Interface update action.
oldInterface​
String​
Payment interface of the Payment Method before the Set MethodInfo Interface update action.
type​
String​

PaymentMethodInfoMethodSet

Generated after a successful Set MethodInfo Method update action.
method​
String​
Payment Method after the Set MethodInfo Method update action.
oldMethod​
String​
Payment Method before the Set MethodInfo Method update action.
type​
String​

PaymentMethodInfoNameSet

Generated after a successful Set MethodInfo Name update action.
nameAllLocales​
Array of LocalizedString​
Name of the Payment Method after the Set MethodInfo Name update action.
oldNameAllLocales​
Array of LocalizedString​
Name of the Payment Method before the Set MethodInfo Name update action.
name​
String​
Name of the Payment Method after the Set MethodInfo Name update action.
oldName​
String​
Name of the Payment Method before the Set MethodInfo Name update action.
type​
String​

PaymentMethodInfoTokenSet

Generated after a successful Set MethodInfo Token update action.
token​
Token of the Payment Method after the Set MethodInfo Token update action.
oldToken​
Token of the Payment Method before the Set MethodInfo Token update action.
type​
String​

PaymentMethodToken

value​
String​

Tokenized representation of the Payment Method.

It is displayed in the following instances:
  • in the payload of an API Extension for Payments and PaymentMethods
  • when querying Payments and PaymentMethods
It is masked in the following instances:
  • in the payload of Payment and PaymentMethod messages
  • when querying MyPayments
  • in referenced Payments and PaymentMethods embedded through Reference Expansion

PaymentMethodInfoInterfaceAccountSet

Generated after a successful Set MethodInfo InterfaceAccount update action on Payments and Set MethodInfo InterfaceAccount update action on My Payments.
interfaceAccount​
String​
Interface account of the Payment Method after the Set MethodInfo InterfaceAccount update action.
oldInterfaceAccount​
String​
Interface account of the Payment Method before the Set MethodInfo InterfaceAccount update action.
type​
String​

PaymentMethodInfoCustomTypeSet

Generated after adding Custom Fields to a PaymentMethodInfo using the Set MethodInfo Custom Type update action on Payments and the Set MethodInfo Custom Type update action on My Payments.
customFields​

The Custom Fields that were set.

oldTypeId​
String​
id of the previous Type. Absent if there was no previous Custom Type present.
type​
String​

PaymentMethodInfoCustomTypeRemoved

Generated after removing Custom Fields from a PaymentMethodInfo using the Set MethodInfo Custom Type update action on Payments and the Set MethodInfo Custom Type update action on My Payments.
oldTypeId​
String​
id of the Type that was removed. Absent if there was no previous Custom Type present.
type​
String​

PaymentMethodInfoCustomFieldAdded

Generated after adding a Custom Field to a PaymentMethodInfo using the Set MethodInfo CustomField update action on Payments and the Set MethodInfo CustomField update action on My Payments. If a Custom Field already exists with the same name, a PaymentMethodInfoCustomFieldChanged Message is generated instead.
name​
String​

Name of the Custom Field that was added.

value​
Json​
The added CustomFieldValue based on the FieldType.
type​
String​

PaymentMethodInfoCustomFieldChanged

Generated after changing an existing Custom Field on a PaymentMethodInfo using the Set MethodInfo CustomField update action on Payments and the Set MethodInfo CustomField update action on My Payments.
name​
String​

Name of the Custom Field that changed.

value​
Json​
CustomFieldValue based on the FieldType after the Set CustomField update action.
type​
String​

PaymentMethodInfoCustomFieldRemoved

Generated after removing a Custom Field from a PaymentMethodInfo using the Set MethodInfo CustomField update action on Payments and the Set MethodInfo CustomField update action on My Payments.
name​
String​

Name of the Custom Field that was removed.

type​
String​

Payment Method Messages

PaymentMethodCreated

Generated after a successful Create PaymentMethod request.
paymentMethod​
PaymentMethod that was created.
type​
String​

PaymentMethodDeleted

Generated after a successful Delete PaymentMethod request.
paymentMethod​
The PaymentMethod that was deleted.
type​
String​

PaymentMethodDefaultSet

Generated after a successful Set Default update action.
default​
Boolean​
Default Payment Method after the Set Default update action.
oldDefault​
Boolean​
Default Payment Method before the Set Default update action.
type​
String​

PaymentMethodInterfaceAccountSet

Generated after a successful Set InterfaceAccount update action.
interfaceAccount​
String​
Interface account of the Payment Method after the Set InterfaceAccount update action.
oldInterfaceAccount​
String​
Interface account of the Payment Method before the Set InterfaceAccount update action.
type​
String​

PaymentMethodPaymentInterfaceSet

Generated after a successful Set PaymentInterface update action.
paymentInterface​
String​
Payment interface of the Payment Method after the Set PaymentInterface update action.
oldPaymentInterface​
String​
Payment interface of the Payment Method before the Set PaymentInterface update action.
type​
String​

PaymentMethodMethodSet

Generated after a successful Set Method update action.
method​
String​
Payment Method after the Set Method update action.
oldMethod​
String​
Payment Method before the Set Method update action.
type​
String​

PaymentMethodKeySet

Generated after a successful Set Key update action.
key​
String​
key value of the PaymentMethod after the Set Key update action.
oldKey​
String​
key value of the PaymentMethod before the Set Key update action.
type​
String​

PaymentMethodNameSet

Generated after a successful Set Name update action.
nameAllLocales​
Array of LocalizedString​
Name of the Payment Method after the Set Name update action.
oldNameAllLocales​
Array of LocalizedString​
Name of the Payment Method before the Set Name update action.
name​
String​
Name of the Payment Method after the Set Name update action.
oldName​
String​
Name of the Payment Method before the Set Name update action.
type​
String​

PaymentMethodPaymentMethodStatusSet

Generated after a successful Set PaymentMethodStatus update action.
Status of the Payment Method after the Set PaymentMethodStatus update action.
Can be Active, or Inactive​
oldStatus​
Status of the Payment Method before the Set PaymentMethodStatus update action.
Can be Active, or Inactive​
type​
String​

PaymentMethodStatus

Active
Inactive

PaymentMethodCustomTypeSet

Generated after adding a Custom Type to a Payment Method using the Set Custom Type update action.
customFields​

The Custom Fields that were set.

oldTypeId​
String​
id of the previous Custom Type. Absent if there was no previous Custom Type present.
type​
String​

PaymentMethodCustomTypeRemoved

Generated after removing a Custom Type from a Payment Method using the Set Custom Type update action.
oldTypeId​
String​
id of the Custom Type that was removed. Absent if there was no previous Custom Type present.
type​
String​

PaymentMethodCustomFieldAdded

Generated after adding a Custom Field to a Payment Method using the Set CustomField update action. If a Custom Field already exists with the same name, a PaymentMethodCustomFieldChanged Message is generated instead.
name​
String​

Name of the Custom Field that was added.

value​
Json​
The added CustomFieldValue based on the FieldType.
type​
String​

PaymentMethodCustomFieldChanged

Generated after changing an existing Custom Field on a Payment Method using the Set CustomField update action.
name​
String​

Name of the Custom Field that changed.

value​
Json​
CustomFieldValue based on the FieldType after the Set CustomField update action.
oldValue​
Json​
CustomFieldValue based on the FieldType before the Set CustomField update action.
type​
String​

PaymentMethodCustomFieldRemoved

Generated after removing a Custom Field from a Payment Method using the Set CustomField update action.
name​
String​

Name of the Custom Field that was removed.

type​
String​