Customers > Customers > customersPaymentSourcesCreate
Commerce APICustomersCustomerscustomersPaymentSourcesCreate
customersPaymentSourcesCreate
POST:customers/payment_sources.json

Description

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

Permission bit: "customer_payment_sources.create"

Topic: Customers

Arguments

customer_id: String!

Unique customer identifier. See also: Unique Identifiers

Example: "cu_EQzGqWoY"


data: [CustomerPaymentSourceCreate!]!

Main argument for mutations.


shop_id: String!

Unique shop identifier. See also: Unique Identifiers

Example: "sh_EQzGqWoY"


Data Argument Fields

payment_method: String!

Stripe.js credit card payment method id

Example: "pm_123456789"


Result

[CustomerPaymentSource!]

Preview (typescript)

Loading module