Ingredient
List Ingredients
List all ingredients with pagination and filtering options.
Authorization
default AuthorizationBearer <token>
You can retrieve your token by logging in.
In: header
Header Parameters
X-API-Version*string
API contract version to target. See the Changelog for what changed in each version.
Default
"2.0.0"Value in
"2.3.0" | "2.2.0" | "2.1.0" | "2.0.0"Request Body
application/json
page?|
Must be at least 1.
per_page?|
Must be at least 1.
search?|
sort?|
key_by?|
includes*array<>
filter?
Response Body
application/json
application/json
application/json
application/json
application/json
curl -X GET "https://api.flavours.sa/dev/api/v2/ingredients" \ -H "X-API-Version: 2.3.0" \ -H "Content-Type: application/json" \ -d '{ "includes": [ "explicabo" ] }'{
"meta": {
"code": 200,
"status": "success",
"message": "Ingredients retrieved successfully."
},
"data": {
"current_page": 1,
"data": [
{
"id": "ab872e20-fab1-4767-a4da-50026817b5b4",
"name_en": "Consectetur consequuntur",
"name_ar": "reiciendis",
"deleted_at": null,
"market_id": "848aa3f5-fc3d-42d3-8cc9-4c6edd0140d0",
"source_unit": "l",
"target_unit": "pcs",
"source_rate": "51.82",
"target_rate": "45.33",
"minimum": "4.46",
"created_at": 1787446694374,
"updated_at": 1787446694374,
"maximum": "242.44",
"stock": null,
"status": "OUT_OF_STOCK",
"percent": "0.0000000000"
},
{
"id": "e392ce2e-93fb-404b-879e-7545cb470cd3",
"name_en": "Deleniti omnis",
"name_ar": "voluptas",
"deleted_at": null,
"market_id": "848aa3f5-fc3d-42d3-8cc9-4c6edd0140d0",
"source_unit": "g",
"target_unit": "pcs",
"source_rate": "49.72",
"target_rate": "28.02",
"minimum": "22.12",
"created_at": 1787446694374,
"updated_at": 1787446694374,
"maximum": "346.90",
"stock": null,
"status": "OUT_OF_STOCK",
"percent": "0.0000000000"
},
{
"id": "a0a51fce-5639-4bda-be47-d713bacdb11d",
"name_en": "Minima debitis",
"name_ar": "aut",
"deleted_at": null,
"market_id": "848aa3f5-fc3d-42d3-8cc9-4c6edd0140d0",
"source_unit": "ml",
"target_unit": "box",
"source_rate": "48.81",
"target_rate": "65.21",
"minimum": "21.41",
"created_at": 1787446694374,
"updated_at": 1787446694374,
"maximum": "356.90",
"stock": null,
"status": "OUT_OF_STOCK",
"percent": "0.0000000000"
},
{
"id": "021bbb93-f666-4154-a531-342263633a35",
"name_en": "Omnis ad",
"name_ar": "qui",
"deleted_at": null,
"market_id": "848aa3f5-fc3d-42d3-8cc9-4c6edd0140d0",
"source_unit": "kg",
"target_unit": "g",
"source_rate": "80.32",
"target_rate": "48.93",
"minimum": "42.52",
"created_at": 1787446694374,
"updated_at": 1787446694374,
"maximum": "454.54",
"stock": null,
"status": "OUT_OF_STOCK",
"percent": "0.0000000000"
},
{
"id": "9cd9a8e5-04e8-4fe6-8b4d-fdb1c942dfd5",
"name_en": "Sit ut",
"name_ar": "a",
"deleted_at": null,
"market_id": "848aa3f5-fc3d-42d3-8cc9-4c6edd0140d0",
"source_unit": "ml",
"target_unit": "g",
"source_rate": "93.51",
"target_rate": "85.91",
"minimum": "41.58",
"created_at": 1787446694374,
"updated_at": 1787446694374,
"maximum": "220.60",
"stock": null,
"status": "OUT_OF_STOCK",
"percent": "0.0000000000"
},
{
"id": "aff5e098-0656-4a24-af8e-b28bdc8ff80b",
"name_en": "Ipsum nesciunt",
"name_ar": "porro",
"deleted_at": null,
"market_id": "848aa3f5-fc3d-42d3-8cc9-4c6edd0140d0",
"source_unit": "pcs",
"target_unit": "ml",
"source_rate": "15.61",
"target_rate": "46.85",
"minimum": "26.89",
"created_at": 1787446694271,
"updated_at": 1787446694337,
"maximum": "354.52",
"stock": "32.78",
"status": "OUT_OF_STOCK",
"percent": "9.2463048600"
}
],
"first_page_url": "http://localhost:8000/api/v2/ingredients?page=1",
"from": 1,
"last_page": 1,
"last_page_url": "http://localhost:8000/api/v2/ingredients?page=1",
"links": [
{
"url": null,
"label": "« Previous",
"page": null,
"active": false
},
{
"url": "http://localhost:8000/api/v2/ingredients?page=1",
"label": "1",
"page": 1,
"active": true
},
{
"url": null,
"label": "Next »",
"page": null,
"active": false
}
],
"next_page_url": null,
"path": "http://localhost:8000/api/v2/ingredients",
"per_page": 20,
"prev_page_url": null,
"to": 6,
"total": 6
}
}{
"meta": {
"code": 401,
"status": "error",
"message": "Unauthenticated."
},
"data": null
}{
"meta": {
"code": 403,
"status": "error",
"message": "Unauthorized."
},
"data": null
}{
"meta": {
"code": 404,
"status": "error",
"message": "Resource not found."
},
"data": null
}{
"meta": {
"code": 500,
"status": "error",
"message": "Internal server error."
},
"data": null
}