POST api/v1/partner/stockcode/custId/{custId}

Create/Update a Stockcode from the supplied details

Request Information

URI Parameters

NameDescriptionTypeAdditional information
custId

CustID that contains the Inventory Auto Create Defaults

string

Required

Body Parameters

ApiImpStockcode object

ApiImpStockcode
NameDescriptionTypeAdditional information
InvMaster

InvMaster

ApiImpInvMaster

None.

InvMasterExt

InvMasterExt

ApiImpInvMasterExt

None.

InvMasterKiva

InvMasterKiva

ApiImpInvMasterKiva

None.

ItemWhList

ItemWhList

Collection of ApiImpItemWh

None.

InvMasterUomList

InvMasterUomList

Collection of ApiImpInvMasterUom

None.

KitLineItemList

KitLineItemList

Collection of ApiImpKitLineItem

None.

InvLocReplenList

InvLocReplenList

Collection of ApiImpInvLocReplen

None.

InvEdiTpList

InvEdiTpList

Collection of ApiImpInvEdiTp

None.

InvMasterRmaNote

InvRmaNote

ApiInvMasterRmaNote

None.

IsEmpty

boolean

None.

Request Formats

application/json, text/json

Sample:
{
  "InvMaster": {
    "RecordType": "1",
    "TransType": "INVADD",
    "Stockcode": "PROD01",
    "Owner": "TESTCUST1",
    "StockDesc": "Product #1",
    "Parent": "",
    "AltStockCode": "",
    "AltStockDesc": "",
    "Supplier": "",
    "Barcode": "345623424",
    "InvtType": "F",
    "ProdClass": "",
    "InvtClass": "",
    "PrtInPckSlip": null,
    "VerifyProd": null,
    "Decimals": null,
    "NarrationReqd": null,
    "Narration": "",
    "SellStockOnWeb": null,
    "StockWebRef": "",
    "AlertMinQty": null,
    "AlertZeroQty": null,
    "LtrTemplate": "",
    "LtrPaperSku": "",
    "LtrPaperQty": null,
    "IsActive": null,
    "Serialized": null,
    "SerialNoLen": null,
    "SerialNoOffset": null,
    "SerialNoMask": "",
    "SerialNoCapture": null,
    "LotTraceable": null,
    "MiscInfo1": "",
    "MiscInfo2": "",
    "MiscInfo3": "",
    "MiscInfo4": "",
    "ImageUrl": "",
    "HoldReasonCode": "",
    "MfgPN": "",
    "Size": "",
    "SizeUOM1": "",
    "SizeUOM2": "",
    "Color1": "",
    "Color2": "",
    "InnerPackQty": null,
    "DateAvailable": null,
    "DateExpired": null,
    "EquivStockCode": "",
    "BonusItem": null,
    "CaseQty": null,
    "StandaloneItem": null,
    "KitNoPartial": null,
    "IsManufactured": null,
    "ShippableCarton": null,
    "UpdInvOnWeb": null,
    "NoBarcodeVerify": null,
    "LotCategory": "",
    "BoxCanBeCubed": null,
    "AutoScrapRtn": null,
    "DeptNo": "",
    "Category": "",
    "Fineline": "",
    "TempControlReqd": null,
    "TempControlMin": null,
    "TempControlMax": null,
    "TempControlRule": "",
    "IsHighValue": null,
    "RTVOnReturn": null,
    "ReturnNotAllowed": null,
    "DoNotRestock": null,
    "HasReturnNote": null,
    "ReturnNote": "",
    "DefProdShelfLife": null,
    "LotCodeTypeNo": null,
    "LotCodeType": null,
    "LotCodeFormat": null,
    "TempControlUOM": null,
    "HasParseError": false,
    "RawRecordData": "",
    "Error": null,
    "IsEmpty": false,
    "Deleted": false,
    "GetDateTimeMinimum": "1754-01-01T00:00:00"
  },
  "InvMasterExt": {
    "RecordType": "5",
    "Stockcode": "PROD01",
    "Owner": "TESTCUST1",
    "HSCode": "6108.22.00.10",
    "HSCodeDesc": "Product HS Desc",
    "COO": "CN",
    "MIDCode": null,
    "ContentDesc": null,
    "HazMat": null,
    "UNDGCode": null,
    "DGTechName": null,
    "LimitedQty": null,
    "AirFreightAllowed": null,
    "WildlifePermit": null,
    "ConsolExport": null,
    "Composition": null,
    "NHPNo": null,
    "DINNo": null,
    "IncBattery": null,
    "WattHrs": 0,
    "Voltage": 0,
    "AmpHrs": 0,
    "HazardClass": null,
    "CASRN": null,
    "PolybagReqd": null,
    "Precursor": null,
    "MSDCode": null,
    "NFPCode": null,
    "RFGCode": null,
    "AirFreightDisallowed": null,
    "ReqTamperSeal": null,
    "TempStorageCode": null,
    "TempConditionCode": null,
    "MaterialStatus": null,
    "TamperSealQty": 0,
    "IsFood": null,
    "HealthCanadaReg": null,
    "HasParseError": false,
    "RawRecordData": null,
    "Error": null,
    "IsEmpty": false,
    "Deleted": false,
    "GetDateTimeMinimum": "1754-01-01T00:00:00"
  },
  "InvMasterKiva": null,
  "ItemWhList": [],
  "InvMasterUomList": [
    {
      "RecordType": "2",
      "Stockcode": "PROD01",
      "Owner": "TESTCUST1",
      "UomType": 0,
      "Uom": "EA",
      "StockingQty": null,
      "Weight": 0.8,
      "Volume": 0.069,
      "Height": 8.0,
      "Width": 3.0,
      "Length": 5.0,
      "Barcode": "345623424",
      "StockDesc": "Product #1",
      "EnableImage": null,
      "WeightUOM": "LB",
      "VolumeUOM": "CF",
      "HeightUOM": "IN",
      "WidthUOM": "IN",
      "LengthUOM": "IN",
      "ImageUrl": null,
      "HasParseError": false,
      "RawRecordData": null,
      "Error": null,
      "IsEmpty": false,
      "Deleted": false,
      "GetDateTimeMinimum": "1754-01-01T00:00:00"
    }
  ],
  "KitLineItemList": [],
  "InvLocReplenList": [],
  "InvEdiTpList": [],
  "InvMasterRmaNote": null,
  "IsEmpty": false,
  "Deleted": false,
  "GetDateTimeMinimum": "1754-01-01T00:00:00"
}

