POST:storefront/customers.json
Storefront APIPOST:storefront/customers.json

POST:storefront/customers.json

Description

Modify self.

Topic: Customers

Query Parameters

ids: Comma-separated array of String, required

List of customer ids. See also: Unique Identifiers

Example: ?ids=cu_EQzGqWoY,cu_EQzGqWoY


shop_id: String, required

Unique shop identifier. See also: Unique Identifiers

Example: ?shop_id=sh_EQzGqWoY

Request Body

Array of StorefrontCustomerModify

[
  {
    "accepts_marketing": false,
    "addresses": [
      {
        "address1": "Chestnut Street 92",
        "address2": "Apartment 2",
        "city": "Louisville",
        "company": "Google inc.",
        "country": "US",
        "id": "ad_EQzGqWoY",
        "name": "John Smith",
        "phone": "5556251199",
        "plus_code": "PQ7W+WM",
        "province": "KY",
        "zip": "40202"
      }
    ],
    "default_billing_address_id": "ad_EQzGqWoY",
    "default_payment_source_id": "card_1Ak9dNDVveQRXOWz2ZFPd73P",
    "default_shipping_address_id": "ad_EQzGqWoY",
    "display_name": "John S.",
    "language": "",
    "mobile": "45634634562",
    "mobile_notifications": false,
    "name": "John Smith",
    "preferred_currency": "USD",
    "reminder_messages": false,
    "timezone": "(GMT-05:00) Eastern Time"
  }
]

Response Body

Array of StorefrontCustomer

Response Body Type

Loading module