List all properties

GET /api/supplier-property-values
<?xml version="1.0" encoding="UTF-8"?>
<supplier-property-values type="array" page="1" per_page="100" total="2">
    <supplier-property-value>
        ...
    </supplier-property-value>
    <supplier-property-value>
        ...
    </supplier-property-value>
</supplier-property-values>

The list can be filtered with parameters:

GET /api/supplier-property-values?supplier_id=123

The following parameters can be used:

Parameter Description
supplier_id ID of a supplier
supplier_property_id ID of an attribute
value Value of an attribute

Get a single property

GET /api/supplier-property-values/{id}
<?xml version="1.0" encoding="UTF-8"?>
<supplier-property-value>
    <id type="integer">1</id>
    <supplier_id type="integer">2</supplier_id>
    <supplier_property_id type="integer">3</supplier_property_id>
    <type>TEXTFIELD</type>
    <name>Department</name>
    <value>Marketing</value>
</supplier-property-value>

The type of the attribute can be: TEXTFIELD = single line textfield, TEXTAREA = multi line text field, CHECKBOX = Checkbox

Set supplier property

POST /api/supplier-property-values
XML element Description Type Default value Mandatory
supplier_id ID of the supplier INT yes
supplier_property_id ID of the property INT yes
value Property value ALNUM yes
<supplier-property-value>
    <supplier_id>2</supplier_id>
    <supplier_property_id>3</supplier_property_id>
    <value>Sales department</value>
</supplier-property-value>
<?xml version="1.0" encoding="UTF-8"?>
<supplier-property-value>
    <id type="integer">1</id>
    <supplier_id type="integer">2</supplier_id>
    <supplier_property_id type="integer">3</supplier_property_id>
    <type>TEXTFIELD</type>
    <name>department</name>
    <value>Sales department</value>
</supplier-property-value>