Bin and Lot or Serial No Quantity Import

Bin and Lot or Serial No. Quantity Import

Bin and Lot or Serial No Quantity Import is the way to assign specific quantities for bins and lot or serial numbers to any transaction.  

For items that have Track Lot or Serial number checked, you will use the ImportDocFillLotOrSerial (record type 1146) otherwise you will use ImportFillBin (record type 1121)

End Point

/fillbinbase

GET, POST, DELETE

GET and Delete request expect two paramaters of type Int32 as follows

  • recordType (either 1121 or 1146)
  • id

Properties

PropertyCaptionData TypeRequired
$typeThis property MUST be included to tell the API what type of item is being added.
The value should be either  "AOLib7.ImportFillBin, AOLib7" OR
"AOLib7.ImportDocFillLotOrSerial, AOLib7"
True
TranTypeTran TypeRecordTypeEnumTrue
DocNoDoc No.Int32True
LineNo
(see note)
Line NoInt16True
ItemRefItemEntityRefTrue
BinRefBinEntityRefTrue
QuantityQuantityDecimalTrue
The following properties are only applicable to ImportDocFillLotOrSerial
LotOrSerialNoLot or Serial No.StringTrue
ExpirationDateExpiration DateDateTimeFalse
DescriptionDescriptionStringFalse
PartOfPart OfStringFalse
WarrantyTypeRefWarrantyEntityRefFalse
WarrantyDaysWarranty DaysDecimalFalse
CustomFieldsCustom FieldsArray of CustomFieldDataFalse

Line No. 

  • For ship docs, receivers, vendor returns,  customer returns and work order components use the Line No of the respective Item Line in the transaction.    
  • For Work Order Finished Goods,  Transfers and Adjustments use 0. 

Json Sample - ImportFillBin

   
        {
            "$type": "AOLib7.ImportFillBin, AOLib7",
            "TranType": 4,
            "DocNo": 798,
            "ItemRef": {
                "Id": 30
            },
	    "Quantity": 10,   
            "BinRef": {
                "Id": 8
            },
            "LineNo": 1        
        }

Json Sample - ImportDocFillLotOrSerial

   
        {
            "$type": "AOLib7.ImportDocFillLotOrSerial, AOLib7",
            "TranType": 3,
            "DocNo": 150,
            "ItemRef": {
                "Id": 29
            },
            "BinRef": {
                "Id": 30
            },
            "LineNo": 0,
            "Quantity": 100,
            "LotOrSerialNo": "F0001",
            "ExpirationDate": "2021-11-11T00:00:00",
            "CustomFields": [{"Name": "LotSerCust1", "Value": "CAC"} ]
        }

Top