Preparation List

Get the list of the preparations including rows since a date

URL : /api/v1/xpreparation?since={Date}

Method : GET

Auth required : Key-Value pairs on Header

Example : https://demo.calybra.com/api/v1/xpreparation?since=2023-04-01

Success Response

Code : 200 OK

Content examples

[
    {
        "Id": "ca0709bc-9e39-417a-b563-861f88935e15",
        "StartDate": "2023-05-11T12:36:36",
        "EndDate": "2023-05-11T12:36:36",
        "ExpectedQuantity": 3000.000,
        "EffectiveQuantity": 3000.000,
        "Description": "ricetta neutra",
        "RecipeId": "247dc67c-7094-42bd-ab95-87d7cafc2d32",
        "MeasureUnitId": "g",
        "SpecificWeight": 1.000,
        "User": "Administrator",
        "ScaleSerialNumber": "3007V1000461100",
        "BatchProductionName": "L231311236",
        "LastUpdate": "2023-05-11T10:36:47.2",
        "Suspended": null,
        "SuspendedDate": null,
        "Planned": null,
        "PlannedDate": null,
        "WeightLoss": null,
        "Rows": [
            {
                "Id": "18c1175a-05ec-487d-ad3b-7c74651041f6",
                "RowNumber": 1,
                "MeasureUnitId": "g",
                "IngredientId": "480795b8-03ed-4fcd-80c1-4a6c221734fb",
                "Ingredient": "zucchero",
                "EffectiveQuantity": 1000.000,
                "BatchProductionName": "",
                "Description": "zucchero",
                "Batches": null
            },
            {
                "Id": "44f620f3-ca0b-4844-b639-5e40dbdaca7f",
                "RowNumber": 0,
                "MeasureUnitId": "g",
                "IngredientId": "0dd19a09-c7a9-4aae-a78a-0159dc9c3b95",
                "Ingredient": "acqua",
                "EffectiveQuantity": 1000.000,
                "BatchProductionName": "",
                "Description": "acqua",
                "Batches": null
            },
            {
                "Id": "a2b21b6b-1a86-4cbe-b9b9-f5f03439d919",
                "RowNumber": 2,
                "MeasureUnitId": "g",
                "IngredientId": "920df9dd-3fb1-48b3-a711-b2d9ef29099c",
                "Ingredient": "farina",
                "EffectiveQuantity": 1000.000,
                "BatchProductionName": "",
                "Description": "farina",
                "Batches": null
            }
        ],
        "RequestedFormats": []
    },
    {
        "Id": "cba1c742-26a6-425a-880e-91b3c276001e",
        "StartDate": "2023-04-10T12:36:48",
        "EndDate": "2023-04-10T12:36:48",
        "ExpectedQuantity": 2500.000,
        "EffectiveQuantity": 2500.000,
        "Description": "ricetta neutra",
        "RecipeId": "247dc67c-7094-42bd-ab95-87d7cafc2d32",
        "MeasureUnitId": "g",
        "SpecificWeight": 1.000,
        "User": "Administrator",
        "ScaleSerialNumber": "3007V1000461100",
        "BatchProductionName": "L231001236",
        "LastUpdate": "2023-05-11T10:37:05.96",
        "Suspended": null,
        "SuspendedDate": null,
        "Planned": null,
        "PlannedDate": null,
        "WeightLoss": null,
        "Rows": [
            {
                "Id": "4a44ef67-96cc-4504-9c5b-fde0d2fd5ea0",
                "RowNumber": 0,
                "MeasureUnitId": "g",
                "IngredientId": "0dd19a09-c7a9-4aae-a78a-0159dc9c3b95",
                "Ingredient": "acqua",
                "EffectiveQuantity": 833.000,
                "BatchProductionName": "",
                "Description": "acqua",
                "Batches": null
            },
            {
                "Id": "98cc542c-7099-4c70-92de-93d58734e31f",
                "RowNumber": 1,
                "MeasureUnitId": "g",
                "IngredientId": "480795b8-03ed-4fcd-80c1-4a6c221734fb",
                "Ingredient": "zucchero",
                "EffectiveQuantity": 833.000,
                "BatchProductionName": "",
                "Description": "zucchero",
                "Batches": null
            },
            {
                "Id": "c002acda-fe5a-4155-8453-265cea52832b",
                "RowNumber": 2,
                "MeasureUnitId": "g",
                "IngredientId": "920df9dd-3fb1-48b3-a711-b2d9ef29099c",
                "Ingredient": "farina",
                "EffectiveQuantity": 833.000,
                "BatchProductionName": "",
                "Description": "farina",
                "Batches": null
            }
        ],
        "RequestedFormats": []
    }
]

Notes

  • Max 1000 preparations per request !

Copyright © 2017-2018. All right reserved