Creates an order-related custom attribute definition.
POST
/v2/orders/custom-attribute-definitions
Creates an order-related custom attribute definition.
Use this endpoint to define a custom attribute that can be associated with orders.
After creating a custom attribute definition, you can set the custom attribute for orders in the Square seller account.
The custom attribute definition to create. Note the following:
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.name
must be unique (case-sensitive) across all visible customer-related custom attribute definitions for the seller.VISIBILITY_HIDDEN
.A unique identifier for this request, used to ensure idempotency. For more information, see Idempotency.