create_delivery_note
Create a Delivery Note in TallyPrime to log goods dispatched to a customer without issuing a sales invoice. Moves stock out and records the dispatch reference.
Instructions
Create a Delivery Note in TallyPrime — an item-line inventory voucher recording goods dispatched to a customer before or without a full Sales invoice (e.g. against a Sales Order). Same item-line shape as create_sales_invoice (stock item, quantity, rate, Sales ledger per line) but ISINVOICE is set to No and there's no VAT/tax line — a Delivery Note doesn't invoice the customer, it just moves stock out and records the reference. Distinct from create_rejections_out, which has no party/ledger amount at all. IMPORTANT (confirmed live): the Delivery Note voucher type must be active in the company first — check in Tally's UI (voucher types can be turned off per company) — otherwise the API still reports CREATED:1 even though the voucher won't show up in any report or be findable by get_vouchers/delete_voucher until the type is turned on. Once active, get_vouchers and delete_voucher find it correctly. get_ledger_vouchers will still never show it, by design, not a gap — that tool deliberately excludes inventory-classified vouchers (see its own description). ALSO confirmed live: Delivery Note can silently stop auto-numbering via the gateway, same failure mode as item-invoice types (Sales/Purchase/Credit Note/Debit Note) — symptom is a blank EXCEPTIONS:1 with no useful error text (the real cause, 'Voucher No. is missing', only shows in Tally's own Import Data UI). If creation fails this way, pass voucherNumber explicitly (check get_vouchers for the next free number of this voucher type).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| date | Yes | Delivery date in DD-MM-YYYY format | |
| items | Yes | One entry per line. | |
| buyerTrn | No | The buyer's TRN as it should appear on this delivery note's Party Details (voucher-level TRADERCONSVATTINNO/BASICBUYERSSALESTAXNO). Confirmed live: Delivery Note carries the same Buyer Details block as Sales/Credit Note. | |
| narration | No | Narration / description | |
| reference | No | Free-text reference for this delivery note (Tally's voucher-level REFERENCE field), e.g. a dispatch or challan number. | |
| buyerState | No | The buyer's Emirate/state on this delivery note's Party Details (voucher-level STATENAME). | |
| partyLedger | Yes | Customer ledger name | |
| buyerCountry | No | The buyer's country on this delivery note's Party Details (voucher-level COUNTRYOFRESIDENCE). | |
| referenceDate | No | Date for the reference above, in DD-MM-YYYY format. | |
| voucherNumber | No | Explicit voucher number. Normally omit and let Tally auto-number — but this connector confirmed live that Delivery Note can stop auto-numbering via the gateway (same as item-invoice types). If creation fails with a blank EXCEPTIONS:1, check get_vouchers for the highest existing number of this voucher type and retry with voucherNumber set to the next one. | |
| placeOfSupplyCountry | No | UAE VAT Place of Supply Country (Tally's PLACEOFSUPPLYCOUNTRY field). | |
| placeOfSupplyEmirate | No | UAE VAT Place of Supply Emirate for this delivery note (Tally's EMIRATEPOS field). |