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

POST:customers/payment_sources.json

Description

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

Permission bit: "customer_payment_sources.modify"

Topic: Customers

Query Parameters

customer_id: String, required

Unique customer identifier. See also: Unique Identifiers

Example: ?customer_id=cu_EQzGqWoY


ids: Comma-separated array of String, required

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

Example: ?ids=customer_payment_source_id,customer_payment_source_id


shop_id: String, required

Unique shop identifier. See also: Unique Identifiers

Example: ?shop_id=sh_EQzGqWoY

Request Body

Array of CustomerPaymentSourceModify

[
  {
    "address_city": "",
    "address_country": "",
    "address_line1": "",
    "address_line2": "",
    "address_state": "",
    "address_zip": "",
    "exp_month": 2,
    "exp_year": 2019,
    "name": ""
  }
]

Response Body

Array of CustomerPaymentSource

Response Body Type

Loading module