Skip to content

Latest commit

 

History

History
51 lines (42 loc) · 1.69 KB

retrieve-customer-custom-attribute-definition-response.md

File metadata and controls

51 lines (42 loc) · 1.69 KB

Retrieve Customer Custom Attribute Definition Response

Represents a RetrieveCustomerCustomAttributeDefinition response. Either custom_attribute_definition or errors is present in the response.

Structure

RetrieveCustomerCustomAttributeDefinitionResponse

Fields

Name Type Tags Description Getter
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.
CustomAttributeDefinition getCustomAttributeDefinition()
Errors List<Error> Optional Any errors that occurred during the request. List getErrors()

Example (as JSON)

{
  "custom_attribute_definition": {
    "created_at": "2022-04-26T15:27:30Z",
    "description": "The favorite movie of the customer.",
    "key": "favoritemovie",
    "name": "Favorite Movie",
    "schema": {
      "key1": "val1",
      "key2": "val2"
    },
    "updated_at": "2022-04-26T15:27:30Z",
    "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"
    }
  ]
}