application/xml, text/xml

Sample:
<ApiImpStockcode xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Duplium.DFS3.Data.ApiEntity">
  <InvEdiTpList />
  <InvLocReplenList />
  <InvMaster>
    <AlertMinQty i:nil="true" />
    <AlertZeroQty i:nil="true" />
    <AltStockCode></AltStockCode>
    <AltStockDesc></AltStockDesc>
    <AutoScrapRtn i:nil="true" />
    <Barcode>345623424</Barcode>
    <BonusItem i:nil="true" />
    <BoxCanBeCubed i:nil="true" />
    <CaseQty i:nil="true" />
    <Category></Category>
    <Color1></Color1>
    <Color2></Color2>
    <DateAvailable i:nil="true" />
    <DateExpired i:nil="true" />
    <Decimals i:nil="true" />
    <DefProdShelfLife i:nil="true" />
    <DeptNo></DeptNo>
    <DoNotRestock i:nil="true" />
    <EquivStockCode></EquivStockCode>
    <Fineline></Fineline>
    <HasReturnNote i:nil="true" />
    <HoldReasonCode></HoldReasonCode>
    <ImageUrl></ImageUrl>
    <InnerPackQty i:nil="true" />
    <InvtClass></InvtClass>
    <InvtType>F</InvtType>
    <IsActive i:nil="true" />
    <IsHighValue i:nil="true" />
    <IsManufactured i:nil="true" />
    <KitNoPartial i:nil="true" />
    <LotCategory></LotCategory>
    <LotCodeFormat i:nil="true" />
    <LotCodeType i:nil="true" />
    <LotCodeTypeNo i:nil="true" />
    <LotTraceable i:nil="true" />
    <LtrPaperQty i:nil="true" />
    <LtrPaperSku></LtrPaperSku>
    <LtrTemplate></LtrTemplate>
    <MfgPN></MfgPN>
    <MiscInfo1></MiscInfo1>
    <MiscInfo2></MiscInfo2>
    <MiscInfo3></MiscInfo3>
    <MiscInfo4></MiscInfo4>
    <Narration></Narration>
    <NarrationReqd i:nil="true" />
    <NoBarcodeVerify i:nil="true" />
    <Owner>TESTCUST1</Owner>
    <Parent></Parent>
    <ProdClass></ProdClass>
    <PrtInPckSlip i:nil="true" />
    <RTVOnReturn i:nil="true" />
    <ReturnNotAllowed i:nil="true" />
    <ReturnNote></ReturnNote>
    <SellStockOnWeb i:nil="true" />
    <SerialNoCapture i:nil="true" />
    <SerialNoLen i:nil="true" />
    <SerialNoMask></SerialNoMask>
    <SerialNoOffset i:nil="true" />
    <Serialized i:nil="true" />
    <ShippableCarton i:nil="true" />
    <Size></Size>
    <SizeUOM1></SizeUOM1>
    <SizeUOM2></SizeUOM2>
    <StandaloneItem i:nil="true" />
    <StockDesc>Product #1</StockDesc>
    <StockWebRef></StockWebRef>
    <Stockcode>PROD01</Stockcode>
    <Supplier></Supplier>
    <TempControlMax i:nil="true" />
    <TempControlMin i:nil="true" />
    <TempControlReqd i:nil="true" />
    <TempControlRule></TempControlRule>
    <TempControlUOM i:nil="true" />
    <TransType>INVADD</TransType>
    <UpdInvOnWeb i:nil="true" />
    <VerifyProd i:nil="true" />
  </InvMaster>
  <InvMasterExt>
    <AirFreightAllowed i:nil="true" />
    <AirFreightDisallowed i:nil="true" />
    <AmpHrs>0</AmpHrs>
    <CASRN i:nil="true" />
    <COO>CN</COO>
    <Composition i:nil="true" />
    <ConsolExport i:nil="true" />
    <ContentDesc i:nil="true" />
    <DGTechName i:nil="true" />
    <DINNo i:nil="true" />
    <HSCode>6108.22.00.10</HSCode>
    <HSCodeDesc>Product HS Desc</HSCodeDesc>
    <HazMat i:nil="true" />
    <HazardClass i:nil="true" />
    <HealthCanadaReg i:nil="true" />
    <IncBattery i:nil="true" />
    <IsFood i:nil="true" />
    <LimitedQty i:nil="true" />
    <MIDCode i:nil="true" />
    <MSDCode i:nil="true" />
    <MaterialStatus i:nil="true" />
    <NFPCode i:nil="true" />
    <NHPNo i:nil="true" />
    <Owner>TESTCUST1</Owner>
    <PolybagReqd i:nil="true" />
    <Precursor i:nil="true" />
    <RFGCode i:nil="true" />
    <ReqTamperSeal i:nil="true" />
    <Stockcode>PROD01</Stockcode>
    <TamperSealQty>0</TamperSealQty>
    <TempConditionCode i:nil="true" />
    <TempStorageCode i:nil="true" />
    <UNDGCode i:nil="true" />
    <Voltage>0</Voltage>
    <WattHrs>0</WattHrs>
    <WildlifePermit i:nil="true" />
  </InvMasterExt>
  <InvMasterKiva i:nil="true" />
  <InvMasterRmaNote i:nil="true" />
  <InvMasterUomList>
    <ApiImpInvMasterUom>
      <Barcode>345623424</Barcode>
      <EnableImage i:nil="true" />
      <Height>8</Height>
      <HeightUOM>IN</HeightUOM>
      <ImageUrl i:nil="true" />
      <Length>5</Length>
      <LengthUOM>IN</LengthUOM>
      <Owner>TESTCUST1</Owner>
      <StockDesc>Product #1</StockDesc>
      <Stockcode>PROD01</Stockcode>
      <StockingQty i:nil="true" />
      <Uom>EA</Uom>
      <UomType>0</UomType>
      <Volume>0.069</Volume>
      <VolumeUOM>CF</VolumeUOM>
      <Weight>0.8</Weight>
      <WeightUOM>LB</WeightUOM>
      <Width>3</Width>
      <WidthUOM>IN</WidthUOM>
    </ApiImpInvMasterUom>
  </InvMasterUomList>
  <ItemWhList />
  <KitLineItemList />
</ApiImpStockcode>

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

Resource Description

Stockcode if the import succeed

string

Response Formats

application/json, text/json, application/xml, text/xml

Sample:
PROD01