Skip to content

Latest commit

 

History

History
52 lines (42 loc) · 1.49 KB

update-customer-group-response.md

File metadata and controls

52 lines (42 loc) · 1.49 KB

Update Customer Group Response

Defines the fields that are included in the response body of a request to the UpdateCustomerGroup endpoint.

Either errors or group is present in a given response (never both).

Structure

Update Customer Group Response

Fields

Name Type Tags Description
errors List Error Optional Any errors that occurred during the request.
group Customer Group Optional Represents a group of customer profiles.

Customer groups can be created, be modified, and have their membership defined using
the Customers API or within the Customer Directory in the Square Seller Dashboard or Point of Sale.

Example (as JSON)

{
  "group": {
    "created_at": "2020-04-13T21:54:57.863Z",
    "id": "2TAT3CMH4Q0A9M87XJZED0WMR3",
    "name": "Loyal Customers",
    "updated_at": "2020-04-13T21:54:58Z"
  },
  "errors": [
    {
      "category": "MERCHANT_SUBSCRIPTION_ERROR",
      "code": "MAP_KEY_LENGTH_TOO_LONG",
      "detail": "detail6",
      "field": "field4"
    },
    {
      "category": "MERCHANT_SUBSCRIPTION_ERROR",
      "code": "MAP_KEY_LENGTH_TOO_LONG",
      "detail": "detail6",
      "field": "field4"
    },
    {
      "category": "MERCHANT_SUBSCRIPTION_ERROR",
      "code": "MAP_KEY_LENGTH_TOO_LONG",
      "detail": "detail6",
      "field": "field4"
    }
  ]
}