Define and maintain additional fields for your commerce data.
Update existing custom field
Update existing custom field
path Parameters
custom_field_idinteger · int64 · requiredcustom field id
Request Body
nameobjectObject of names by lagnuage id
Example: {"3":"House num"}typestringFill the type of the custom field (there is api request for valid list of types)
Example: radiolocationstringThe location of the custom field (now only 'address available')
Example: addressvalidationstringA valid regex pattern for the custom field (leave empty to allow all chars)
Example:sort_orderintegerThe order of the custom field in the relation to another fields
slugstringField identifier without spaces. Omit it to generate one automatically.
statusinteger · enumThe status of the custom field ('1' means its active)
Enum values:01requiredinteger · enumIf field is required pass '1'
Enum values:01custom_field_valueobject[]Array of objects with data of the custom field values (only if its multi value field like radio or checkbox)
Responses
Custom field deleted successfullyy
successbooleanExample: trueresponseobject
Create new custom field
Create new custom field
Request Body
nameobjectObject of names by lagnuage id
Example: {"3":"House num"}typestringFill the type of the custom field (there is api request for valid list of types)
Example: radiolocationstringThe location of the custom field (now only 'address available')
Example: addressvalidationstringA valid regex pattern for the custom field (leave empty to allow all chars)
Example:sort_orderintegerThe order of the custom field in the relation to another fields
slugstringField identifier without spaces. Omit it to generate one automatically.
statusinteger · enumThe status of the custom field ('1' means its active)
Enum values:01requiredinteger · enumIf field is required pass '1'
Enum values:01custom_field_valueobject[]Array of objects with data of the custom field values (only if its multi value field like radio or checkbox)
Responses
Custom field deleted successfullyy
successbooleanExample: trueresponseobject