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

    Order Custom Attributes

  • List order custom attribute definitions

  • Create order custom attribute definition

  • Delete order custom attribute definition

  • Retrieve order custom attribute definition

  • Update order custom attribute definition

  • Bulk delete order custom attributes

  • Bulk upsert order custom attributes

  • List order custom attributes

  • Delete order custom attribute

  • Retrieve order custom attribute

  • Upsert order custom attribute

  • Webhooks

  • order.custom_attribute_definition.owned.created

  • order.custom_attribute_definition.owned.deleted

  • order.custom_attribute_definition.owned.updated

  • order.custom_attribute_definition.visible.created

  • order.custom_attribute_definition.visible.deleted

  • order.custom_attribute_definition.visible.updated

  • order.custom_attribute.owned.deleted

  • order.custom_attribute.owned.updated

  • order.custom_attribute.visible.deleted

  • order.custom_attribute.visible.updated

<- Order Custom Attributes webhooks

Order Custom Attributes webhooks

All versions ->

order custom_attribute_definition owned createdBeta

EVENT

 order.custom_attribute_definition.owned.created

Published when an order custom attribute definition that is owned by the subscribing app is created.

Permissions:ORDERS_READ
Link to section

Event payload

Example code

Link to section

merchant_id

string

The ID of the target seller associated with the event.

Link to section

type

string

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

Link to section

event_id

string

A unique ID for the event.

Link to section

created_at

string

Read only The timestamp of when the event 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.

Link to section

Examples

All versions ->

Response JSON

{ "merchant_id": "MLABZFS5JTW5B", "type": "order.custom_attribute_definition.owned.created", "event_id": "11d7bdf0-773a-3e9e-9d59-d91fe31110db", "created_at": "2022-11-09T20:59:17.185Z", "data": { "type": "custom_attribute_definition", "id": "sq0ids-tr5sCkWm3b9X9MkpAvJ42A:table-number", "object": { "created_at": "2022-11-09T20:59:17.185Z", "description": "Table number at a location", "key": "sq0ids-tr5sCkWm3b9X9MkpAvJ42A:table-number", "name": "Table Number", "schema": { "$ref": "https://developer-production-s.squarecdn.com/schemas/v1/common.json#squareup.common.String" }, "updated_at": "2022-11-09T20:59:17.185Z", "version": 1, "visibility": "VISIBILITY_READ_WRITE_VALUES" } } }