Skip to content

Latest commit

 

History

History
56 lines (47 loc) · 1.56 KB

create-order-custom-attribute-definition-response.md

File metadata and controls

56 lines (47 loc) · 1.56 KB

Create Order Custom Attribute Definition Response

Represents a response from creating an order custom attribute definition.

Structure

Create Order Custom Attribute Definition Response

Fields

Name Type Tags Description
custom_attribute_definition Custom Attribute Definition Hash 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 Array<Error Hash> Optional Any errors that occurred during the request.

Example (as JSON)

{
  "custom_attribute_definition": {
    "created_at": "2022-10-06T16:53:23.141Z",
    "description": "The number of people seated at a table",
    "key": "cover-count",
    "name": "Cover count",
    "schema": {
      "key1": "val1",
      "key2": "val2"
    },
    "updated_at": "2022-10-06T16:53:23.141Z",
    "version": 1,
    "visibility": "VISIBILITY_READ_WRITE_VALUES"
  },
  "errors": [
    {
      "category": "MERCHANT_SUBSCRIPTION_ERROR",
      "code": "MAP_KEY_LENGTH_TOO_LONG",
      "detail": "detail6",
      "field": "field4"
    },
    {
      "category": "MERCHANT_SUBSCRIPTION_ERROR",
      "code": "MAP_KEY_LENGTH_TOO_LONG",
      "detail": "detail6",
      "field": "field4"
    },
    {
      "category": "MERCHANT_SUBSCRIPTION_ERROR",
      "code": "MAP_KEY_LENGTH_TOO_LONG",
      "detail": "detail6",
      "field": "field4"
    }
  ]
}