Hi everyone, I’m trying to call an API to create Receipts but I’m unable to assign a legal number as how it was done using the interface. Is there a way to do using REST API?
API:
{{endpoint}}/{{ERPinstance}}/api/v2/odata/{{currentcompany}}/Erp.BO.ReceiptSvc/Receipts
{
"Company": "COMPTest",
"VendorNum": 8,
"PurPoint": "",
"PackSlip": "PACKSLIP_TEST06003",
"ReceiptDate": "2025-06-21T04:28:09.142Z",
"EntryPerson": "TEST_USER",
"ReceivePerson": "TEST_USER",
"ShipViaCode": "NA",
"EntryDate": "2025-06-21T04:28:09.142Z",
"Plant": "MfgSys",
"PONum": 2506003,
"ICLinked": false,
"AutoReceipt": false,
"ApplyToLC": false,
"Received": false,
"ArrivedDate": "2025-06-21T04:28:09.142Z",
"InPrice": false,
"HdrTaxNoUpdt": false,
"CNBonded": false,
"RcvDtls": [
{
"Company": "COMPTest",
"VendorNum": 8,
"PurPoint": "",
"PackSlip": "PACKSLIP_TEST06003",
"PackLine": 1,
"ReceiptDate": "2025-07-21T04:28:09.142Z",
"Invoiced": false,
"PartNum": "PART_TEST3",
"WareHouseCode": "APX01",
"BinNum": "B1",
//"OurQty": 75,
"InputOurQty": 75,
"IUM":"UN",
"OurUnitCost": 58.23,
"PONum": 2506003,
"POLine": 1,
"PORelNum": 1,
"VendorQty": 75,
"VendorUnitCost": 58.23,
"ReceivedComplete": true,
"PUM":"UN",
"CostPerCode":"E",
//"QtyOption": "Our",
"ReceiptType": "P",
"ReceivedTo": "PUR-STK",
"NumLabels": 1,
"DocUnitCost": 58.23,
"InOurCost":58.23,
"ScrOurUnitCost": 58.23,
"DocVendorUnitCost": 58.23,
"CurrencyCode": "MYR",
//"DocInUnitCost": 58.23,
//"DocScrUnitCost": 58.24,
//"DocInVendorUnitCost": 58.24,
//"DocScrVendorUnitCost": 58.24,
//"ScrOurUnitCost": 58.24,
//"ScrVendorUnitCost": 58.23,
"POTransValue":4367.25,
"ExtTransValue":4367.25,
"Received": false
}
]
}