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

    Merchant Custom Attributes

  • List merchant custom attribute definitions

  • Create merchant custom attribute definition

  • Delete merchant custom attribute definition

  • Retrieve merchant custom attribute definition

  • Update merchant custom attribute definition

  • Bulk delete merchant custom attributes

  • Bulk upsert merchant custom attributes

  • List merchant custom attributes

  • Delete merchant custom attribute

  • Retrieve merchant custom attribute

  • Upsert merchant custom attribute

  • Webhooks

  • merchant.custom_attribute_definition.owned.created

  • merchant.custom_attribute_definition.owned.deleted

  • merchant.custom_attribute_definition.owned.updated

  • merchant.custom_attribute_definition.visible.created

  • merchant.custom_attribute_definition.visible.deleted

  • merchant.custom_attribute_definition.visible.updated

  • merchant.custom_attribute.owned.deleted

  • merchant.custom_attribute.owned.updated

  • merchant.custom_attribute.visible.deleted

  • merchant.custom_attribute.visible.updated

<- Merchant Custom Attributes API

Merchant Custom Attributes API

All versions ->

List merchant custom attributesBeta

GET

 /v2/merchants/{merchant_id}/custom-attributes

Lists the custom attributes associated with a merchant.

You can use the with_definitions query parameter to also retrieve custom attribute definitions in the same call. When all response pages are retrieved, the results include all custom attributes that are visible to the requesting application, including those that are owned by other applications and set to VISIBILITY_READ_ONLY or VISIBILITY_READ_WRITE_VALUES.

Permissions:MERCHANT_PROFILE_READ

Guide

List merchant custom attributes

Try in API Explorer
Link to section

Path parameters

Example code

Link to section

merchant_id

string

Required

The ID of the target merchant.

Link to section

Query parameters

Link to section

visibility_filter

string

Filters the CustomAttributeDefinition results by their visibility values.

Link to section

limit

integer(32-bit)

The maximum number of results to return in a single paged response. This limit is advisory. The response might contain more or fewer results. The minimum value is 1 and the maximum value is 100. The default value is 20. For more information, see Pagination.

Link to section

cursor

string

The cursor returned in the paged response from the previous call to this endpoint. Provide this cursor to retrieve the next page of results for your original request. For more information, see Pagination.

Link to section

with_definitions

boolean

Indicates whether to return the custom attribute definition in the definition field of each custom attribute. Set this parameter to true to get the name and description of each custom attribute, information about the data type, or other definition details. The default value is false.

Link to section

Response fields

Link to section

custom_attributes

The retrieved custom attributes. If with_definitions was set to true in the request, the custom attribute definition is returned in the definition field of each custom attribute. If no custom attributes are found, Square returns an empty object ({}).

Link to section

cursor

string

The cursor to use in your next call to this endpoint to retrieve the next page of results for your original request. This field is present only if the request succeeded and additional results are available. For more information, see Pagination.

Link to section

errors

Any errors that occurred during the request.

Link to section

Examples

All versions ->

GET /v2/merchants/{merchant_id}/custom-attributes
curl https://connect.squareup.com/v2/merchants/DM7VKY8Q63GNP/custom-attributes \ -H 'Square-Version: 2026-11-18' \ -H 'Authorization: Bearer ACCESS_TOKEN' \ -H 'Content-Type: application/json'

Response JSON

{ "custom_attributes": [ { "key": "has_seen_tutorial", "version": 1, "updated_at": "2023-05-05T18:13:03.745Z", "value": true, "created_at": "2023-05-05T18:13:03.745Z", "visibility": "VISIBILITY_READ_WRITE_VALUES" }, { "key": "alternative_seller_name", "version": 1, "updated_at": "2023-05-05T19:27:57.975Z", "value": "Ultimate Sneaker Store", "created_at": "2023-05-05T19:27:57.975Z", "visibility": "VISIBILITY_READ_ONLY" } ] }