Resource Access¶
In order to use the Quasydoc API, an access token has to be obtained using one of the previously mentioned grant flows.
Example of an API request:
GET /api/products HTTP/1.1
Host: quasydoctest.be
Authorization: Bearer ed189777fd5a2bfc5fa0ba6d12a30349b9218fc8
The access token has to be sent via the Authorization request-header field in the form of a “Bearer” type.
If the access token is missing, or invalid, the API will return an error.
An example of 2 API endpoints:
- /products
- /products/{product_id}
Please contact Quasydoc for more information about the available endpoints.
Example of the JSON respone for a /products request:
{
"data": [
{
"prodref": "00001",
"gtin": "",
"prodname": {
"nl": "Aardappelen",
"fr": "Pommes de terre",
"en": "Potatoes",
"de": "Kartoffeln"
},
"prodgroup": {
"nl": "Ingrediënten",
"fr": "Ingrédients",
"en": "Ingredients",
"de": "Zutaten"
},
"sales": false,
"active": true,
"base_um": "",
"netto_weight_per_bum": null,
"allergens": null
},
{
"prodref": "00002",
"gtin": "",
"prodname": {
"nl": "Cassave",
"fr": "Cassave",
"en": "Cassave",
"de": "Maniok"
},
"prodgroup": {
"nl": "Ingrediënten",
"fr": "Ingrédients",
"en": "Ingredients",
"de": "Zutaten"
},
"sales": false,
"active": true,
"base_um": "",
"netto_weight_per_bum": null,
"allergens": null
},
...
],
"pagination": {
"total": 240,
"count": 20,
"per_page": 20,
"current_page": 1,
"total_pages": 12,
"links": {
"next": "https://quasydoc.eu/api/products?include=allergens&page=2"
}
}
}