List all supplier properties

GET /api/supplier-properties
<?xml version="1.0" encoding="UTF-8"?>
<supplier-properties type="array">
    <supplier-property>
        ...
    </supplier-property>
    <supplier-property>
        ...
    </supplier-property>
</supplier-properties>

Get a single supplier property

GET /api/supplier-properties/{id}
<?xml version="1.0" encoding="UTF-8"?>
<supplier-property>
    <id type="integer">7</id>
    <account_id type="integer">1</account_id>
    <name>Premium supplier</name>
    <type>CHECKBOX</type>
</supplier-property>

Create supplier property

POST /api/supplier-properties
XML element Description Type Default value Mandatory
name Name of the attribute ALNUM yes
type Type of the attribute (TEXTFIELD = single line textfield, TEXTAREA = multi line text field, CHECKBOX = Checkbox) ALNUM yes
default_value Default value ALNUM
is_nvl Should the default value be used if there is no other value? 1=true BOOL
<supplier-property>
    <name>Birthday</name>
    <type>TEXTFIELD</type>
</supplier-property>
<?xml version="1.0" encoding="UTF-8"?>
<supplier-property>
    <id type="integer">11</id>
    <account_id type="integer">1</account_id>
    <name>Birthday</name>
    <type>TEXTFIELD</type>
</supplier-property>

Edit supplier property

PUT /api/supplier-properties/{id}
<supplier-property>
    <name>private address</name>
    <type>TEXTAREA</type>
</supplier-property>

Delete property

DELETE /api/supplier-properties/{id}