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
NameDescriptionTypeAdditional information
ContainerBehaviorFlags

ContainerEnumFlags

None.

ItemNumber

string

None.

ItemDescription

string

None.

CategoryDescription

This is used to group similar container types together.

string

None.

AlternateItemNumber

string

None.

ManufacturerName

string

None.

CostMethod

FIFO, LIFO, Moving Average, or null value

CostMethodEnum

None.

DefaultUnitCost

decimal number

None.

IsSalesTaxApplicable

null: not applicable and no action will be taken for the sales tax vs non-sales tax indicator true: sales tax is applicable false; sales tax is not applicable

boolean

None.

UsePrivateContainerIdGenerator

If null, assumes the new item will use the default "Global" number generator for Trackby Container Id if True, then this Item will have a private Trackby Container Id generator

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

Type specific result that always depends on the function called.

Container20SaveResponseModel

None.

Messages

List of Messages. All APIs should return messages. If an API function returns an error you can find more information about the error or errors in this collection of messages.

Collection of WtResult

None.

BatchNumber

This is a global batch number generated by a mass group of transaction records to be returned to the consumer on each call to rolling transaction rules. This requests that each group of Move/Add/Remove transaction batches is tied together. In prior products (such as Mobile Asset Cloud), all are set to null and the only time when the batch number is generated is for multiple check-out transactions but the old is to generate for each responsible party.

integer

None.

HasError

True if an API function result has an error message in the results. If this is false, the function succeeded but other informative messages may be available.

boolean

None.

HasHttpError

True if an API function call could not be fully posted to the server or the results could not be fully returned.

boolean

None.

HasMessage

True if any message is available.

boolean

None.

HasSuccessWithMoreDataRemaining

True if the server sent part of the data and there is more data available. Use with paging APIs to fetch data one page at a time.

boolean

None.

TotalRecordsLongCount

This is the total number of records available in the database based on the query and filer conditions provided. It is possible that the value can change from call to call as users add and delete records so this should not be used to page through multiple recordsets of data. This is used, for example, to set relative scroll bar sizes. When paging through data using functions like the assetadvancedinfosearch, calculating TotalRecordsLongCount for every page full of data is an time-consuming operation. To avoid that extra calculation, and help prevent throttling, assign TotalRecordsLongCount to TotalCountFromPriorFetch in the AdvancedSearchParameters to skip recalculating this total page count and to page thru the records faster.

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
}