• Example searches: “transaction”, “CreateOrder”, “/v2/locations”, “inventory”, “delete customer”

You are viewing an old version of the API
Add group to customer BETA

Adds a group membership to a customer.

The customer is identified by the customer_id value and the customer group is identified by the group_id value.

Required permissions: CUSTOMERS_WRITE

Path Parameters

Name Description
customer_id
string

Required

The ID of the customer to add to a group.

group_id
string

Required

The ID of the customer group to add the customer to.

Response Fields

Name Description
errors
Error [ ]

Any errors that occurred during the request.

Examples

You are viewing an old version of the API
PUT /v2/customers/{customer_id}/groups/{group_id}
cURL
  • cURL
  • Ruby
  • Python
  • C#
  • Java
  • PHP
curl https://connect.squareup.com/v2/customers/customer_id0/groups/group_id1 \
  -X PUT \
  -H 'Square-Version: 2020-06-25' \
  -H 'Authorization: Bearer ACCESS_TOKEN' \
  -H 'Content-Type: application/json'
Response JSON
{}

Share Feedback

Thanks for visiting the Square API documentation. What's on your mind?