Represents a RetrieveLocationCustomAttributeDefinition response.
Either custom_attribute_definition
or errors
is present in the response.
RetrieveLocationCustomAttributeDefinitionResponse
Name | Type | Tags | Description |
---|---|---|---|
CustomAttributeDefinition |
CustomAttributeDefinition |
Optional | Represents a definition for custom attribute values. A custom attribute definition specifies the key, visibility, schema, and other properties for a custom attribute. |
Errors |
IList<Error> |
Optional | Any errors that occurred during the request. |
{
"custom_attribute_definition": {
"created_at": "2022-12-02T19:06:36.559Z",
"description": "Bestselling item at location",
"key": "bestseller",
"name": "Bestseller",
"schema": {
"key1": "val1",
"key2": "val2"
},
"updated_at": "2022-12-02T19:06:36.559Z",
"version": 1,
"visibility": "VISIBILITY_READ_WRITE_VALUES"
},
"errors": [
{
"category": "MERCHANT_SUBSCRIPTION_ERROR",
"code": "INVALID_EXPIRATION",
"detail": "detail6",
"field": "field4"
},
{
"category": "MERCHANT_SUBSCRIPTION_ERROR",
"code": "INVALID_EXPIRATION",
"detail": "detail6",
"field": "field4"
},
{
"category": "MERCHANT_SUBSCRIPTION_ERROR",
"code": "INVALID_EXPIRATION",
"detail": "detail6",
"field": "field4"
}
]
}