Supplier Properties

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 elementDescriptionTypeDefault valueMandatory
nameName of the attributeALNUMyes
typeType of the attribute (TEXTFIELD = single line textfield, TEXTAREA = multi line text field, CHECKBOX = Checkbox)ALNUMyes
default_valueDefault valueALNUM
is_nvlShould the default value be used if there is no other value? 1=trueBOOL
<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}