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
Property | Caption | Data Type | Required |
$type | This 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 | |
TranType | Tran Type | RecordTypeEnum | True |
DocNo | Doc No. | Int32 | True |
LineNo (see note) | Line No | Int16 | True |
ItemRef | Item | EntityRef | True |
BinRef | Bin | EntityRef | True |
Quantity | Quantity | Decimal | True |
The following properties are only applicable to ImportDocFillLotOrSerial | |||
LotOrSerialNo | Lot or Serial No. | String | True |
ExpirationDate | Expiration Date | DateTime | False |
Description | Description | String | False |
PartOf | Part Of | String | False |
WarrantyTypeRef | Warranty | EntityRef | False |
WarrantyDays | Warranty Days | Decimal | False |
CustomFields | Custom Fields | Array of CustomFieldData | False |
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"} ] }