ListOrderCustomAttributeDefinitions
Lists the order-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. Note that seller-defined custom attributes (also known as custom fields) are always set to VISIBILITY_READ_WRITE_VALUES.
Query parameters
Enumeration of visibility-filter values used to set the ability to view custom attributes or custom attribute definitions.
Requests that all of the custom attributes be returned, or only those that are read-only or read-write.
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.
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.
Response
Success
Example response
{
"custom_attribute_definitions": [
{
"created_at": "2022-11-16T18:03:44.051Z",
"description": "The number of people seated at a table",
"key": "cover-count",
"name": "Cover count",
"schema": {
"$ref": "https://developer-production-s.squarecdn.com/schemas/v1/common.json#squareup.common.Number"
},
"updated_at": "2022-11-16T18:03:44.051Z",
"version": 1,
"visibility": "VISIBILITY_READ_WRITE_VALUES"
},
{
"created_at": "2022-11-16T18:04:32.059Z",
"description": "The identifier for a particular seat",
"key": "seat-number",
"name": "Seat number",
"schema": {
"$ref": "https://developer-production-s.squarecdn.com/schemas/v1/common.json#squareup.common.Number"
},
"updated_at": "2022-11-16T18:04:32.059Z",
"version": 1,
"visibility": "VISIBILITY_READ_WRITE_VALUES"
},
{
"created_at": "2022-11-16T18:04:21.912Z",
"description": "The identifier for a particular table",
"key": "table-number",
"name": "Table number",
"schema": {
"$ref": "https://developer-production-s.squarecdn.com/schemas/v1/common.json#squareup.common.Number"
},
"updated_at": "2022-11-16T18:04:21.912Z",
"version": 1,
"visibility": "VISIBILITY_READ_WRITE_VALUES"
}
]
}