Get Delivery Notes
Returns your delivery notes – the supplier's advance notice of goods coming against a purchase order – each with its header (delivery note number and date, branch, supplier, the purchase order it is against, challan, invoice and LR details) and its item lines (item, quantity still to be received, purchase-order rate and MRP, box number). It also reports delivery notes that were deleted. Use it to prepare goods receipt in your own system – normally by asking only for delivery notes added or changed since your last call.
Endpoint
Address
https://your-server/api/GetDeliveryNote
Method
POST
Authorization
Basic Auth
Also accepted: https://your-server/api/GetDelivetyNote (misspelt), which works the same way.
The response and the common request fields are explained in How Every API Call Works.
Request fields
GlobalModifyCode
number
No
0
Your bookmark in the change log, as described in How Every API Call Works: 0 = from the start (or a period, with DateFrom/DateTo), a number = only changes after it, -1 = Logic ERP keeps the bookmark for you.
DateFrom, DateTo
date
No
empty
With GlobalModifyCode 0: a period of changes (the day a delivery note was saved, edited, approved or deleted – not the delivery note date). Send both as null when you are not asking for a period – with GlobalModifyCode 0 and no Doc_Codes, leaving them out gives Invalid Date From.. (with a bookmark they are not checked). Write them as yyyy-MM-dd.
Doc_Codes
text
No
empty
Logic ERP's internal delivery note numbers (Doc_Code in the response), separated by commas, for example "1064,1086". Returns these delivery notes and reports those of them that were deleted; the bookmark and period are ignored. Numbers and commas only.
Branch_Codes_From
text
No
empty
Branch codes separated by commas, for example "2,5". Used only in a period request – see the known issue.
Doc_Num_Like
text
No
empty
Only delivery notes whose number starts with this text, written prefix-number, for example "DNO-". Used with the bookmark or a period.
Field names are matched without regard to upper or lower case. Other fields in the request are ignored.
Rules Logic ERP applies
Only approved delivery notes. A delivery note still waiting for approval is not returned. Its approval adds a line to the change log, so it reaches you in a later batch once it is approved.
All lines, with the quantity still to be received. Every line of a delivery note is returned, and
Quantityis the quantity still pending on the line (not yet received) –0once nothing is pending. The quantity originally on the delivery note is not returned.Deleted delivery notes in the batch (or named in
Doc_Codes) are returned withAction_Code"D", their number, date and branch, empty ornullother fields and an emptyLstItems. Remove them from your system.With a bookmark, each call reads up to 150 change-log lines and returns the delivery notes they belong to. When none of them can be returned (for example delivery notes still waiting for approval), you get
"No Record Found."withStatus: trueand a higherLastGlobalModifyCode– store it and call again. You have caught up when the message is"No Pending Delivery Note found..."andLastGlobalModifyCodeis the value you sent.A delivery note can come back in a later batch. Every save adds a line to the change log, so a delivery note edited after your bookmark is returned again with its current details. Update it in your system; do not add it a second time.
Not split by financial year. Delivery notes are not kept per financial year, and those of every year are returned. If a later record arrives with the
Doc_Codeof a delivery note you removed after anAction_Code"D", treat it as a new delivery note. The change-log problem with earlier financial years that affects some other endpoints does not apply here.With
Doc_Codesand with a period request,LastGlobalModifyCodecomes back as0– do not store it.DateFromandDateTonever filter on the delivery note date, and they are ignored whenDoc_Codesis filled.Your Logic ERP team can limit this endpoint in the API site setup to certain branches, supplier groups and delivery note prefixes. Delivery notes outside them are never returned, whatever you send (deletions are still reported).
Every line must find its purchase order line, item and item records (company, colour, pack), and the delivery note its supplier and the purchase order's currency. A line that cannot is left out. In normal use these records always exist.
Delivery notes are not returned in any useful order; the lines of each are sorted by item name and pack.
Dates in the response are text
dd/MM/yyyy, for example28/03/2026. A date that is not filled is"".
Known issue –
Branch_Codes_Fromis ignored with a bookmark and withDoc_Codes. Delivery notes of all branches are returned. It filters only in a period request, and there a value that is not numbers and commas is silently ignored. Filter onDO_Branch_Codein your system.
Known issue – endpoint switched off. When your Logic ERP team has switched this endpoint off in the API site setup,
StatusisfalseandMessagecontains Request cannot be processed. API Template is marked as In-Active in the configuration. surrounded by technical detail. Look for that sentence.
Example request
Next batch after your stored bookmark:
Delivery notes saved or changed on one day:
Test it
Send a request to the Logic ERP sandbox (a test company) from this page: open the block below, enter the sandbox user name and password (ask your Logic ERP support team), change the request if you like, and press Test it. The example asks for the first batch of the change log; send the LastGlobalModifyCode you get back to see the next batch. Do not send "GlobalModifyCode": -1 here – it changes what the sandbox has marked as already sent.
Returns your delivery notes – the supplier's advance notice of goods coming against a purchase order – each with its header (delivery note number and date, branch, supplier, the purchase order it is against, challan, invoice and LR details) and its item lines (item, quantity still to be received, purchase-order rate and MRP, box number). It also reports delivery notes that were deleted. Use it to prepare goods receipt in your own system – normally by asking only for delivery notes added or changed since your last call.
The user name and password of your API site.
Your bookmark in the change log, as described in How Every API Call Works: 0 = from the start (or a period, with DateFrom/DateTo), a number = only changes after it, -1 = Logic ERP keeps the bookmark for you.
With GlobalModifyCode 0: a period of changes (the day a delivery note was saved, edited, approved or deleted – not the delivery note date). Send both as null when you are not asking for a period – with GlobalModifyCode 0 and no Doc_Codes, leaving them out gives Invalid Date From.. (with a bookmark they are not checked). Write them as yyyy-MM-dd.
With GlobalModifyCode 0: a period of changes (the day a delivery note was saved, edited, approved or deleted – not the delivery note date). Send both as null when you are not asking for a period – with GlobalModifyCode 0 and no Doc_Codes, leaving them out gives Invalid Date From.. (with a bookmark they are not checked). Write them as yyyy-MM-dd.
Logic ERP's internal delivery note numbers (Doc_Code in the response), separated by commas, for example "1064,1086". Returns these delivery notes and reports those of them that were deleted; the bookmark and period are ignored. Numbers and commas only.
Branch codes separated by commas, for example "2,5". Used only in a period request – see the known issue.
Only delivery notes whose number starts with this text, written prefix-number, for example "DNO-". Used with the bookmark or a period.
Always HTTP 200. Check Status, Message and GetData.
See the Status rules on this page and on How Every API Call Works.
Why the call failed, or a note. The reason may be followed by technical detail - read the first line.
The change-log bookmark (see How Every API Call Works).
Size of the answer, for example "2 KB".
No login was sent.
POST /api/GetDeliveryNote HTTP/1.1
Host: demo.logicerp.com
Authorization: Basic username:password
Content-Type: application/json
Accept: */*
Content-Length: 52
{
"GlobalModifyCode": 0,
"DateFrom": null,
"DateTo": null
}{
"GetData": [
{
"Doc_Type": "text",
"Doc_Code": 1,
"Doc_Prefix": "text",
"Doc_Number": 1,
"DO_Date": "text",
"DO_Branch_Code": 1,
"PartyUserCode": "text",
"PO_Code": 1,
"PO_Order_No": "text",
"PO_No": "text",
"PO_Date": "text",
"Party_Name": "text",
"DN_Txn_Code": 1,
"Remarks_1": "text",
"Remarks_2": "text",
"LR_No": "text",
"LR_Date": "text",
"Challan_No": "text",
"Challan_Date": "text",
"Invoice_No": "text",
"Invoice_Date": "text",
"Logic_User_Name": "text",
"Action_Code": "text",
"Delivery_Date": "text",
"Exchange_Rate": 1,
"Currency": "text",
"LstItems": [
{
"AddlItemCode": "text",
"LogicUser_Code": "text",
"Quantity": 1,
"Packing": "text",
"Packing_CF1": 1,
"Packing_CF1_Desc": "text",
"PO_Rate": 1,
"PO_MRP": 1,
"Packing_Box_No": "text",
"Txn_Code": 1
}
]
}
],
"Status": true,
"Message": "text",
"LastGlobalModifyCode": 1,
"resultSize": "text"
}Response fields
Each item in GetData is one delivery note:
Doc_Type
text
Always DNO.
Doc_Code
number
Logic ERP's internal delivery note number. Use it in Doc_Codes.
Doc_Prefix
text
Delivery note prefix, for example DNO.
Doc_Number
number
Delivery note number within the prefix.
DO_Date
date
The delivery note date, dd/MM/yyyy (despite the field name).
DO_Branch_Code
number
Code of the delivery note's branch.
PartyUserCode
text
Code of the supplier as shown in Logic ERP.
Party_Name
text
Name of the supplier as kept in Logic ERP, usually with its city; there may be several spaces before the - and the city.
PO_Code
number
Logic ERP's internal number of the purchase order the delivery note is against (Vouch_Code in Get Purchase Orders).
PO_Order_No
text
That purchase order's number, for example POT-262.
PO_No
text
That purchase order's voucher number as stored, for example PO202603283.
PO_Date
date
That purchase order's voucher date, dd/MM/yyyy.
DN_Txn_Code
number
Internal number of one of the delivery note's lines. Ignore it; use Txn_Code on the lines.
Remarks_1, Remarks_2
text
Remarks typed on the delivery note (may be a single space).
Challan_No, Challan_Date
text, date
The supplier's challan number and date.
Invoice_No, Invoice_Date
text, date
The supplier's invoice number and date.
LR_No, LR_Date
text, date
Transport LR number and date.
Delivery_Date
date
Delivery date typed on the delivery note; "" when not filled.
Exchange_Rate
number
Exchange rate of the purchase order; 1 for rupees.
Currency
text
Currency of the purchase order, for example INR.
Logic_User_Name
text
The Logic ERP user who made the latest change.
Action_Code
text
The latest change: N = added, M = modified (also after an approval), D = deleted.
LstItems
list
The item lines. See below.
When a delivery note covers lines of several purchase orders, the purchase-order fields are those of one of its lines.
LstItems — one entry per delivery note line:
Txn_Code
number
Logic ERP's internal delivery note line number.
AddlItemCode
text
The item's additional code, for example a barcode.
Quantity
number
Quantity still pending on the line; 0 once nothing is pending.
Packing
text
Packing description from the item master.
Packing_CF1, Packing_CF1_Desc
number, text
The item's first conversion factor and its description.
PO_Rate
number
Rate on the purchase order line.
PO_MRP
number
MRP on the purchase order line.
Packing_Box_No
text
Box number the goods are packed in; empty when none.
Example response
Messages you may see
No Pending Delivery Note found... (with Status: true)
Nothing has been added to the change log after your bookmark.
You are up to date. Call again later with the same bookmark.
No Record Found. (with Status: true)
Change-log lines were found but no delivery note could be returned (for example still waiting for approval, or outside the API site setup or a period's Branch_Codes_From), or nothing was changed in the period, or the Doc_Codes you sent found nothing.
With a bookmark: store the new LastGlobalModifyCode and call again. Otherwise: check what you sent.
A database error (with Status: false), for example Invalid column name 'abc'.
Doc_Codes contains something other than numbers and commas. The reason may be followed by technical detail – read the first line.
Send Doc_Codes as numbers separated by commas.
Last updated