POST api/Item

Create new item

Request Information

URI Parameters

None.

Body Parameters

Add item

ItemAdd
NameDescriptionTypeAdditional information
ProductItem

ProductItem

Required

Packages

Collection of PackageItem

None.

Request Formats

application/json, text/json

Sample:
{
  "ProductItem": {
    "Item_No": "sample string 1",
    "Description": "sample string 2",
    "Net_Weight": 3.0,
    "Gross_Weight": 4.0,
    "Length": 5.0,
    "Width": 6.0,
    "Height": 7.0,
    "Color": "sample string 8"
  },
  "Packages": [
    {
      "Product_ID": "sample string 1",
      "MEASURE": "sample string 3",
      "PARENT_MEASURE": "sample string 4",
      "LevelIndex": 5,
      "Quantity": 6,
      "Height": 7.0,
      "Width": 8.0,
      "Depth": 9.0,
      "Weight": 10.0,
      "AddBy": "sample string 11",
      "AddDateTime": "2025-12-05T03:49:20.9592869-06:00"
    },
    {
      "Product_ID": "sample string 1",
      "MEASURE": "sample string 3",
      "PARENT_MEASURE": "sample string 4",
      "LevelIndex": 5,
      "Quantity": 6,
      "Height": 7.0,
      "Width": 8.0,
      "Depth": 9.0,
      "Weight": 10.0,
      "AddBy": "sample string 11",
      "AddDateTime": "2025-12-05T03:49:20.9592869-06:00"
    }
  ]
}

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 'ItemAdd'.

 
Response information

Resource Description

CommonResult
NameDescriptionTypeAdditional information
Success

Request Success

boolean

None.

Message

Return Message

string

None.

Response Formats

application/json, text/json

Sample:
{
  "Success": true,
  "Message": "sample string 2"
}