Customers > Customers > storefrontPaymentSourcesModify
Storefront APICustomersCustomersstorefrontPaymentSourcesModify
storefrontPaymentSourcesModify
POST:storefront/payment_sources.json

Description

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

Topic: Customers

Arguments

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