Customers > Customers > customersPaymentSourcesModify
Commerce APICustomersCustomerscustomersPaymentSourcesModify
customersPaymentSourcesModify
POST:customers/payment_sources.json

Description

Modify customer payment sources (only 1st tier gateways).

Permission bit: "customer_payment_sources.modify"

Topic: Customers

Arguments

customer_id: String!

Unique customer identifier. See also: Unique Identifiers

Example: "cu_EQzGqWoY"


data: [CustomerPaymentSourceModify!]!

Main argument for mutations.


ids: [String!]!

List of customer payment source ids. See also: Unique Identifiers


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

[CustomerPaymentSource!]

Preview (typescript)

Loading module