POST api/Item/AddFromExternalSource

Create new items from external source as specified in input parameter

Request Information

URI Parameters

None.

Body Parameters

NewExternalItemParameters
NameDescriptionTypeAdditional information
ClientId

globally unique identifier

None.

CreatedBy

string

None.

Items

Collection of ExternalItem

None.

Request Formats

application/json, text/json

Sample:
{
  "ClientId": "8ccc1d40-f606-4a42-b689-a20ee729e15e",
  "CreatedBy": "sample string 2",
  "Items": [
    {
      "SSCCNumber": "sample string 1",
      "LocationNo": "sample string 2",
      "SeqNoInLocation": 3,
      "Comment": "sample string 4",
      "Topload": 5.0,
      "ProductionLineNo": 6,
      "ProductionDate": "2026-06-25T16:47:26.8918+02:00",
      "Unfinished": true,
      "RestrictedLevel": 9,
      "ArticleNo": "sample string 10",
      "PackingTypeId": "516d318b-26ba-4d2e-9add-3686ec3588ec",
      "PackingTypeWeight": 12.0,
      "SlaughterDate": "2026-06-25T16:47:26.8918+02:00",
      "MaturationDate": "2026-06-25T16:47:26.8918+02:00",
      "PackingDate": "2026-06-25T16:47:26.8918+02:00",
      "FreezeDate": "2026-06-25T16:47:26.8918+02:00",
      "CatchDate": "2026-06-25T16:47:26.8918+02:00",
      "Lines": [
        {
          "BestBefore": "2026-06-25T16:47:26.8918+02:00",
          "BatchNumber": "sample string 2",
          "GTIN": "sample string 3",
          "Quantity": 4.0,
          "BaseQuantity": 5.0,
          "LineID": 6,
          "CostPrice": 7.0,
          "SerialNumber": "sample string 8"
        },
        {
          "BestBefore": "2026-06-25T16:47:26.8918+02:00",
          "BatchNumber": "sample string 2",
          "GTIN": "sample string 3",
          "Quantity": 4.0,
          "BaseQuantity": 5.0,
          "LineID": 6,
          "CostPrice": 7.0,
          "SerialNumber": "sample string 8"
        }
      ]
    },
    {
      "SSCCNumber": "sample string 1",
      "LocationNo": "sample string 2",
      "SeqNoInLocation": 3,
      "Comment": "sample string 4",
      "Topload": 5.0,
      "ProductionLineNo": 6,
      "ProductionDate": "2026-06-25T16:47:26.8918+02:00",
      "Unfinished": true,
      "RestrictedLevel": 9,
      "ArticleNo": "sample string 10",
      "PackingTypeId": "516d318b-26ba-4d2e-9add-3686ec3588ec",
      "PackingTypeWeight": 12.0,
      "SlaughterDate": "2026-06-25T16:47:26.8918+02:00",
      "MaturationDate": "2026-06-25T16:47:26.8918+02:00",
      "PackingDate": "2026-06-25T16:47:26.8918+02:00",
      "FreezeDate": "2026-06-25T16:47:26.8918+02:00",
      "CatchDate": "2026-06-25T16:47:26.8918+02:00",
      "Lines": [
        {
          "BestBefore": "2026-06-25T16:47:26.8918+02:00",
          "BatchNumber": "sample string 2",
          "GTIN": "sample string 3",
          "Quantity": 4.0,
          "BaseQuantity": 5.0,
          "LineID": 6,
          "CostPrice": 7.0,
          "SerialNumber": "sample string 8"
        },
        {
          "BestBefore": "2026-06-25T16:47:26.8918+02:00",
          "BatchNumber": "sample string 2",
          "GTIN": "sample string 3",
          "Quantity": 4.0,
          "BaseQuantity": 5.0,
          "LineID": 6,
          "CostPrice": 7.0,
          "SerialNumber": "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 'NewExternalItemParameters'.

Response Information

Resource Description

ExternalItemMessages
NameDescriptionTypeAdditional information
SuccessfulRegistrations

Collection of ExternalItemMessage

None.

CriticalProcedureError

string

None.

PreregistrationErrors

Collection of ExternalItemMessage

None.

RegisterIntoItemStockErrors

Collection of ExternalItemMessage

None.

Response Formats

application/json, text/json

Sample:

Sample not available.