Customer Groups

  • List customer groups

  • Create customer group

  • Delete customer group

  • Retrieve customer group

  • Update customer group

Development
  • Guides
  • API Reference
  • API Explorer
  • SDKs
  • Sample apps
  • System status
Support
  • Developer forums
  • Developer blog
  • YouTube
  • X
More
  • Square Home
  • Square Developer
  • App Marketplace
  • Partner with Square
  • Solutions Partner Program
  • Pricing
  • Sales

© 2026 Square, Inc.

  • Developer terms of service
  • Developer Integration and Marketing Agreement
  • Privacy policy
  • Partnerships
  • Sign In
  • Sign In

<- Customer Groups API

Customer Groups API

All versions ->

Create customer group

POST

 /v2/customers/groups

Creates a new customer group for a business.

The request must include the name value of the group.

Permissions:CUSTOMERS_WRITE

Guide

Create a customer group

Try in API Explorer
Link to section

Request body

Example code

Link to section

idempotency_key

string

The idempotency key for the request. For more information, see Idempotency.

Link to section

group

Required

The customer group to create.

Link to section

Response fields

Link to section

errors

Any errors that occurred during the request.

Link to section

group

The successfully created customer group.

Link to section

Examples

All versions ->

POST /v2/customers/groups
curl https://connect.squareup.com/v2/customers/groups \ -X POST \ -H 'Square-Version: 2026-11-18' \ -H 'Authorization: Bearer ACCESS_TOKEN' \ -H 'Content-Type: application/json' \ -d '{ "group": { "name": "Loyal Customers" } }'

Response JSON

{ "group": { "id": "2TAT3CMH4Q0A9M87XJZED0WMR3", "name": "Loyal Customers", "created_at": "2020-04-13T21:54:57.863Z", "updated_at": "2020-04-13T21:54:58Z" } }