v1

latestOpenAPI 3.0.3Apache 2.02026-07-2478177179.1 KB
Catalog Item

insert catalog item as bulk

insert catalog item as bulk in inventory

post/catalog-items

Request body

Example request

{
  "catalogItemList": [
    {
      "sku": "010000",
      "type": "INGREDIENT",
      "minLevel": {
        "level": 34,
        "unitId": "60e4192945b5ce11d1d6bb94"
      },
      "purchaseUnit": {
        "id": "606d232385eb3927edf2763c"
      },
      "consumptionRatioInfoList": [
        {
          "consumptionUnit": {
            "id": "606d232385eb3927edf2763c"
          },
          "ratio": 1
        }
      ]
    }
  ]
}

Response

Successful response

jobIdstring

Catalog processing job id in GrubTech platform

createdAtstring date-time

Catalog processing job creation time in GrubTech platform

messagestring

Error message

Example response

{
  "jobId": "62550869a5cd8a63d6f1207e",
  "createdAt": "2021-01-01T09:23:54.723Z",
  "message": "Catalog item(s) could not be created"
}