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

    Location Custom Attributes

  • List location custom attribute definitions

  • Create location custom attribute definition

  • Delete location custom attribute definition

  • Retrieve location custom attribute definition

  • Update location custom attribute definition

  • Bulk delete location custom attributes

  • Bulk upsert location custom attributes

  • List location custom attributes

  • Delete location custom attribute

  • Retrieve location custom attribute

  • Upsert location custom attribute

  • Webhooks

  • location.custom_attribute_definition.owned.created

  • location.custom_attribute_definition.owned.deleted

  • location.custom_attribute_definition.owned.updated

  • location.custom_attribute_definition.visible.created

  • location.custom_attribute_definition.visible.deleted

  • location.custom_attribute_definition.visible.updated

  • location.custom_attribute.owned.deleted

  • location.custom_attribute.owned.updated

  • location.custom_attribute.visible.deleted

  • location.custom_attribute.visible.updated

<- Location Custom Attributes webhooks

Location Custom Attributes webhooks

All versions ->

location custom_attribute_definition owned createdBeta

EVENT

 location.custom_attribute_definition.owned.created

Published when a location custom attribute definition is created by the subscribing application.

Permissions:MERCHANT_PROFILE_READ
Link to section

Event payload

Example code

Link to section

merchant_id

string

The ID of the seller associated with the event that triggered the event notification.

Link to section

type

string

The type of this event. The value is "location.custom_attribute_definition.owned.created".

Link to section

event_id

string

A unique ID for the event notification.

Link to section

created_at

string

Read only The timestamp that indicates when the event notification was created, in RFC 3339 format.

Examples for January 25th, 2020 6:25:34pm Pacific Standard Time:

UTC: 2020-01-26T02:25:34Z

Pacific Standard Time with UTC offset: 2020-01-25T18:25:34-08:00

Link to section

data

The data associated with the event that triggered the event notification.

Link to section

Examples

All versions ->

Response JSON

{ "merchant_id": "DM7VKY8Q63GNP", "type": "location.custom_attribute_definition.owned.created", "event_id": "347ab320-c0ba-48f5-959a-4e147b9aefcf", "created_at": "2022-11-26T21:40:49.943Z", "data": { "type": "custom_attribute_definition", "id": "sq0idp-LJ1Kr4Iim0hGDvAwrv8HIB:region-located", "object": { "created_at": "2022-11-26T21:40:49Z", "description": "What region the location is in.", "key": "sq0idp-LJ1Kr4Iim0hGDvAwrv8HIB:region-located", "name": "Region Location", "schema": { "$ref": "https://developer-production-s.squarecdn.com/schemas/v1/common.json#squareup.common.String" }, "updated_at": "2022-11-26T21:40:49Z", "version": 1, "visibility": "VISIBILITY_READ_WRITE_VALUES" } } }