Manufacturers
Methods allow you to get a complete list or a specific manufacturer in Eyrene, view information about them, update all fields, or only select manufacturer fields.
Retrieves a list of manufacturers.
- AuthorizationstringrequiredDescriptionString in "Token XXXXXX..." format.
- limitstringDescriptionThe number of results to return per page.
- offsetstringDescriptionThe initial index from which to return the results.
curl –i –X GET
https://test.eyrene.com/api/v1.5/categories/
-H ‘Authorization: Token 39fbb6e9-fbf9-459a-9e1b-416dbcf51875e’
–F "limit=2" \
–F "offset=0" {
"count":2,
"next":"http://example.com",
"previous":null,
"results":[
{
"id":1,
"name":"NARZAN"
},
{
"id":2,
"name":"SOBRANIE"
},
{
"id":3,
"name":"Organic Shop"
}
]
}Response parameters​
count integer
The number of manufacturers.
next string (uri) Nullable
Next page.
previous string (uri) Nullable
Previous page.
results array of objects
An array of objects with information about manufacturers:
- id string Manufacturer ID.
- name string Manufacturer name.

Сreate a new manufacturer.
- AuthorizationstringrequiredDescriptionString in "Token XXXXXX..." format.
- idstringDescriptionManufacturer ID.
- namestringDescriptionManufacturer name.
curl –i –X POST
https://test.eyrene.com/api/v1.5/manufacturers/
-H ‘Authorization: Token 39fbb6e9-fbf9-459a-9e1b-416dbcf51875e’
-F "id=165168161" \
-F "name=Henkel"{
"result": "CREATED"
}Retrieve detailed information about the manufacturer by ID.
- idstringrequiredDescriptionCategory ID.
- AuthorizationstringrequiredDescriptionString in "Token XXXXXX..." format.
curl –i –X GET
https://test.eyrene.com/api/v1.5/manufacturers/1234567890/
-H ‘Authorization: Token 39fbb6e9-fbf9-459a-9e1b-416dbcf51875e’ {
"id": 1234567890,
"name": "NARZAN"
}Response parameters​
id string
Manufacturer ID.
name string
Manufacturer name.

Update all category fields.
- idstringrequiredDescriptionCategory ID.
- AuthorizationstringrequiredDescriptionString in "Token XXXXXX..." format.
- idstringDescriptionNew manufacturer ID.
- namestringDescriptionManufacturer new name.
curl –i –X PUT
https://test.eyrene.com/api/v1.5/manufacturers/123456/
-H ‘Authorization: Token 39fbb6e9-fbf9-459a-9e1b-416dbcf51875e’
-F "id=195684" \
-F "name=BORJOMI"{
"id":195684,
"name":"BORJOMI"
}Response parameters​
id string
New manufacturer ID.
name string
Manufacturer's new name.

Update some of the manufacturer fields.
- idstringrequiredDescriptionCategory ID.
- AuthorizationstringrequiredDescriptionString in "Token XXXXXX..." format.
- idstringDescriptionNew manufacturer ID.
- namestringDescriptionManufacturer new name.
curl –i –X PATCH
https://test.eyrene.com/api/v1.5/manufacturers/123456/
-H ‘Authorization: Token 39fbb6e9-fbf9-459a-9e1b-416dbcf51875e’
-F "name=Aqua Minerale"{
"id": 123456,
"name": "Aqua Minerale"
}Response parameters​
id string
New manufacturer ID.
name string
Manufacturer's new name.