- Readme
- Developer Guide
- Authorization
- Includables
- Pagination
- Sorting
- Retrieve Market Information
- Retrieve Branch Information
- Me
- Branches
- Orders
- Customers
- Products
- Product Categories
- Discounts
- Payment Methods
- Table
- Printer
- Webhook
List
DEVELOPMENT
https://api.flavours.sa/dev/api/v2
DEVELOPMENT
https://api.flavours.sa/dev/api/v2
GET
https://api.flavours.sa/dev/api/v2
Request Body#
Validation#
Field | Type | Rule | Description |
---|---|---|---|
search | string | nullable | |
includes[] | array | nullable | Read more on the Includables page |
filter[market_id] | string | nullable | Id from Market model |
filter[branch_id] | string | nullable | Id from Branch model |
page | integer | nullable | Read more on the Pagination page |
per_page | integer | nullable default:20 | Read more on the Pagination page |
Field | Rule | Condition |
---|---|---|
filter[market_id] | required | User authentication role SUBSCRIBER |
filter[branch_id] | required | User authentication role SUBSCRIBER |
Request
Authorization
Provide your bearer token in the
Authorization
header when making requests to protected resources.Example:
Authorization: Bearer ********************
Query Params
search
string
optional
includes[]
array[string]
optional
Example:
["market","branch"]
filter[market_id]
string
optional
Example:
b5d70a92-5d2e-4f89-8e52-1827cfbd01f4
filter[branch_id]
string
optional
Example:
6b14ac8c-8f23-4473-beb5-6777116363a1
page
integer
optional
Example:
1
per_page
integer
optional
Example:
20
Request samples
Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R
Request Request Example
Shell
JavaScript
Java
Swift
curl --location -g --request GET 'https://api.flavours.sa/dev/api/v2/tables?search=&includes[]=market&includes[]=branch&filter[market_id]=b5d70a92-5d2e-4f89-8e52-1827cfbd01f4&filter[branch_id]=6b14ac8c-8f23-4473-beb5-6777116363a1&page=1&per_page=20'
Responses
🟢200List | 200
application/json
Body
meta
object
required
code
integer
required
status
string
required
message
string
required
data
object
required
current_page
integer
required
data
array [object {4}]
required
first_page_url
string
required
from
integer
required
last_page
integer
required
last_page_url
string
required
links
array [object {3}]
required
next_page_url
string | null
required
path
string
required
per_page
integer
required
prev_page_url
null
required
to
integer
required
total
integer
required
Example
{
"meta": {
"code": 200,
"status": "success",
"message": "Data Loaded Successfully"
},
"data": {
"current_page": 1,
"data": [
{
"id": 20,
"market_id": "30499025-43e2-4a77-bc29-13066288fc3f",
"branch_id": "8f9a2ea4-8e13-4c11-8626-c0408bbdc791",
"code": "594029"
},
{
"id": 19,
"market_id": "30499025-43e2-4a77-bc29-13066288fc3f",
"branch_id": "8f9a2ea4-8e13-4c11-8626-c0408bbdc791",
"code": "745684"
},
{
"id": 18,
"market_id": "30499025-43e2-4a77-bc29-13066288fc3f",
"branch_id": "8f9a2ea4-8e13-4c11-8626-c0408bbdc791",
"code": "623140"
},
{
"id": 17,
"market_id": "30499025-43e2-4a77-bc29-13066288fc3f",
"branch_id": "8f9a2ea4-8e13-4c11-8626-c0408bbdc791",
"code": "918880"
},
{
"id": 16,
"market_id": "30499025-43e2-4a77-bc29-13066288fc3f",
"branch_id": "8f9a2ea4-8e13-4c11-8626-c0408bbdc791",
"code": "336138"
},
{
"id": 15,
"market_id": "30499025-43e2-4a77-bc29-13066288fc3f",
"branch_id": "8f9a2ea4-8e13-4c11-8626-c0408bbdc791",
"code": "459322"
},
{
"id": 14,
"market_id": "30499025-43e2-4a77-bc29-13066288fc3f",
"branch_id": "8f9a2ea4-8e13-4c11-8626-c0408bbdc791",
"code": "282544"
},
{
"id": 13,
"market_id": "30499025-43e2-4a77-bc29-13066288fc3f",
"branch_id": "8f9a2ea4-8e13-4c11-8626-c0408bbdc791",
"code": "897991"
},
{
"id": 12,
"market_id": "30499025-43e2-4a77-bc29-13066288fc3f",
"branch_id": "8f9a2ea4-8e13-4c11-8626-c0408bbdc791",
"code": "720582"
},
{
"id": 11,
"market_id": "30499025-43e2-4a77-bc29-13066288fc3f",
"branch_id": "8f9a2ea4-8e13-4c11-8626-c0408bbdc791",
"code": "868932"
},
{
"id": 10,
"market_id": "30499025-43e2-4a77-bc29-13066288fc3f",
"branch_id": "8f9a2ea4-8e13-4c11-8626-c0408bbdc791",
"code": "741268"
},
{
"id": 9,
"market_id": "30499025-43e2-4a77-bc29-13066288fc3f",
"branch_id": "8f9a2ea4-8e13-4c11-8626-c0408bbdc791",
"code": "686682"
},
{
"id": 8,
"market_id": "30499025-43e2-4a77-bc29-13066288fc3f",
"branch_id": "8f9a2ea4-8e13-4c11-8626-c0408bbdc791",
"code": "765509"
},
{
"id": 7,
"market_id": "30499025-43e2-4a77-bc29-13066288fc3f",
"branch_id": "8f9a2ea4-8e13-4c11-8626-c0408bbdc791",
"code": "100771"
},
{
"id": 6,
"market_id": "30499025-43e2-4a77-bc29-13066288fc3f",
"branch_id": "8f9a2ea4-8e13-4c11-8626-c0408bbdc791",
"code": "532777"
},
{
"id": 5,
"market_id": "30499025-43e2-4a77-bc29-13066288fc3f",
"branch_id": "8f9a2ea4-8e13-4c11-8626-c0408bbdc791",
"code": "451748"
},
{
"id": 4,
"market_id": "30499025-43e2-4a77-bc29-13066288fc3f",
"branch_id": "8f9a2ea4-8e13-4c11-8626-c0408bbdc791",
"code": "649507"
},
{
"id": 3,
"market_id": "30499025-43e2-4a77-bc29-13066288fc3f",
"branch_id": "8f9a2ea4-8e13-4c11-8626-c0408bbdc791",
"code": "184436"
},
{
"id": 2,
"market_id": "30499025-43e2-4a77-bc29-13066288fc3f",
"branch_id": "8f9a2ea4-8e13-4c11-8626-c0408bbdc791",
"code": "732582"
},
{
"id": 1,
"market_id": "30499025-43e2-4a77-bc29-13066288fc3f",
"branch_id": "8f9a2ea4-8e13-4c11-8626-c0408bbdc791",
"code": "548025"
}
],
"first_page_url": "http://localhost:8000/api/table?page=1",
"from": 1,
"last_page": 1,
"last_page_url": "http://localhost:8000/api/table?page=1",
"links": [
{
"url": null,
"label": "« Previous",
"active": false
},
{
"url": "http://localhost:8000/api/table?page=1",
"label": "1",
"active": true
},
{
"url": null,
"label": "Next »",
"active": false
}
],
"next_page_url": null,
"path": "http://localhost:8000/api/table",
"per_page": 20,
"prev_page_url": null,
"to": 20,
"total": 20
}
}
🟠422List | 422