name
(string) - mandatory
Classic fields
| string | Yes | This key is used to give the identifier of the field. This id must match with parameters used in |
| string | No | Indicates whether the field should be saved in the Only used for |
| string | No | Type of the field. By default, the |
| boolean | No | Indicates whether the field is mandatory or not. By default, fields are optional. |
| string | No | This key defines the name of the form element to which it must be placed after. Please note, the form element must be in the default form or declared before in the same form. It it also possible to place the element on the top of the form with the value If not defined, the element form will be placed at the bottom of the form. |
| object[string] | No | Enables to add custom validation to the field, which will be checked when the create button is clicked. |
Fields if the field is a list
options | |||
initial_value | |||
multiple | |||
searchable |
Request entries
Regarding the address:
address_1
- sent in thecustomer.addresses.[0].lines.[0]
field of thePOST /customers
queryaddress_2
- sent in thecustomer.addresses.[0].lines.[1]
field of thePOST /customers
querycity
- sent in thecustomer.addresses.[0].city
field of thePOST /customers
queryzip_code
- sent in thecustomer.addresses.[0].zip_code
field of thePOST /customers
querycountry
- sent in thecustomer.addresses.[0].regions.country.code
field of thePOST /customers
query
Regarding the contact - sent in the
customer.addresses.[0].contact
ANDcustomer.contact
fields of thePOST /customers
querytitle
first_name
last_name
phone_number
email
company_name
mobile_number
Regarding custom information
information.{custom_field}
sent in thecustomer.addresses.[0].information
field if target = address / sent in thecustomer.contact
field if target = addressexternal_id
sent in thecustomer.external_id
field. The target need to be set as customer.
Please note, the label of the field will be translated based on the translation key crm.<name>
.
Key | Mandatory | Type | Allowed values | Default value | Description |
---|---|---|---|---|---|
target | No | string | customer address | customer | This key defines which form is targetted: Only useful for |
type | No | string | text, email, tel, password, flip-switch, list | text | This key defines the HTML element is used.
|
options | No | string[] | / | / | This key is usable only if Content inside will be translated based on translation keys |
initial_value | No | string / bool | / | / | This key is usable ONLY if If multiple:true, use comma ',' to separate values. |
multiple | No | bool | / | false | This key is usable ONLY if key If key |
searchable | No | bool | / | false | This key is usable only if key |
required | No | bool | / | false | This key force completion to validate form. |
position_after | No | string | / | / | This key defines the name of the form element to which it must be placed after. Element which is named in this key MUST have been declared before in the same form as this one. If NOT defined, the element will be placed at the bottom of the form. |