BookingCustomAttributes
CreateBookingCustomAttributeDefinition
Creates a bookings custom attribute definition.
To call this endpoint with buyer-level permissions, set APPOINTMENTS_WRITE for the OAuth scope. To call this endpoint with seller-level permissions, set APPOINTMENTS_ALL_WRITE and APPOINTMENTS_WRITE for the OAuth scope.
For calls to this endpoint with seller-level permissions to succeed, the seller must have subscribed to Appointments Plus or Appointments Premium.
post/v2/bookings/custom-attribute-definitions
Request body
Response
Success
Example response
{
"custom_attribute_definition": {
"created_at": "2022-11-16T15:27:30Z",
"description": "The favorite shampoo of the customer.",
"key": "favoriteShampoo",
"name": "Favorite Shampoo",
"schema": {
"$ref": "https://developer-production-s.squarecdn.com/schemas/v1/common.json#squareup.common.String"
},
"updated_at": "2022-11-16T15:27:30Z",
"version": 1,
"visibility": "VISIBILITY_HIDDEN"
},
"errors": []
}