Brands

Provides you with all of the functionality that you need to create and maintain “brands” within the Divendo environment. Brands (or manufacturers) can be allocated to items within your catalog to enhance both the shopping and reporting experience.

Getting Brands

To retrieve a list of current “brands”, you would make an HTTP request:

GET

https://www.mystore.com/restapi/brands.json

[
    {
        "ID":1,
        "Name":"A2Z",
        "AccountNumber":"IH61446",
        "Telephone":
            {
                "Daytime":"01873 590100",
                "Evening":"",
                "Mobile":""
            },
        "Address":
            {
                "Title":"",
                "Firstname":"Faith",
                "Surname":"Tyler",
                "AddressLine1":"171 Hidden Dale Avenue",
                "AddressLine2":"",
                "Town":"",
                "County":"Oxfordshire",
                "Postcode":"BS30 6UU",
                "Country":"GB"
            }
    },
    {
        "ID":2,
        "Name":"Abus",
        "AccountNumber":"X70367",
        "Telephone":
            {
                "Daytime":"01405 238665",
                "Evening":"",
                "Mobile":""
            },
        "Address":
            {
                "Title":"",
                "Firstname":"Emery",
                "Surname":"Dudley",
                "AddressLine1":"58 Misty Panda Road",
                "AddressLine2":"",
                "Town":"",
                "County":"Herefordshire",
                "Postcode":"RM19 1ZY",
                "Country":"GB"
        }
    }
]

Lookup a Brand

To retrieve an existing “brand”, you would make an HTTP request:

GET

https://www.mystore.com/restapi/brands/{id}.json

{
    "ID":1,
    "Name":"A2Z",
    "AccountNumber":"IH61446",
    "Telephone":
        {
            "Daytime":"01873 590100",
            "Evening":"",
            "Mobile":""
        },
    "Address":
        {
            "Title":"",
            "Firstname":"Faith",
            "Surname":"Tyler",
            "AddressLine1":"171 Hidden Dale Avenue",
            "AddressLine2":"",
            "Town":"",
            "County":"Oxfordshire",
            "Postcode":"BS30 6UU",
            "Country":"GB"
        }
}

Creating a Brand

To create a new “brand”, you would make an HTTP request:

POST

https://www.mystore.com/restapi/brands.json

{
    "Name":"New Brand",
    "AccountNumber":"TEST1234",
    "Telephone":
        {
            "Daytime":"01900 999111",
            "Evening":"",
            "Mobile":""
        },
    "Address":
        {
            "Title":"Mr",
            "Firstname":"Test",
            "Surname":"Contact",
            "AddressLine1":"171 Hidden Dale Avenue",
            "AddressLine2":"",
            "Town":"Town Name",
            "County":"Somewhere",
            "Postcode":"BS30 6UU",
            "Country":"GB"
        }
}

Updating a Brand

To update an existing “brand”, you would make an HTTP request:

PUT

https://www.mystore.com/restapi/brands.json

{
    "ID":1,
    "Name":"Updated Name",
    "AccountNumber":"IH61446",
    "Telephone":
        {
            "Daytime":"01873 590100",
            "Evening":"",
            "Mobile":""
        },
    "Address":
        {
            "Title":"Mrs",
            "Firstname":"Faith",
            "Surname":"Tyler",
            "AddressLine1":"171 Hidden Dale Avenue",
            "AddressLine2":"",
            "Town":"",
            "County":"Oxfordshire",
            "Postcode":"BS30 6UU",
            "Country":"GB"
        }
}

Deleting a Brand

To delete an existing “brand”, you would make an HTTP request:

DELETE

https://www.mystore.com/restapi/brands/{id}.json

HTTP/1.1 200 OK
Back to top

Say Hello

Request a Quote