Skip to main content

PaymentRuleActionInput

Action applied when a rule's conditions match. type selects which other fields are required (see PaymentRuleActionType).

input PaymentRuleActionInput {
type: PaymentRuleActionType!
category: PaymentRuleCategory!
providerId: ID
storeId: ID
pointOfSaleId: ID
splits: [PaymentRuleRouteSplitInput!]
paymentMethods: [PaymentMethods!]
}

Fields

PaymentRuleActionInput.type ● PaymentRuleActionType! non-null enum

What to do when the rule matches.

PaymentRuleActionInput.category ● PaymentRuleCategory! non-null enum

Grouping the action belongs to. Must be consistent with type (see PaymentRuleCategory).

PaymentRuleActionInput.providerId ● ID scalar

Target provider. Required when type is route_to or block_provider.

PaymentRuleActionInput.storeId ● ID scalar

Target store to tag on the operation (set-if-absent). Required when type is tag_store.

PaymentRuleActionInput.pointOfSaleId ● ID scalar

Target point of sale to tag on the operation (set-if-absent). Required when type is tag_pos.

PaymentRuleActionInput.splits ● [PaymentRuleRouteSplitInput!] list input

Traffic shares for a split action. Required when type is route_split (with providerId), tag_store_split (with storeId), or tag_pos_split (with pointOfSaleId); percentages must sum to 100.

PaymentRuleActionInput.paymentMethods ● [PaymentMethods!] list enum

Payment methods to hide at checkout. Required when type is hide.

Member Of

CreatePaymentRuleInput input ● UpdatePaymentRuleInput input