Flavours API
Ingredient

Increase Ingredient Stock

POST
/api/v2/ingredients/{ingredientId}/increase

Increase the stock of an ingredient for a branch and record the history.

AuthorizationBearer <token>

You can retrieve your token by logging in.

In: header

Path Parameters

ingredientId*string

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

market_id*string

Must match an existing stored value.

branch_id*string

Must match an existing stored value.

qty*number
cost?|

Must be at least 0.

notes?|

Must not be greater than 500 characters.

Response Body

application/json

application/json

application/json

application/json

application/json

curl -X POST "https://api.flavours.sa/dev/api/v2/ingredients/molestiae/increase" \  -H "X-API-Version: 2.3.0" \  -H "Content-Type: application/json" \  -d '{    "market_id": "aliquam",    "branch_id": "quaerat",    "qty": 1606  }'
{
  "meta": {
    "code": 200,
    "status": "success",
    "message": "Ingredient increased successfully."
  },
  "data": {
    "ingredient_branch_id": "79f39961-2d8a-429a-bdb2-bafcb1dfb5b6",
    "source_id": "dd964286-5d5d-4a1e-97f4-46b1c000998a",
    "source_type": "INGREDIENT",
    "type": "INGREDIENT_INCREASE",
    "qty": "20.00",
    "cost": 5,
    "notes": "Weekly restock",
    "created_at": 1787446694721,
    "updated_at": 1787446694721,
    "id": 5
  }
}
{
  "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
}