post

/customers/attributes

Creates a Customer Attribute. Multiple customer attributes can be created in one call.

Required Fields

  • name
  • type

Notes

Once the data type is set, it can not be changed. The attribute will need to be deleted then created again with the new data type. This will also delete it from the customer.

Customer attributes are created separately from the customer. After the name and type are created, then the attributes can be added to the customer.

A store cannot have more than 50 customer attributes.

Authorization

apiKey - X-Auth-Client
apiKey - X-Auth-Token

Request Parameters

2 Headers

Request Body

1 Example
Schema
array[object]
name
string

Attribute name.

2 validations + required
type
string

Attribute type should match one of: string, number, date.

2 validations + required

Responses

1 Example

Send a Test Request

Send requests directly from the browser (CORS must be enabled)
$$.env
2 variables not set
store_hash
X-Auth-Client
X-Auth-Token