POST public-api/ic/item/saveContainerItem
This method is used to create a new It creates only inventory type items. Requires Create Item permission.
Request Information
URI Parameters
None.
Body Parameters
Container20SaveRequestModel| Name | Description | Type | Additional 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| Name | Description | Type | Additional 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
}