Shops > Payment Methods > paymentMethodsModify
Commerce APIShopsPayment MethodspaymentMethodsModify
paymentMethodsModify
POST:payment_methods.json

Description

Modify one or multiple payment methods.

Permission bit: "shop_payment_method.modify"

Topic: Payment Methods

Arguments

data: [PaymentMethodModify!]!

Main argument for mutations.


ids: [String!]!

List of payment method ids. See also: Unique Identifiers

Example: ["pm_EQzGqWoY"]


shop_id: String!

Unique shop identifier. See also: Unique Identifiers

Example: "sh_EQzGqWoY"


Data Argument Fields

address_city: String

Billing city


address_country: String

Billing address country code


address_line1: String

Billing address line 1


address_line2: String

Billing address line 2


address_state: String

Billing address state code


address_zip: String

Billing zip or postal code


exp_month: Int

Credit card expiration month

Example: 2


exp_year: Int

Credit card expiration year

Example: 2019


name: String

Name of the card holder


Result

[PaymentMethod!]

Preview (typescript)

Loading module