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

    Booking Custom Attributes

  • List booking custom attribute definitions

  • Create booking custom attribute definition

  • Delete booking custom attribute definition

  • Retrieve booking custom attribute definition

  • Update booking custom attribute definition

  • Bulk delete booking custom attributes

  • Bulk upsert booking custom attributes

  • List booking custom attributes

  • Delete booking custom attribute

  • Retrieve booking custom attribute

  • Upsert booking custom attribute

  • Webhooks

  • booking.custom_attribute_definition.owned.created

  • booking.custom_attribute_definition.owned.deleted

  • booking.custom_attribute_definition.owned.updated

  • booking.custom_attribute_definition.visible.created

  • booking.custom_attribute_definition.visible.deleted

  • booking.custom_attribute_definition.visible.updated

  • booking.custom_attribute.owned.deleted

  • booking.custom_attribute.owned.updated

  • booking.custom_attribute.visible.deleted

  • booking.custom_attribute.visible.updated

<- Booking Custom Attributes API

Booking Custom Attributes API

All versions ->

Create booking custom attribute definition

POST

 /v2/bookings/custom-attribute-definitions

Creates a bookings custom attribute definition.

To call this endpoint with buyer-level permissions, set APPOINTMENTS_WRITE for the OAuth scope. To call this endpoint with seller-level permissions, set APPOINTMENTS_ALL_WRITE and APPOINTMENTS_WRITE for the OAuth scope.

For calls to this endpoint with seller-level permissions to succeed, the seller must have subscribed to Appointments Plus or Appointments Premium.

Permissions:APPOINTMENTS_WRITE
Try in API Explorer
Link to section

Request body

Example code

Link to section

custom_attribute_definition

Required

The custom attribute definition to create, with the following fields:

  • key

  • name. If provided, name must be unique (case-sensitive) across all visible booking-related custom attribute definitions for the seller.

  • description

  • visibility. Note that all custom attributes are visible in exported booking data, including those set to VISIBILITY_HIDDEN.

  • schema. With the exception of the Selection data type, the schema is specified as a simple URL to the JSON schema definition hosted on the Square CDN. For more information, see Specifying the schema.

Link to section

idempotency_key

string

A unique identifier for this request, used to ensure idempotency. For more information, see Idempotency.

Max Length
45
Link to section

Response fields

Link to section

custom_attribute_definition

The newly created custom attribute definition.

Link to section

errors

Any errors that occurred during the request.

Link to section

Examples

All versions ->

POST /v2/bookings/custom-attribute-definitions
curl https://connect.squareup.com/v2/bookings/custom-attribute-definitions \ -X POST \ -H 'Square-Version: 2026-11-18' \ -H 'Authorization: Bearer ACCESS_TOKEN' \ -H 'Content-Type: application/json' \ -d '{ "custom_attribute_definition": { "description": "The favorite shampoo of the customer.", "key": "favoriteShampoo", "name": "favoriteShampoo", "schema": { "$ref": "https://developer-production-s.squarecdn.com/schemas/v1/common.json#squareup.common.String" }, "visibility": "VISIBILITY_HIDDEN" } }'

Response JSON

{ "custom_attribute_definition": { "key": "favoriteShampoo", "name": "Favorite shampoo", "description": "The favorite shampoo of the customer.", "version": 1, "updated_at": "2022-11-16T15:27:30Z", "schema": { "$ref": "https://developer-production-s.squarecdn.com/schemas/v1/common.json#squareup.common.String" }, "created_at": "2022-11-16T15:27:30Z", "visibility": "VISIBILITY_READ_WRITE_VALUES" }, "errors": [] }