POST api/Consumption/FromItems

Register consumption from items

Request Information

URI Parameters

None.

Body Parameters

ConsumeFromItemsParameters
NameDescriptionTypeAdditional information
SystemUserId

globally unique identifier

None.

ClientId

globally unique identifier

None.

ConsumedFromItems

Collection of ConsumeFromItem

None.

Request Formats

application/json, text/json

Sample:
{
  "SystemUserId": "58b48b13-18dc-449f-9221-8b59a1883af9",
  "ClientId": "baa38974-9618-40a8-9c6a-825b5008badf",
  "ConsumedFromItems": [
    {
      "ItemId": "2f72ace8-1aee-4e78-9354-96b00cd4f6a2",
      "PangId": "19a3d62d-27cf-4d47-bc01-3aa2f9f94443",
      "BatchId": "05a34d4d-84a0-45c4-989d-0147035d29a4",
      "BatchNumber": "sample string 4",
      "ExpireDate": "2026-06-25T16:09:37.6516941+02:00",
      "Quantity": 6.0,
      "NetWeight": 7.0,
      "Comment": "sample string 8"
    },
    {
      "ItemId": "2f72ace8-1aee-4e78-9354-96b00cd4f6a2",
      "PangId": "19a3d62d-27cf-4d47-bc01-3aa2f9f94443",
      "BatchId": "05a34d4d-84a0-45c4-989d-0147035d29a4",
      "BatchNumber": "sample string 4",
      "ExpireDate": "2026-06-25T16:09:37.6516941+02:00",
      "Quantity": 6.0,
      "NetWeight": 7.0,
      "Comment": "sample string 8"
    }
  ]
}

application/x-www-form-urlencoded

Sample:

Failed to generate the sample for media type 'application/x-www-form-urlencoded'. Cannot use formatter 'JQueryMvcFormUrlEncodedFormatter' to write type 'ConsumeFromItemsParameters'.

Response Information

Resource Description

string

Response Formats

application/json, text/json

Sample:
"sample string 1"