Imports items with units of measure data from an uploaded CSV file.

​

Permissions: Administrator users.

Headers

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

Body

application/json

Responses

  • The request is invalid. This can be due to no file being provided or the file not being a valid CSV.

Request Example for post/v2/Items/ImportItems
curl /v2/Items/ImportItems \
  --request POST \
  --header 'Content-Type: multipart/form-data' \
  --header 'DCKey: YOUR_SECRET_TOKEN' \
  --form 'SmartGroups=C895A81E-0C20-42C0-B2DC-EAF43F9447BD' \
  --form 'Option='
{
  "Items": [
    {
      "ID": "C895A81E-0C20-42C0-B2DC-EAF43F9447BD",
      "Description": null,
      "ItemMode": "string",
      "Hidden": true,
      "ItemCode": null,
      "CostingUM": "C895A81E-0C20-42C0-B2DC-EAF43F9447BD",
      "CostingUMDescription": null,
      "StandardCost": null,
      "CostingMethod": "string",
      "Recommended": true,
      "ShelfLifeThawUM": "string",
      "CalcTargetAsActual": true,
      "ReportingUM": "C895A81E-0C20-42C0-B2DC-EAF43F9447BD",
      "ReportingUMDescription": null,
      "DefaultCountingUM": "C895A81E-0C20-42C0-B2DC-EAF43F9447BD",
      "DefaultCountingUMDescription": null,
      "DefaultPurchaseUM": "C895A81E-0C20-42C0-B2DC-EAF43F9447BD",
      "DefaultPurchaseUMDescription": null,
      "RequireCount": true,
      "EstimationMethod": "string",
      "CountDailyYN": null,
      "AccountID": "C895A81E-0C20-42C0-B2DC-EAF43F9447BD",
      "AccountDescription": null,
      "DaysOnHand": null,
      "RequireComment": true,
      "Custom1": null,
      "Custom2": null,
      "Custom3": null,
      "InRecipe": true,
      "B2BLinked": true,
      "POSLinked": true,
      "DynamicModifier": true,
      "EmptyRecipe": true,
      "Count": true,
      "Purchase": true,
      "Recipe": true,
      "Sell": true,
      "Trade": true,
      "Waste": true,
      "SpecialEvent": true,
      "PrepSheet": true,
      "Thaw": true,
      "SynchronizedToUnit": true,
      "LabelDescription": null
    }
  ],
  "ValidationResult": {
    "errors": [
      {
        "ErrorIndex": 1,
        "ItemDescription": null,
        "additionalProperty": "anything"
      }
    ],
    "warnings": [
      {
        "ErrorIndex": 1,
        "ItemDescription": null,
        "additionalProperty": "anything"
      }
    ],
    "errorMessages": [
      "string"
    ],
    "warningMessages": [
      "string"
    ]
  }
}