Square: Order custom attributes schemas
22 Square schemas with complete fields and constraints.
← Order custom attributes operations · All schemas
Bulk Delete Order Custom Attributes — request body — body
| Field | Type | Presence | Description and constraints |
|---|---|---|---|
$ | object | Root | Represents a bulk delete request for one or more order custom attributes. |
values | object | Required within parent | A map of requests that correspond to individual delete operations for custom attributes. Additional keys: see wildcard field |
values.* | Model | Additional keys | Expand Bulk Delete Order Custom Attributes — request body — body values value |
Referenced models: Bulk Delete Order Custom Attributes — request body — body values value
Bulk Delete Order Custom Attributes — request body — body values value
| Field | Type | Presence | Description and constraints |
|---|---|---|---|
$ | object | Root | Represents one delete within the bulk operation. |
key | string | Optional | The key of the custom attribute to delete. This key must match the key of an existing custom attribute definition. Minimum length: 1 Read only: true |
order_id | string | Required within parent | The ID of the target [order](entity:Order). Maximum length: 255 Minimum length: 1 |
Bulk Delete Order Custom Attributes — response body
| Field | Type | Presence | Description and constraints |
|---|---|---|---|
$ | object | Root | Represents a response from deleting one or more order custom attributes. |
errors | array | Optional | Any errors that occurred during the request. |
errors[] | Model | Each item | Expand Get Shift — response body — errors item |
values | object | Required within parent | A map of responses that correspond to individual delete requests. Each response has the same ID as the corresponding request and contains either a `custom_attribute` or an `errors` field. Additional keys: see wildcard field |
values.* | Model | Additional keys | Expand Delete Order Custom Attribute — response body |
Referenced models: Delete Order Custom Attribute — response body, Get Shift — response body — errors item
Bulk Upsert Order Custom Attributes — request body — body
| Field | Type | Presence | Description and constraints |
|---|---|---|---|
$ | object | Root | Represents a bulk upsert request for one or more order custom attributes. |
values | object | Required within parent | A map of requests that correspond to individual upsert operations for custom attributes. Additional keys: see wildcard field |
values.* | Model | Additional keys | Expand Bulk Upsert Order Custom Attributes — request body — body values value |
Referenced models: Bulk Upsert Order Custom Attributes — request body — body values value
Bulk Upsert Order Custom Attributes — request body — body values value
| Field | Type | Presence | Description and constraints |
|---|---|---|---|
$ | object | Root | Represents one upsert within the bulk operation. |
custom_attribute | Model | Required within parent | Expand Upsert Order Custom Attribute — request body — body custom attribute The custom attribute to create or update, with the following fields: - `value`. This value must conform to the `schema` specified by the definition. For more information, see [Value data types](https://developer.squareup.com/docs/customer-custom-attributes-api/custom-attributes#value-data-types). - `version`. To enable [optimistic concurrency](https://developer.squareup.com/docs/build-basics/common-api-patterns/optimistic-concurrency) control, include this optional field and specify the current version of the custom attribute. |
idempotency_key | JSON | Optional | |
idempotency_key (anyOf 1) | string | Alternative | A unique identifier for this request, used to ensure idempotency. For more information, see [Idempotency](https://developer.squareup.com/docs/build-basics/common-api-patterns/idempotency). Maximum length: 45 Minimum length: 1 |
idempotency_key (anyOf 2) | null | Alternative | |
order_id | string | Required within parent | The ID of the target [order](entity:Order). Maximum length: 255 Minimum length: 1 |
Referenced models: Upsert Order Custom Attribute — request body — body custom attribute
Bulk Upsert Order Custom Attributes — response body
| Field | Type | Presence | Description and constraints |
|---|---|---|---|
$ | object | Root | Represents a response from a bulk upsert of order custom attributes. |
errors | array | Optional | Any errors that occurred during the request. |
errors[] | Model | Each item | Expand Get Shift — response body — errors item |
values | object | Required within parent | A map of responses that correspond to individual upsert operations for custom attributes. Additional keys: see wildcard field |
values.* | Model | Additional keys | Expand Upsert Order Custom Attribute — response body |
Referenced models: Get Shift — response body — errors item, Upsert Order Custom Attribute — response body
Create Order Custom Attribute Definition — request body — body
| Field | Type | Presence | Description and constraints |
|---|---|---|---|
$ | object | Root | Represents a create request for an order custom attribute definition. |
custom_attribute_definition | Model | Required within parent | Expand Create Order Custom Attribute Definition — request body — body custom attribute definition The custom attribute definition to create. Note the following: - With the exception of the `Selection` data type, the `schema` is specified as a simple URL to the JSON schema definition hosted on the Square CDN. For more information, including supported values and constraints, see [Specifying the schema](https://developer.squareup.com/docs/customer-custom-attributes-api/custom-attribute-definitions#specify-schema). - If provided, `name` must be unique (case-sensitive) across all visible customer-related custom attribute definitions for the seller. - All custom attributes are visible in exported customer data, including those set to `VISIBILITY_HIDDEN`. |
idempotency_key | string | Optional | A unique identifier for this request, used to ensure idempotency. For more information, see [Idempotency](https://developer.squareup.com/docs/build-basics/common-api-patterns/idempotency). Maximum length: 45 Minimum length: 1 |
Referenced models: Create Order Custom Attribute Definition — request body — body custom attribute definition
Create Order Custom Attribute Definition — request body — body custom attribute definition
| Field | Type | Presence | Description and constraints |
|---|---|---|---|
$ | object | Root | Represents a definition for custom attribute values. A custom attribute definition specifies the key, visibility, schema, and other properties for a custom attribute. |
created_at | string | Optional | The timestamp that indicates when the custom attribute definition was created, in RFC 3339 format. Read only: true |
description | JSON | Optional | |
description (anyOf 1) | string | Alternative | Seller-oriented description of the custom attribute definition, including any constraints that the seller should observe. May be displayed as a tooltip in Square UIs. This field is required if the `visibility` field is `VISIBILITY_READ_ONLY` or `VISIBILITY_READ_WRITE_VALUES`. Maximum length: 255 |
description (anyOf 2) | null | Alternative | |
key | JSON | Optional | |
key (anyOf 1) | string | Alternative | The identifier of the custom attribute definition and its corresponding custom attributes. This value can be a simple key, which is the key that is provided when the custom attribute definition is created, or a qualified key, if the requesting application is not the definition owner. The qualified key consists of the application ID of the custom attribute definition owner followed by the simple key that was provided when the definition was created. It has the format application_id:simple key. The value for a simple key can contain up to 60 alphanumeric characters, periods (.), underscores (_), and hyphens (-). This field can not be changed after the custom attribute definition is created. This field is required when creating a definition and must be unique per application, seller, and resource type. Minimum length: 1 Pattern: ^([a-zA-Z0-9\._-]+:)?[a-zA-Z0-9\._-]{1,60}$ |
key (anyOf 2) | null | Alternative | |
name | JSON | Optional | |
name (anyOf 1) | string | Alternative | The name of the custom attribute definition for API and seller-facing UI purposes. The name must be unique within the seller and application pair. This field is required if the `visibility` field is `VISIBILITY_READ_ONLY` or `VISIBILITY_READ_WRITE_VALUES`. Maximum length: 255 |
name (anyOf 2) | null | Alternative | |
schema | JSON | Optional | |
schema (anyOf 1) | object | Alternative | The JSON schema for the custom attribute definition, which determines the data type of the corresponding custom attributes. For more information, see [Custom Attributes Overview](https://developer.squareup.com/docs/devtools/customattributes/overview). This field is required when creating a definition. |
schema (anyOf 2) | null | Alternative | |
updated_at | string | Optional | The timestamp that indicates when the custom attribute definition was created or most recently updated, in RFC 3339 format. Read only: true |
version | integer | Optional | Read only. The current version of the custom attribute definition. The value is incremented each time the custom attribute definition is updated. When updating a custom attribute definition, you can provide this field and specify the current version of the custom attribute definition to enable [optimistic concurrency](https://developer.squareup.com/docs/build-basics/common-api-patterns/optimistic-concurrency). On writes, this field must be set to the latest version. Stale writes are rejected. This field can also be used to enforce strong consistency for reads. For more information about strong consistency for reads, see [Custom Attributes Overview](https://developer.squareup.com/docs/devtools/customattributes/overview). |
visibility | JSON | Optional | |
visibility (anyOf 1) | string | Alternative | The level of permission that a seller or other applications requires to view this custom attribute definition. The `Visibility` field controls who can read and write the custom attribute values and custom attribute definition. Specifies how the custom attribute definition and its values should be shared with the seller and other applications. If no value is specified, the value defaults to `VISIBILITY_HIDDEN`. See [Visibility](#type-visibility) for possible values One of: VISIBILITY_HIDDEN, VISIBILITY_READ_ONLY, VISIBILITY_READ_WRITE_VALUES |
visibility (anyOf 2) | null | Alternative |
Create Order Custom Attribute Definition — response body
| Field | Type | Presence | Description and constraints |
|---|---|---|---|
$ | object | Root | Represents a response from creating an order custom attribute definition. |
custom_attribute_definition | Model | Optional | Expand Create Order Custom Attribute Definition — response body — custom attribute definition The new custom attribute definition. |
errors | array | Optional | Any errors that occurred during the request. |
errors[] | Model | Each item | Expand Get Shift — response body — errors item |
Referenced models: Create Order Custom Attribute Definition — response body — custom attribute definition, Get Shift — response body — errors item
Create Order Custom Attribute Definition — response body — custom attribute definition
| Field | Type | Presence | Description and constraints |
|---|---|---|---|
$ | object | Root | Represents a definition for custom attribute values. A custom attribute definition specifies the key, visibility, schema, and other properties for a custom attribute. |
created_at | string | Optional | The timestamp that indicates when the custom attribute definition was created, in RFC 3339 format. Read only: true |
description | JSON | Optional | |
description (anyOf 1) | string | Alternative | Seller-oriented description of the custom attribute definition, including any constraints that the seller should observe. May be displayed as a tooltip in Square UIs. This field is required if the `visibility` field is `VISIBILITY_READ_ONLY` or `VISIBILITY_READ_WRITE_VALUES`. Maximum length: 255 |
description (anyOf 2) | null | Alternative | |
key | JSON | Optional | |
key (anyOf 1) | string | Alternative | The identifier of the custom attribute definition and its corresponding custom attributes. This value can be a simple key, which is the key that is provided when the custom attribute definition is created, or a qualified key, if the requesting application is not the definition owner. The qualified key consists of the application ID of the custom attribute definition owner followed by the simple key that was provided when the definition was created. It has the format application_id:simple key. The value for a simple key can contain up to 60 alphanumeric characters, periods (.), underscores (_), and hyphens (-). This field can not be changed after the custom attribute definition is created. This field is required when creating a definition and must be unique per application, seller, and resource type. Minimum length: 1 Pattern: ^([a-zA-Z0-9\._-]+:)?[a-zA-Z0-9\._-]{1,60}$ |
key (anyOf 2) | null | Alternative | |
name | JSON | Optional | |
name (anyOf 1) | string | Alternative | The name of the custom attribute definition for API and seller-facing UI purposes. The name must be unique within the seller and application pair. This field is required if the `visibility` field is `VISIBILITY_READ_ONLY` or `VISIBILITY_READ_WRITE_VALUES`. Maximum length: 255 |
name (anyOf 2) | null | Alternative | |
schema | JSON | Optional | |
schema (anyOf 1) | object | Alternative | The JSON schema for the custom attribute definition, which determines the data type of the corresponding custom attributes. For more information, see [Custom Attributes Overview](https://developer.squareup.com/docs/devtools/customattributes/overview). This field is required when creating a definition. |
schema (anyOf 2) | null | Alternative | |
updated_at | string | Optional | The timestamp that indicates when the custom attribute definition was created or most recently updated, in RFC 3339 format. Read only: true |
version | JSON | Optional | |
version (anyOf 1) | integer | Alternative | Read only. The current version of the custom attribute definition. The value is incremented each time the custom attribute definition is updated. When updating a custom attribute definition, you can provide this field and specify the current version of the custom attribute definition to enable [optimistic concurrency](https://developer.squareup.com/docs/build-basics/common-api-patterns/optimistic-concurrency). On writes, this field must be set to the latest version. Stale writes are rejected. This field can also be used to enforce strong consistency for reads. For more information about strong consistency for reads, see [Custom Attributes Overview](https://developer.squareup.com/docs/devtools/customattributes/overview). |
version (anyOf 2) | string | Alternative | Pattern: ^-?[0-9]+(?:\.[0-9]+)?(?:[eE][+-]?[0-9]+)?$ |
visibility | JSON | Optional | |
visibility (anyOf 1) | string | Alternative | The level of permission that a seller or other applications requires to view this custom attribute definition. The `Visibility` field controls who can read and write the custom attribute values and custom attribute definition. Specifies how the custom attribute definition and its values should be shared with the seller and other applications. If no value is specified, the value defaults to `VISIBILITY_HIDDEN`. See [Visibility](#type-visibility) for possible values Known values: VISIBILITY_HIDDEN, VISIBILITY_READ_ONLY, VISIBILITY_READ_WRITE_VALUES |
visibility (anyOf 2) | null | Alternative |
Delete Order Custom Attribute Definition — response body
| Field | Type | Presence | Description and constraints |
|---|---|---|---|
$ | object | Root | Represents a response from deleting an order custom attribute definition. |
errors | array | Optional | Any errors that occurred during the request. |
errors[] | Model | Each item | Expand Get Shift — response body — errors item |
Referenced models: Get Shift — response body — errors item
Delete Order Custom Attribute — response body
| Field | Type | Presence | Description and constraints |
|---|---|---|---|
$ | object | Root | Represents a response from deleting an order custom attribute. |
errors | array | Optional | Any errors that occurred during the request. |
errors[] | Model | Each item | Expand Get Shift — response body — errors item |
Referenced models: Get Shift — response body — errors item
List Order Custom Attribute Definitions — response body
| Field | Type | Presence | Description and constraints |
|---|---|---|---|
$ | object | Root | Represents a response from listing order custom attribute definitions. |
cursor | string | Optional | The cursor to provide 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](https://developer.squareup.com/docs/working-with-apis/pagination). Minimum length: 1 |
custom_attribute_definitions | array | Required within parent | The retrieved custom attribute definitions. If no custom attribute definitions are found, Square returns an empty object (`{}`). |
custom_attribute_definitions[] | Model | Each item | Expand Create Order Custom Attribute Definition — response body — custom attribute definition |
errors | array | Optional | Any errors that occurred during the request. |
errors[] | Model | Each item | Expand Get Shift — response body — errors item |
Referenced models: Create Order Custom Attribute Definition — response body — custom attribute definition, Get Shift — response body — errors item
List Order Custom Attributes — response body
| Field | Type | Presence | Description and constraints |
|---|---|---|---|
$ | object | Root | Represents a response from listing order custom attributes. |
cursor | string | Optional | The cursor to provide 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](https://developer.squareup.com/docs/working-with-apis/pagination). Minimum length: 1 |
custom_attributes | array | Optional | The retrieved custom attributes. If no custom attribute are found, Square returns an empty object (`{}`). |
custom_attributes[] | Model | Each item | Expand Upsert Order Custom Attribute — response body — custom attribute |
errors | array | Optional | Any errors that occurred during the request. |
errors[] | Model | Each item | Expand Get Shift — response body — errors item |
Referenced models: Upsert Order Custom Attribute — response body — custom attribute, Get Shift — response body — errors item
Retrieve Order Custom Attribute Definition — response body
| Field | Type | Presence | Description and constraints |
|---|---|---|---|
$ | object | Root | Represents a response from getting an order custom attribute definition. |
custom_attribute_definition | Model | Optional | Expand Create Order Custom Attribute Definition — response body — custom attribute definition The retrieved custom attribute definition. |
errors | array | Optional | Any errors that occurred during the request. |
errors[] | Model | Each item | Expand Get Shift — response body — errors item |
Referenced models: Create Order Custom Attribute Definition — response body — custom attribute definition, Get Shift — response body — errors item
Retrieve Order Custom Attribute — response body
| Field | Type | Presence | Description and constraints |
|---|---|---|---|
$ | object | Root | Represents a response from getting an order custom attribute. |
custom_attribute | Model | Optional | Expand Upsert Order Custom Attribute — response body — custom attribute The retrieved custom attribute. If `with_definition` was set to `true` in the request, the custom attribute definition is returned in the `definition field. |
errors | array | Optional | Any errors that occurred during the request. |
errors[] | Model | Each item | Expand Get Shift — response body — errors item |
Referenced models: Upsert Order Custom Attribute — response body — custom attribute, Get Shift — response body — errors item
Update Order Custom Attribute Definition — request body — body
| Field | Type | Presence | Description and constraints |
|---|---|---|---|
$ | object | Root | Represents an update request for an order custom attribute definition. |
custom_attribute_definition | Model | Required within parent | Expand Create Order Custom Attribute Definition — request body — body custom attribute definition The custom attribute definition that contains the fields to update. This endpoint supports sparse updates, so only new or changed fields need to be included in the request. For more information, see [Updatable definition fields](https://developer.squareup.com/docs/orders-custom-attributes-api/custom-attribute-definitions#updatable-definition-fields). To enable [optimistic concurrency](https://developer.squareup.com/docs/build-basics/common-api-patterns/optimistic-concurrency) control, include the optional `version` field and specify the current version of the custom attribute definition. |
idempotency_key | JSON | Optional | |
idempotency_key (anyOf 1) | string | Alternative | A unique identifier for this request, used to ensure idempotency. For more information, see [Idempotency](https://developer.squareup.com/docs/build-basics/common-api-patterns/idempotency). Maximum length: 45 Minimum length: 1 |
idempotency_key (anyOf 2) | null | Alternative |
Referenced models: Create Order Custom Attribute Definition — request body — body custom attribute definition
Update Order Custom Attribute Definition — response body
| Field | Type | Presence | Description and constraints |
|---|---|---|---|
$ | object | Root | Represents a response from updating an order custom attribute definition. |
custom_attribute_definition | Model | Optional | Expand Create Order Custom Attribute Definition — response body — custom attribute definition The updated order custom attribute definition. |
errors | array | Optional | Any errors that occurred during the request. |
errors[] | Model | Each item | Expand Get Shift — response body — errors item |
Referenced models: Create Order Custom Attribute Definition — response body — custom attribute definition, Get Shift — response body — errors item
Upsert Order Custom Attribute — request body — body
| Field | Type | Presence | Description and constraints |
|---|---|---|---|
$ | object | Root | Represents an upsert request for an order custom attribute. |
custom_attribute | Model | Required within parent | Expand Upsert Order Custom Attribute — request body — body custom attribute The custom attribute to create or update, with the following fields: - `value`. This value must conform to the `schema` specified by the definition. For more information, see [Value data types](https://developer.squareup.com/docs/customer-custom-attributes-api/custom-attributes#value-data-types). - `version`. To enable [optimistic concurrency](https://developer.squareup.com/docs/build-basics/common-api-patterns/optimistic-concurrency) control, include this optional field and specify the current version of the custom attribute. |
idempotency_key | JSON | Optional | |
idempotency_key (anyOf 1) | string | Alternative | A unique identifier for this request, used to ensure idempotency. For more information, see [Idempotency](https://developer.squareup.com/docs/build-basics/common-api-patterns/idempotency). Maximum length: 45 Minimum length: 1 |
idempotency_key (anyOf 2) | null | Alternative |
Referenced models: Upsert Order Custom Attribute — request body — body custom attribute
Upsert Order Custom Attribute — request body — body custom attribute
| Field | Type | Presence | Description and constraints |
|---|---|---|---|
$ | object | Root | A custom attribute value. Each custom attribute value has a corresponding `CustomAttributeDefinition` object. |
created_at | string | Optional | The timestamp that indicates when the custom attribute was created, in RFC 3339 format. Read only: true |
definition | Model | Optional | Expand Create Order Custom Attribute Definition — request body — body custom attribute definition A copy of the associated custom attribute definition object. This field is only set when the optional field is specified on the request. Read only: true |
key | JSON | Optional | |
key (anyOf 1) | string | Alternative | The identifier of the custom attribute definition and its corresponding custom attributes. This value can be a simple key, which is the key that is provided when the custom attribute definition is created, or a qualified key, if the requesting application is not the definition owner. The qualified key consists of the application ID of the custom attribute definition owner followed by the simple key that was provided when the definition was created. It has the format application_id:simple key. The value for a simple key can contain up to 60 alphanumeric characters, periods (.), underscores (_), and hyphens (-). Minimum length: 1 Pattern: ^([a-zA-Z0-9\._-]+:)?[a-zA-Z0-9\._-]{1,60}$ |
key (anyOf 2) | null | Alternative | |
updated_at | string | Optional | The timestamp that indicates when the custom attribute was created or was most recently updated, in RFC 3339 format. Read only: true |
value | JSON | Optional | |
value (anyOf 1) | JSON | Alternative | The value assigned to the custom attribute. It is validated against the custom attribute definition's schema on write operations. For more information about custom attribute values, see [Custom Attributes Overview](https://developer.squareup.com/docs/devtools/customattributes/overview). |
value (anyOf 2) | null | Alternative | |
version | integer | Optional | Read only. The current version of the custom attribute. This field is incremented when the custom attribute is changed. When updating an existing custom attribute value, you can provide this field and specify the current version of the custom attribute to enable [optimistic concurrency](https://developer.squareup.com/docs/build-basics/common-api-patterns/optimistic-concurrency). This field can also be used to enforce strong consistency for reads. For more information about strong consistency for reads, see [Custom Attributes Overview](https://developer.squareup.com/docs/devtools/customattributes/overview). |
visibility | string | Optional | The level of permission that a seller or other applications requires to view this custom attribute definition. The `Visibility` field controls who can read and write the custom attribute values and custom attribute definition. A copy of the `visibility` field value for the associated custom attribute definition. See [CustomAttributeDefinitionVisibility](#type-customattributedefinitionvisibility) for possible values One of: VISIBILITY_HIDDEN, VISIBILITY_READ_ONLY, VISIBILITY_READ_WRITE_VALUES Read only: true |
Referenced models: Create Order Custom Attribute Definition — request body — body custom attribute definition
Upsert Order Custom Attribute — response body
| Field | Type | Presence | Description and constraints |
|---|---|---|---|
$ | object | Root | Represents a response from upserting order custom attribute definitions. |
custom_attribute | Model | Optional | Expand Upsert Order Custom Attribute — response body — custom attribute The order custom attribute that was created or modified. |
errors | array | Optional | Any errors that occurred during the request. |
errors[] | Model | Each item | Expand Get Shift — response body — errors item |
Referenced models: Upsert Order Custom Attribute — response body — custom attribute, Get Shift — response body — errors item
Upsert Order Custom Attribute — response body — custom attribute
| Field | Type | Presence | Description and constraints |
|---|---|---|---|
$ | object | Root | A custom attribute value. Each custom attribute value has a corresponding `CustomAttributeDefinition` object. |
created_at | string | Optional | The timestamp that indicates when the custom attribute was created, in RFC 3339 format. Read only: true |
definition | Model | Optional | Expand Create Order Custom Attribute Definition — response body — custom attribute definition A copy of the associated custom attribute definition object. This field is only set when the optional field is specified on the request. Read only: true |
key | JSON | Optional | |
key (anyOf 1) | string | Alternative | The identifier of the custom attribute definition and its corresponding custom attributes. This value can be a simple key, which is the key that is provided when the custom attribute definition is created, or a qualified key, if the requesting application is not the definition owner. The qualified key consists of the application ID of the custom attribute definition owner followed by the simple key that was provided when the definition was created. It has the format application_id:simple key. The value for a simple key can contain up to 60 alphanumeric characters, periods (.), underscores (_), and hyphens (-). Minimum length: 1 Pattern: ^([a-zA-Z0-9\._-]+:)?[a-zA-Z0-9\._-]{1,60}$ |
key (anyOf 2) | null | Alternative | |
updated_at | string | Optional | The timestamp that indicates when the custom attribute was created or was most recently updated, in RFC 3339 format. Read only: true |
value | JSON | Optional | |
value (anyOf 1) | JSON | Alternative | The value assigned to the custom attribute. It is validated against the custom attribute definition's schema on write operations. For more information about custom attribute values, see [Custom Attributes Overview](https://developer.squareup.com/docs/devtools/customattributes/overview). |
value (anyOf 2) | null | Alternative | |
version | JSON | Optional | |
version (anyOf 1) | integer | Alternative | Read only. The current version of the custom attribute. This field is incremented when the custom attribute is changed. When updating an existing custom attribute value, you can provide this field and specify the current version of the custom attribute to enable [optimistic concurrency](https://developer.squareup.com/docs/build-basics/common-api-patterns/optimistic-concurrency). This field can also be used to enforce strong consistency for reads. For more information about strong consistency for reads, see [Custom Attributes Overview](https://developer.squareup.com/docs/devtools/customattributes/overview). |
version (anyOf 2) | string | Alternative | Pattern: ^-?[0-9]+(?:\.[0-9]+)?(?:[eE][+-]?[0-9]+)?$ |
visibility | string | Optional | The level of permission that a seller or other applications requires to view this custom attribute definition. The `Visibility` field controls who can read and write the custom attribute values and custom attribute definition. A copy of the `visibility` field value for the associated custom attribute definition. See [CustomAttributeDefinitionVisibility](#type-customattributedefinitionvisibility) for possible values Known values: VISIBILITY_HIDDEN, VISIBILITY_READ_ONLY, VISIBILITY_READ_WRITE_VALUES Read only: true |
Referenced models: Create Order Custom Attribute Definition — response body — custom attribute definition