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

You are viewing an old version of the API
Remove group from customer BETA

DELETE /v2/customers/{customer_id}/groups/{group_id}

Removes a group membership from a customer.

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


Permissions
CUSTOMERS_WRITE
Try in API Explorer
Name Description
customer_id
string

Required

The ID of the customer to remove from the group.

group_id
string

Required

The ID of the customer group to remove the customer from.

Response Fields

Name Description
errors
Error [ ]

Any errors that occurred during the request.

Examples

You are viewing an old version of the API
DELETE /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 DELETE \
  -H 'Square-Version: 2020-08-26' \
  -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?