Skip to content

CustomerAttributePayload ​

Type: schema

TypeScript Definition ​

typescript
CustomerAttributePayload: {{
            /** @description The target attribute's `id` or `slug`: an `active`, `custom` attribute of the store, read-only ones included. `linked` attributes are set from KYC documents and `system` ones by Commerce Engine: both are refused. */
            key: string;
            /** @description The value, of the attribute's `attribute_type` (a string for `String`, a boolean for `Boolean`, a list for `List`, an ISO 8601 date-time with a time zone for `DateTime`), at most 4 KB as JSON. `null`, an empty string or only spaces clears it. */
            value: string | number | boolean | unknown[] | {
                [key: string]: unknown;
            } | null;
        };
        /** CustomerBankAccount */
}

OpenAPI Schema ​

json
{
  "type": "object",
  "properties": {
    "key": {
      "description": "The target attribute's `id` or `slug`: an `active`, `custom` attribute of the store, read-only ones included. `linked` attributes are set from KYC documents and `system` ones by Commerce Engine: both are refused.",
      "type": "string"
    },
    "value": {
      "description": "The value, of the attribute's `attribute_type` (a string for `String`, a boolean for `Boolean`, a list for `List`, an ISO 8601 date-time with a time zone for `DateTime`), at most 4 KB as JSON. `null`, an empty string or only spaces clears it.",
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "number"
        },
        {
          "type": "boolean"
        },
        {
          "type": "array"
        },
        {
          "type": "object",
          "additionalProperties": true
        },
        {
          "type": "null"
        }
      ]
    }
  },
  "externalDocs": {
    "url": "https://llm-docs.commercengine.io/admin-pos/schemas/CustomerAttributePayload"
  },
  "required": [
    "key",
    "value"
  ],
  "title": "CustomerAttributePayload",
  "x-tags": [
    "Customers"
  ]
}

Auto-generated from OpenAPI spec and TypeScript definitions

Last updated: