https://test.digitalis.ba/apihttps://digitalis.ba/apiThis API uses Bearer Token authentication. All requests must include a valid token in the Authorization header.
The token will be securely provided by our team.
Authorization: Bearer YOUR_TOKEN_HERE
GET /api/products HTTP/1.1 Host: https://test.digitalis.ba Authorization: Bearer YOUR_TOKEN_HERE
Returns a list of brands stored in the database.
| Field | Type | Description |
|---|---|---|
| success | boolean | 1 on success, 0 on failure |
| message | string | Error message if failed |
| data | array | List of brands |
{
"success": 1,
"message": "",
"data": [
{
"id": 1,
"name": "Zilan"
},
{
"id": 2,
"name": "Samsung"
},
{
...
}
]
}Returns a list of SUPER categories stored in the database.
| Field | Type | Description |
|---|---|---|
| success | boolean | 1 on success, 0 on failure |
| message | string | Error message if failed |
| data | array | List of super categories |
{
"success": 1,
"message": "",
"data": [
{
"id": 1,
"name": "Mobilni uređaji"
},
{
"id": 2,
"name": "Audio & Video"
},
{
...
}
]
}Returns a list of categories stored in the database.
| Field | Type | Description |
|---|---|---|
| success | boolean | 1 on success, 0 on failure |
| message | string | Error message if failed |
| data | array | List of categories |
{
"success": 1,
"message": "",
"data": [
{
"id": 1,
"super_category_id": 2,
"name": "HDMI & Video"
},
{
"id": 2,
"super_category_id": 2,
"name": "Audio"
},
{
...
}
]
}Returns a list of subcategories stored in the database.
| Field | Type | Description |
|---|---|---|
| success | boolean | 1 on success, 0 on failure |
| message | string | Error message if failed |
| data | array | List of subcategories |
{
"success": 1,
"message": "",
"data": [
{
"id": 1,
"category_id": 1,
"name": "HDMI"
},
{
"id": 2,
"category_id": 1,
"name": "Scart"
},
{
"id": 3,
"category_id": 1,
"name": "VGA"
},
{
...
}
]
}Returns categories with nested subcategories.
| Field | Type | Description |
|---|---|---|
| success | boolean | 1 on success, 0 on failure |
| message | string | Error message if failed |
| data | array | Contains categories with nested subcategories. |
{
"success": 1,
"message": "",
"data": [
{
"id": 1,
"name": "HDMI & Video",
"sub": [
{
"id": 1,
"category_id": 1,
"name": "HDMI"
},
{
"id": 2,
"category_id": 1,
"name": "Scart"
},
{
"id": 3,
"category_id": 1,
"name": "VGA"
},
{
...
}
]
},
{
"id": 2,
"name": "Audio",
"sub": [
{
"id": 1,
"category_id": 2,
"name": "3.5mm"
},
{
...
}
]
},
{
...
}
]
}Returns a list of products stored in the database.
| Field | Type | Description |
|---|---|---|
| success | boolean | 1 on success, 0 on failure |
| message | string | Error message if failed |
| data | array | List of products |
{
"success": 1,
"message": "",
"data": [
{
"ID": 7775,
"EAN": "3871284055003",
"Model": "A4\/Solution",
"name": "Papir za printer, A4, 80g, 500 listova",
"brand_id": 1,
"description": "Papir za Laser printer, Skenere, Fax aparate, InkJet printere, A4 ( 210 x 297 ), 80g , 500 listova pakovanje, bijeli.",
"weight_netto": "2.5 kg",
"weight": "2.5 kg",
"weight_packed": "12.5 kg",
"warranty": 12,
"category_id": 71,
"subcategory_id": 447,
"RRPrice": "12.90",
"stock": "20.00"
},
{
"ID": 11991,
"EAN": "3838883574014",
"Model": "A3\/R-Copy",
"name": "Papir za printer, A3, 80 g, 500 listova",
"brand_id": 1,
"description": "Papir za Laser printer, Skenere, InkJet printere, A3, 500 listova, 80 g ",
"weight_netto": "5 kg",
"weight": "5.02 kg",
"weight_packed": "25.1 kg",
"warranty": 12,
"category_id": 71,
"subcategory_id": 447,
"action": 1,
"RRPrice": "16.90",
"RRPrice_before": "19.90",
"date_start": "2026-08-11",
"date_end": "2026-08-28",
"stock": "1.00"
}
],
"current_page": 1,
"total_pages": 18
}Creates a document with products you sent.
| Field | Type | Description |
|---|---|---|
| pay (optional) | int |
|
| delivery_price (optional) | float | If provided, a delivery item will be added to the document with this price. |
| INFORMATION OF BUYER | ||
| buyer.name * | string | User who buying |
| buyer.address * | string | Address for delivery |
| buyer.town * | string | Town for delivery |
| buyer.zip * | string | Postal code for delivery |
| buyer.email (optional) | Email of user for info | |
| buyer.phone (optional) | numeric | Phone of user for info |
| PRODUCTS (up to 100) | ||
| products.[ 0 .. 100 ].id * | int | Product ID |
| products.[ 0 .. 100 ].qty * | float | Quantity for order |
| products.[ 0 .. 100 ].price (optional) | float | Price per unit (if permitted, otherwise, standard price will be used) |
{
"pay": 1,
"delivery_price": "0.00",
"buyer": {
"name": "Nedžad Alibašić",
"address": "Moja ulica 45",
"town": "Travnik",
"zip": "72270",
"email": "nedzad@digitalis.ba"
},
"products": [
{
"id": 1000,
"qty": 4,
"price": "6.90"
},
{
"id": 1001,
"qty": 5,
"price": "7.90"
},
{
"id": 1000,
"qty": 6,
"price": "6.90"
}
]
}| Field | Type | Description |
|---|---|---|
| success | boolean | 1 on document created |
| message | string | Error message if failed |
| id | int | Document ID that is created |
{
"success": 1,
"message": "",
"id": 1930968
}Returns a data of order and products.
| Field | Type | Description |
|---|---|---|
| id * | int | The ID of the order returned by the orders/create endpoint. |
| Field | Type | Description |
|---|---|---|
| success | boolean | 1 on success, 0 on failure |
| message | string | Error message if failed |
| data | array | array of data of order and products |
{
"success": 1,
"message": "",
"data": {
"oid_id": 1,
"products": [
{
"aid": 1000,
"price": "19.90",
"rebate": "34.3",
"quantity_ordered": 5,
"quantity_delivered": 3
},
{
...
}
]
}
}