Ingredient
List Ingredients
List all ingredients with pagination and filtering options.
Authorization
API-TOKEN API-TOKEN<token>
Your partner API key. Send it in the API-TOKEN header on every request.
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": [ "exercitationem" ] }'{
"meta": {
"code": 200,
"status": "success",
"message": "Ingredients retrieved successfully."
},
"data": {
"current_page": 1,
"data": [
{
"id": "825b431c-0362-4fed-bea4-40c0fc8e7004",
"name_en": "Autem et",
"name_ar": "similique",
"deleted_at": null,
"market_id": "eef0da10-dd19-4a4c-ab3d-23dd1b548801",
"source_unit": "box",
"target_unit": "kg",
"source_rate": "86.67",
"target_rate": "79.48",
"minimum": "47.22",
"created_at": 1792593338736,
"updated_at": 1792593338736,
"maximum": "449.54",
"stock": null,
"status": "OUT_OF_STOCK",
"percent": "0.0000000000"
},
{
"id": "172929d0-b8b9-45ef-a311-84e99e046a39",
"name_en": "Et est",
"name_ar": "cum",
"deleted_at": null,
"market_id": "eef0da10-dd19-4a4c-ab3d-23dd1b548801",
"source_unit": "box",
"target_unit": "pcs",
"source_rate": "58.79",
"target_rate": "26.53",
"minimum": "15.18",
"created_at": 1792593338736,
"updated_at": 1792593338736,
"maximum": "414.33",
"stock": null,
"status": "OUT_OF_STOCK",
"percent": "0.0000000000"
},
{
"id": "f6d49c5b-c3ba-4ed1-88db-37739c22ec45",
"name_en": "Laborum illum",
"name_ar": "et",
"deleted_at": null,
"market_id": "eef0da10-dd19-4a4c-ab3d-23dd1b548801",
"source_unit": "kg",
"target_unit": "ml",
"source_rate": "23.06",
"target_rate": "53.28",
"minimum": "33.29",
"created_at": 1792593338736,
"updated_at": 1792593338736,
"maximum": "252.89",
"stock": null,
"status": "OUT_OF_STOCK",
"percent": "0.0000000000"
},
{
"id": "ecc0ed60-8e73-424b-a392-dc6af9a7d496",
"name_en": "Nostrum sint",
"name_ar": "adipisci",
"deleted_at": null,
"market_id": "eef0da10-dd19-4a4c-ab3d-23dd1b548801",
"source_unit": "g",
"target_unit": "l",
"source_rate": "21.08",
"target_rate": "78.90",
"minimum": "49.44",
"created_at": 1792593338736,
"updated_at": 1792593338736,
"maximum": "106.74",
"stock": null,
"status": "OUT_OF_STOCK",
"percent": "0.0000000000"
},
{
"id": "1a6e7d70-5228-4a07-af4f-3db63a0d1fff",
"name_en": "Saepe neque",
"name_ar": "esse",
"deleted_at": null,
"market_id": "eef0da10-dd19-4a4c-ab3d-23dd1b548801",
"source_unit": "g",
"target_unit": "ml",
"source_rate": "66.97",
"target_rate": "61.66",
"minimum": "8.49",
"created_at": 1792593338736,
"updated_at": 1792593338736,
"maximum": "327.62",
"stock": null,
"status": "OUT_OF_STOCK",
"percent": "0.0000000000"
},
{
"id": "e9b9d964-1db4-439c-831a-cc05abe781fc",
"name_en": "Tempore unde",
"name_ar": "quasi",
"deleted_at": null,
"market_id": "eef0da10-dd19-4a4c-ab3d-23dd1b548801",
"source_unit": "l",
"target_unit": "box",
"source_rate": "2.67",
"target_rate": "91.51",
"minimum": "44.27",
"created_at": 1792593338638,
"updated_at": 1792593338718,
"maximum": "468.16",
"stock": "36.73",
"status": "OUT_OF_STOCK",
"percent": "7.8456083300"
}
],
"first_page_url": "https://localhost:8000/api/v2/ingredients?page=1",
"from": 1,
"last_page": 1,
"last_page_url": "https://localhost:8000/api/v2/ingredients?page=1",
"links": [
{
"url": null,
"label": "« Previous",
"page": null,
"active": false
},
{
"url": "https://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": "https://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
}