POST public-api/ic/item/saveContainerItem

This method is used to create a new container item, identified by its ItemNumber. It creates only container type items, and the item is always created with a License Plate Number track-by. If a container item with that item number already exists it is updated instead; set CreateNewOnly on the request to reject an existing item number as a duplicate rather than update it. An existing item number that belongs to an item that is not a container is rejected as an invalid item class. Supplying a ContainerIdStartingSeedValue of 1 or more also initializes the container id (license plate number) generator for the item, using the supplied prefix and suffix. Requires Create Item permission to create a container item that does not yet exist.



Request Information

URI Parameters

None.

Body Parameters

Container20SaveRequestModel
NameDescriptionTypeAdditional information
ContainerBehaviorFlags

ContainerEnumFlags

None.

ItemNumber

string

None.

ItemDescription

string

None.

CategoryDescription

string

None.

AlternateItemNumber

string

None.

ManufacturerName

string

None.

CostMethod

CostMethodEnum

None.

DefaultUnitCost

decimal number

None.

IsSalesTaxApplicable

boolean

None.

UsePrivateContainerIdGenerator

boolean

None.

ContainerIdGeneratorPrefix

string

None.

ContainerIdStartingSeedValue

decimal number

None.

ContainerIdGeneratorSuffix

string

None.

Request Formats

application/json

Sample:
{
  "ContainerBehaviorFlags": 0,
  "ItemNumber": "sample string 1",
  "ItemDescription": "sample string 2",
  "CategoryDescription": "sample string 3",
  "AlternateItemNumber": "sample string 4",
  "ManufacturerName": "sample string 5",
  "CostMethod": 10,
  "DefaultUnitCost": 1.0,
  "IsSalesTaxApplicable": true,
  "UsePrivateContainerIdGenerator": true,
  "ContainerIdGeneratorPrefix": "sample string 6",
  "ContainerIdStartingSeedValue": 1.0,
  "ContainerIdGeneratorSuffix": "sample string 7"
}



Response Information

Resource Description

WaspResultOfContainer20SaveResponseModel
NameDescriptionTypeAdditional information
Data

Container20SaveResponseModel

None.

Messages

Collection of WtResult

None.

BatchNumber

integer

None.

HasError

boolean

None.

HasHttpError

boolean

None.

HasMessage

boolean

None.

HasSuccessWithMoreDataRemaining

boolean

None.

TotalRecordsLongCount

integer

None.

Response Formats

application/json

Sample:
{
  "Data": {
    "ResultKeyNumber": "sample string 1",
    "ContainerBehaviorFlags": 0,
    "ItemNumber": "sample string 2",
    "ItemDescription": "sample string 3",
    "CategoryDescription": "sample string 4",
    "AlternateItemNumber": "sample string 5",
    "ManufacturerName": "sample string 6",
    "CostMethod": 10,
    "DefaultUnitCost": 1.0,
    "IsSalesTaxApplicable": true,
    "UsePrivateContainerIdGenerator": true,
    "ContainerIdGeneratorPrefix": "sample string 7",
    "ContainerIdStartingSeedValue": 1.0,
    "ContainerIdGeneratorSuffix": "sample string 8"
  },
  "Messages": [
    {
      "ResultCode": 0,
      "Message": "sample string 1",
      "HttpStatusCode": 200,
      "FieldName": "sample string 2"
    },
    {
      "ResultCode": 0,
      "Message": "sample string 1",
      "HttpStatusCode": 200,
      "FieldName": "sample string 2"
    }
  ],
  "BatchNumber": 1,
  "HasError": false,
  "HasHttpError": false,
  "HasMessage": true,
  "HasSuccessWithMoreDataRemaining": false,
  "TotalRecordsLongCount": 1
}