POST:customers/payment_sources.json
Commerce APIPOST:customers/payment_sources.json

POST:customers/payment_sources.json

Description

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

Permission bit: "customer_payment_sources.create"

Topic: Customers

Query Parameters

customer_id: String, required

Unique customer identifier. See also: Unique Identifiers

Example: ?customer_id=cu_EQzGqWoY


shop_id: String, required

Unique shop identifier. See also: Unique Identifiers

Example: ?shop_id=sh_EQzGqWoY

Request Body

Array of CustomerPaymentSourceCreate

[
  {
    "payment_method": "pm_123456789"
  }
]

Response Body

Array of CustomerPaymentSource

Response Body Type

Loading module