ListLocationCustomAttributeDefinitions
Lists the location-related custom attribute definitions that belong to a Square seller account. When all response pages are retrieved, the results include all custom attribute definitions that are visible to the requesting application, including those that are created by other applications and set to VISIBILITY_READ_ONLY or VISIBILITY_READ_WRITE_VALUES.
Query parameters
Enumeration of visibility-filter values used to set the ability to view custom attributes or custom attribute definitions.
Filters the CustomAttributeDefinition results by their visibility values.
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.
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.
Response
Success
Example response
{
"cursor": "ImfNzWVSiAYyiAR4gEcxDJ75KZAOSjX8H2BVHUTR0ofCtp4SdYvrUKbwYY2aCH2WqZ2FsfAuylEVUlTfaINg3ecIlFpP9Y5Ie66w9NSg9nqdI5fCJ6qdH2s0za5m2plFonsjIuFaoN89j78ROUwuSOzD6mFZPcJHhJ0CxEKc0SBH",
"custom_attribute_definitions": [
{
"created_at": "2022-12-02T19:50:21.832Z",
"description": "Location's phone number",
"key": "phone-number",
"name": "phone number",
"schema": {
"$ref": "https://developer-production-s.squarecdn.com/schemas/v1/common.json#squareup.common.PhoneNumber"
},
"updated_at": "2022-12-02T19:50:21.832Z",
"version": 1,
"visibility": "VISIBILITY_READ_ONLY"
},
{
"created_at": "2022-12-02T19:06:36.559Z",
"description": "Bestselling item at location",
"key": "bestseller",
"name": "Bestseller",
"schema": {
"$ref": "https://developer-production-s.squarecdn.com/schemas/v1/common.json#squareup.common.String"
},
"updated_at": "2022-12-03T10:17:52.341Z",
"version": 4,
"visibility": "VISIBILITY_READ_WRITE_VALUES"
}
]
}