Adds new Source Item(s).

​

Permissions: Unit users. ButcheredItems api family.

Path Parameters

  • Mandatory identifier, used to specify a Butcher Batch.

Headers

  • The Integration Key generated for API Authentication by the PAR OPS support team as part of the integration/partnership process.

Body

Mandatory 'body' parameter, used to describe objects.

Responses

Request Example for post/v2/ButcherBatches/{batchID}/SourceItems
curl /v2/ButcherBatches/C895A81E-0C20-42C0-B2DC-EAF43F9447BD/SourceItems \
  --request POST \
  --header 'Content-Type: application/json-patch+json' \
  --header 'DCKey: YOUR_SECRET_TOKEN' \
  --data '[
  {
    "ActualQuantity": 0.0001,
    "Comment": null,
    "ItemID": "C895A81E-0C20-42C0-B2DC-EAF43F9447BD",
    "MeasureID": "C895A81E-0C20-42C0-B2DC-EAF43F9447BD"
  }
]'
[
  {
    "ID": "C895A81E-0C20-42C0-B2DC-EAF43F9447BD",
    "ItemID": "C895A81E-0C20-42C0-B2DC-EAF43F9447BD",
    "ItemDescription": null,
    "MeasureID": "C895A81E-0C20-42C0-B2DC-EAF43F9447BD",
    "MeasureDescription": null,
    "ActualQuantity": 0.0001,
    "ActualCost": 1,
    "Comment": null,
    "TargetItemsExist": true
  }
]