Skip to main content

transactionRequestAction Mutation

Request an action for payment transaction.

Requires the HANDLE_PAYMENTSpermission.
transactionRequestAction(
actionType: TransactionActionEnum!
amount: PositiveDecimal
id: ID
refundReason: String
refundReasonReference: ID
token: UUID
): TransactionRequestAction
Show return type

Arguments

actionType ● TransactionActionEnum!

Determines the action type.

amount ● PositiveDecimal

Transaction request amount. If empty, maximal possible amount will be used.

id ● ID

The ID of the transaction. One of field id or token is required.

refundReason ● String

Reason of the refund

Added in Saleor 3.22

refundReasonReference ● ID

ID of a Page (Model) to reference in reason.

Added in Saleor 3.22

token ● UUID

The token of the transaction. One of field id or token is required.

Type

TransactionRequestAction

Request an action for payment transaction.

Requires the HANDLE_PAYMENTSpermission.