Vouchers

Read vouchers, and post, alter or delete them with dry run and idempotency.


Read posted vouchers, and post new ones. Amounts are signed: positive is debit, negative is credit, and every voucher must net to zero. For conventions, read the API overview. After a commit, follow the write on Write status.

Reading vouchers

List vouchers

GET /v1/vouchers

Returns voucher headers ordered by date and number. Lists carry no ledger lines: read one voucher for those. from and to filter the voucher date, not when it changed, so a back-dated edit does not show up in a recent window.

Parameters

Name In Type Required Description
company Query string No Company name, exactly as GET /v1/companies returns it. Case-sensitive. Optional only when the workspace has one company.
from Query date No Earliest voucher date, YYYY-MM-DD.
to Query date No Latest voucher date, YYYY-MM-DD.
voucherType Query string No Only this voucher type.
einvoiced Query boolean No Set to true for vouchers with an e-invoice. Any other value is ignored.
eway Query boolean No Set to true for vouchers with an e-way bill. Any other value is ignored.
cancelled Query boolean No Set to true for cancelled vouchers. Any other value is ignored.
page Query integer No Page number, from 1. Default 1.
pageSize Query integer No Rows per page, up to 1000. A larger value is cut to 1000 without an error, so read pageSize in the response. Default 100.
fresh Query boolean No Set to true to ask for a sooner refresh of this company. Needs company. The response is still the synced copy, and this never reads Tally. Default false.

Response fields

Field Type Description
page integer This page number.
pageSize integer Page size actually used.
total integer Total rows across all pages.
items[] array of object The rows.
items[].voucherNumber string Voucher number.
items[].guid string Tally GUID. Use it to read the voucher.
items[].date date Voucher date.
items[].voucherType string Voucher type.
items[].partyName string Party.
items[].narration string Narration.
items[].amount number Voucher amount. May arrive as a string, so parse it.
items[].reference string Reference.
items[].irn string E-invoice IRN.
items[].ewayBillNo string E-way bill number.
items[].isCancelled boolean true if cancelled.

Status codes

Status Error Meaning
200 Success.
400 bad_request The workspace has several companies and you sent no company, or a parameter is malformed.
401 unauthorized The key is missing, invalid or revoked.
404 not_found No company with that name.

Example request

curl -sG "https://relay.autotally.ai/v1/vouchers" \
  -H "authorization: Bearer $AUTOTALLY_TOKEN" \
  --data-urlencode "company=Sharma Traders Pvt Ltd" \
  --data-urlencode "from=2026-10-01" \
  --data-urlencode "to=2026-10-31" \
  --data-urlencode "voucherType=Sales"

Example response

{
  "page": 1,
  "pageSize": 100,
  "total": 1,
  "items": [
    {
      "voucherNumber": "INV/2026-27/0142",
      "guid": "4c0d6f1e-2a77-4b3d-9e15-0b8f7d3a1c64-00000a3f",
      "date": "2026-10-14",
      "voucherType": "Sales",
      "partyName": "Mehta Hardware Stores",
      "narration": "Hinges for Mehta Hardware",
      "amount": 11800,
      "isCancelled": false
    }
  ]
}

Get a voucher

GET /v1/vouchers/{guid}

Returns one voucher with its ledger lines and stock lines. After a write, this is how you confirm it reached Tally. Send company when the workspace has several companies.

Parameters

Name In Type Required Description
guid Path string Yes Voucher GUID.
company Query string No Company name, exactly as GET /v1/companies returns it. Case-sensitive. Optional only when the workspace has one company.
fresh Query boolean No Set to true to ask for a sooner refresh of this company. Needs company. The response is still the synced copy, and this never reads Tally. Default false.

Response fields

Field Type Description
voucherNumber string Voucher number.
guid string Guid.
masterId integer Tally's numeric id for the voucher.
alterId integer Tally's alteration counter. It rises each time the voucher changes.
date date Date.
voucherType string Voucher type.
partyName string Party name.
reference string Voucher reference. For an order, this is its order number.
narration string Narration.
amount number Voucher amount. May arrive as a string, so parse it.
ledgerEntries[] array of object Ledger lines.
ledgerEntries[].ledgerName string Ledger name.
ledgerEntries[].amount number Signed amount: positive debit, negative credit.
ledgerEntries[].ledgerType string Ledger type.
ledgerEntries[].isPartyLedger boolean Party ledger.
ledgerEntries[].billAllocations[] array of object Bill allocations.
ledgerEntries[].billAllocations[].name string Name.
ledgerEntries[].billAllocations[].billType string One of: New Ref, Agst Ref, Advance, On Account.
ledgerEntries[].billAllocations[].amount number Amount.
ledgerEntries[].billAllocations[].dueDate date Bill due date (YYYY-MM-DD); null when only a credit period is set.
ledgerEntries[].billAllocations[].creditPeriod string Credit-period text, e.g. "30 Days".
ledgerEntries[].costCentreAllocations[] array of object Cost centre split.
ledgerEntries[].costCentreAllocations[].category string Category.
ledgerEntries[].costCentreAllocations[].costCentre string Cost centre.
ledgerEntries[].costCentreAllocations[].amount number Signed like the entry: positive = debit.
ledgerEntries[].bankAllocations[] array of object Instrument details.
ledgerEntries[].bankAllocations[].transferMode string How the money moved, for example NEFT or Cheque.
ledgerEntries[].bankAllocations[].instrumentNumber string Instrument number.
ledgerEntries[].bankAllocations[].instrumentDate date YYYY-MM-DD.
ledgerEntries[].bankAllocations[].bankersDate date YYYY-MM-DD; set by Tally's bank reconciliation.
ledgerEntries[].bankAllocations[].utr string Utr.
ledgerEntries[].bankAllocations[].paymentFavouring string Payment favouring.
ledgerEntries[].bankAllocations[].bankPartyName string Bank party name.
ledgerEntries[].bankAllocations[].paymentMode string Payment mode.
ledgerEntries[].bankAllocations[].amount number Signed like the entry: positive = debit.
ledgerEntries[].bankAllocations[].transactionType string Transfer mode printed on the payment, for example RTGS. Read it beside transferMode: Tally keeps it even on a cheque.
ledgerEntries[].bankAllocations[].accountNumber string Beneficiary account number.
ledgerEntries[].bankAllocations[].bankName string Beneficiary bank.
ledgerEntries[].bankAllocations[].ifsc string Beneficiary IFSC.
ledgerEntries[].rateDetails[] array of object One entry per duty head.
ledgerEntries[].rateDetails[].dutyHead string Duty head, for example CGST, SGST/UTGST, IGST or Cess.
ledgerEntries[].rateDetails[].rate number Percent.
ledgerEntries[].rateDetails[].valuationType string Valuation type, for example Based on Value.
ledgerEntries[].hsn string HSN or SAC code.
ledgerEntries[].taxability string Taxability.
ledgerEntries[].gstHsnSacCode string HSN or SAC code.
ledgerEntries[].isReverseChargeApplicable boolean Reverse charge applies.
ledgerEntries[].forex object Forex.
ledgerEntries[].forex.currency string Currency.
ledgerEntries[].forex.amount number Foreign amount, signed like the line's own amount.
ledgerEntries[].forex.rateOfExchange number Base currency units per one foreign unit. Absent at exactly 1:1.
inventoryEntries[] array of object Stock lines.
inventoryEntries[].stockItemName string Stock item name.
inventoryEntries[].quantity number Quantity.
inventoryEntries[].rate number Rate.
inventoryEntries[].amount number Amount.
inventoryEntries[].godown string Godown.
inventoryEntries[].batchAllocations[] array of object Stock by batch and godown.
inventoryEntries[].batchAllocations[].batchName string Batch name.
inventoryEntries[].batchAllocations[].godownName string Godown name.
inventoryEntries[].batchAllocations[].quantity number Quantity.
inventoryEntries[].batchAllocations[].amount number Amount.
inventoryEntries[].batchAllocations[].orderNo string Order number, when Tally stores one.
inventoryEntries[].batchAllocations[].orderDueDate date Order due date.
inventoryEntries[].batchAllocations[].trackingNo string Tracking number.
inventoryEntries[].batchAllocations[].mfgDate date Manufacturing date of the batch.
inventoryEntries[].batchAllocations[].expiryDate date Expiry date of the batch.
inventoryEntries[].accountingLedger string Accounting ledger.
inventoryEntries[].hsn string HSN or SAC code.
inventoryEntries[].taxability string Taxability.
inventoryEntries[].rateDetails[] array of object One entry per duty head.
inventoryEntries[].rateDetails[].dutyHead string Duty head, for example CGST, SGST/UTGST, IGST or Cess.
inventoryEntries[].rateDetails[].rate number Percent.
inventoryEntries[].rateDetails[].valuationType string Valuation type, for example Based on Value.
inventoryEntries[].gstHsnSacCode string HSN or SAC code.
inventoryEntries[].isReverseChargeApplicable boolean Reverse charge applies.
inventoryEntries[].forex object Forex.
inventoryEntries[].forex.currency string Currency.
inventoryEntries[].forex.amount number Foreign amount, signed like the line's own amount.
inventoryEntries[].forex.rateOfExchange number Base currency units per one foreign unit. Absent at exactly 1:1.
inventoryEntries[].forexRate number Unit price in the foreign currency.
inventoryEntries[].description string Line description. Several lines are joined with a newline.
inventoryEntries[].discountPercent number Discount percent. 0 on a line with no discount.
inventoryEntries[].actualQuantity number Actual quantity, which can differ from the billed quantity.
inventoryEntries[].rateUnit string Unit the rate is per, for example Pcs.
inventoryEntries[].mfgDate date Manufacturing date, when every batch on the line shares one.
inventoryEntries[].expiryDate date Expiry date, when every batch on the line shares one.
placeOfSupply string GST place of supply.
partyGstin string Party GSTIN on this voucher.
gstRegistrationType string GST registration type.
dispatch object Dispatch.
dispatch.fromName string From name.
dispatch.fromState string From state.
dispatch.fromPincode string From pincode.
dispatch.fromPlace string From place.
consignee object Consignee.
consignee.name string Name.
consignee.state string State.
consignee.gstin string GSTIN.
consignee.pincode string Pincode.
irn string E-invoice IRN.
ewayBillNo string First e-way bill number.
isCancelled boolean true if cancelled.
eInvoice object E invoice.
eInvoice.irn string E-invoice IRN.
eInvoice.ackNo string Acknowledgement number.
eInvoice.ackDate string Acknowledgement date.
eInvoice.qrCode string Signed QR payload of the e-invoice.
ewayBills[] array of object E-way bills.
ewayBills[].billNumber string Bill number.
ewayBills[].billDate date Bill date.
ewayBills[].validUpto date Valid upto.
ewayBills[].documentType string Document type.
ewayBills[].subType string Sub type.

Status codes

Status Error Meaning
200 Success.
400 bad_request The workspace has several companies and you sent no company.
401 unauthorized The key is missing, invalid or revoked.
404 not_found No such record, or no company with that name.

Example request

curl -sG "https://relay.autotally.ai/v1/vouchers/4c0d6f1e-2a77-4b3d-9e15-0b8f7d3a1c64-00000a3f" \
  -H "authorization: Bearer $AUTOTALLY_TOKEN" \
  --data-urlencode "company=Sharma Traders Pvt Ltd"

Writing vouchers

Post a voucher

POST /v1/vouchers

Validates a voucher, and with commit=true queues it for Tally. A dry run with companyGuid looks up every name, checks the arithmetic and previews the number. It is free and stores nothing. A dry run can pass and the commit still be refused: the checks on duplicate bills and posting limits are reported on a dry run and enforced on commit.

Parameters

Name In Type Required Description
commit Query boolean No Set to true to queue the write. Without it the call is a dry run and changes nothing. Default false.
Idempotency-Key Header string Yes One key per logical write. Reuse it on a retry. Required even on a dry run.

Body fields

Field Type Required Description
companyGuid string No Company to post into, from GET /v1/companies. Required to commit. Without it a dry run checks arithmetic only.
voucher object Yes The voucher.
voucher.date date Yes Voucher date, YYYY-MM-DD.
voucher.voucherNumber string No Your own voucher number. Send it from your system if you intend to retry: see retries. When the voucher type does not number imported vouchers and you omit this, AutoTally continues the series from your books, and refuses if it cannot.
voucher.voucherType string Yes Name of a voucher type in this company, for example Sales. A type you created under a standard type follows the rules of its parent. The rules by type list what each one needs.
voucher.narration string No Free text.
voucher.ledgerEntries[] array of object No The ledger lines. Positive is debit, negative is credit.
voucher.ledgerEntries[].ledger string Yes Ledger name in this company.
voucher.ledgerEntries[].amount number Yes Signed amount: positive debit, negative credit.
voucher.ledgerEntries[].billAllocations[] array of object No Bill-wise split of this line. Amounts must sum to the line's signed amount.
voucher.ledgerEntries[].billAllocations[].name string No Bill reference, for example your invoice number. Required unless billType is On Account.
voucher.ledgerEntries[].billAllocations[].billType string Yes New Ref raises a bill, Agst Ref settles one. One of: New Ref, Agst Ref, Advance, On Account.
voucher.ledgerEntries[].billAllocations[].amount number Yes Signed like the ledger line.
voucher.ledgerEntries[].billAllocations[].dueDate date No Bill due date, YYYY-MM-DD.
voucher.ledgerEntries[].billAllocations[].creditPeriod string No Free text such as 30 Days. Ignored if dueDate is set.
voucher.ledgerEntries[].costCentreAllocations[] array of object No Cost centre split of this line. Amounts must sum to the line's signed amount.
voucher.ledgerEntries[].costCentreAllocations[].costCentre string Yes Cost centre name.
voucher.ledgerEntries[].costCentreAllocations[].amount number Yes Signed like the ledger line.
voucher.ledgerEntries[].costCentreAllocations[].category string No Cost category name.
voucher.ledgerEntries[].bankAllocations[] array of object No Instrument details for a bank ledger line.
voucher.ledgerEntries[].bankAllocations[].transferMode string Yes How the money moved. One of: Cheque, NEFT, RTGS, IMPS, UPI, ECS, DD, Inter Bank Transfer, Same Bank Transfer, Cash, Card, Electronic Cheque, Electronic DD/PO.
voucher.ledgerEntries[].bankAllocations[].instrumentNumber string No Cheque or instrument number.
voucher.ledgerEntries[].bankAllocations[].instrumentDate date No Instrument date, YYYY-MM-DD.
voucher.ledgerEntries[].bankAllocations[].utr string No Bank transaction reference (UTR).
voucher.ledgerEntries[].bankAllocations[].paymentFavouring string No Payee name.
voucher.ledgerEntries[].tds object No Marks this line as a TDS deduction. The line's own amount still carries the money.
voucher.ledgerEntries[].tds.natureOfPayment string Yes Name of a TDS or TCS rate from GET /v1/tds-rates.
voucher.ledgerEntries[].tds.assessableValue number No Assessable value. For classification only, never added to any total.
voucher.ledgerEntries[].tcs object No Marks this line as a TCS deduction. The line's own amount still carries the money.
voucher.ledgerEntries[].tcs.natureOfPayment string Yes Name of a TDS or TCS rate from GET /v1/tds-rates.
voucher.ledgerEntries[].tcs.assessableValue number No Assessable value. For classification only, never added to any total.
voucher.ledgerEntries[].forex object No Foreign currency details for this line. Omit for base currency. All three fields are required together.
voucher.ledgerEntries[].forex.currency string Yes Currency symbol. The company must hold this currency.
voucher.ledgerEntries[].forex.amount number Yes Foreign amount, unsigned and non-zero. The line's amount carries the sign.
voucher.ledgerEntries[].forex.rateOfExchange number Yes Base currency units per one foreign unit. The line's amount must equal forex.amount times this rate.
voucher.inventoryEntries[] array of object No Stock lines. Required for orders and stock vouchers, and for an item invoice. On an item invoice, ledger lines plus stock lines plus additional charges must net to zero.
voucher.inventoryEntries[].stockItemName string Yes Stock item name in this company.
voucher.inventoryEntries[].quantity number Yes Billed quantity.
voucher.inventoryEntries[].rate number Yes Rate per unit, in the stock item's base unit.
voucher.inventoryEntries[].amount number Yes Signed amount: negative for a sale (credit), positive for a purchase (debit).
voucher.inventoryEntries[].godown string No Godown name.
voucher.inventoryEntries[].batch string No Batch name.
voucher.inventoryEntries[].batchAllocations[] array of object No Split across several batches. Used instead of godown and batch. Quantities and amounts must sum to the line's, ignoring sign.
voucher.inventoryEntries[].batchAllocations[].godown string No Godown name.
voucher.inventoryEntries[].batchAllocations[].batch string No Batch name.
voucher.inventoryEntries[].batchAllocations[].quantity number Yes Quantity in this batch.
voucher.inventoryEntries[].batchAllocations[].amount number Yes Amount in this batch.
voucher.inventoryEntries[].accountingLedger string No The sales or purchase ledger for this line. Put it here, not in ledgerEntries.
voucher.inventoryEntries[].discountPercent number No Discount, 0 to 100.
voucher.inventoryEntries[].actualQuantity number No Actual quantity, when it differs from the billed quantity.
voucher.inventoryEntries[].orderNumber string No Number of an existing order this line fulfils. This does not number the voucher itself.
voucher.inventoryEntries[].orderDueDate date No Order due date, YYYY-MM-DD.
voucher.inventoryEntries[].trackingNumber string No Delivery or receipt note tracking number.
voucher.inventoryEntries[].isDestination boolean No Stock Journal only: false for a source line, true for a destination line.
voucher.placeOfSupply string No GST place of supply, as a state name.
voucher.partyGstin string No Party GSTIN for this voucher, overriding the party ledger.
voucher.gstRegistrationType string No Party registration type for this voucher, for example Regular or Unregistered.
voucher.additionalCharges[] array of object No Charges on the whole invoice, such as freight or packing. Signed like a ledger line and included in the net-to-zero check.
voucher.additionalCharges[].ledger string Yes Ledger name for the charge.
voucher.additionalCharges[].amount number Yes Signed amount: positive debit, negative credit.
voucher.additionalCharges[].isApportioned boolean No true to spread the charge across the stock lines, otherwise it posts as a flat ledger line.
voucher.originalInvoiceRef string No The invoice this note is raised against. Required for Debit Note and Credit Note. It posts as an Agst Ref bill allocation on the first ledger line.
voucher.orderNumber string No The order's own number. Required for Sales Order and Purchase Order. On a read it comes back as reference.
voucher.orderDueDate date No Order due date, YYYY-MM-DD.
acknowledge[] array of string No Refusals to waive, by code, after a gate_blocked response. A waived voucher always waits for a person to approve it. One of: expense-equals-party, over-threshold, duplicate-bill.
documentIds[] array of UUID No Documents this entry was made from, up to 20. Checked on commit only.

You do not send GST rates or HSN codes. Send each tax as its own ledger line with its amount, and Tally takes the rate and HSN from the masters. On an item invoice, ledgerEntries holds the party and the taxes, and each stock line names its sales ledger in accountingLedger.

Response fields, dry run (200)

Field Type Description
valid boolean Always true here.
dryRun boolean Always true here.
resolution string checked when you sent companyGuid and every name resolved. skipped_no_company when you did not, so only the arithmetic was checked. One of: checked, skipped_no_company.
resolved object The voucher as it would post, with names spelled as your books spell them and the party filled in.
warnings[] array of object Things worth a look that do not stop the write. Present only when there are some.
warnings[].code string Warning code. One of: party_group_unusual, unknown_bill_reference, characters_tally_cannot_store, tds_nature_unverifiable.
warnings[].field string The field it concerns.
warnings[].message string What to check.
gates[] array of object Refusals this voucher would hit on commit. A dry run reports them and still returns 200.
gates[].code string Refusal code. Send it in acknowledge to waive it. One of: expense-equals-party, over-threshold, duplicate-bill.
gates[].message string What was found.
numbering object The number this voucher would get. Present only when AutoTally would allocate one.
numbering.method string The voucher type's numbering method.
numbering.willBe string The number the commit would claim.
numbering.basis string The series being continued, in words you can show a person.
numbering.ignored[] array of string Existing numbers set aside as out of series.
findings[] array of object What your company's own Tally settings say this voucher needs, such as a batch on a batch-tracked item. Present only when there are some. The dry run still passes. On commit, a finding with severity error refuses the voucher with 400 invalid_voucher, and nothing can waive it. A warning never stops a write.
findings[].ruleId string The check that found it.
findings[].severity string error is what Tally would refuse, warning does not stop the write, info is for your information. One of: error, warning, info.
findings[].path string Where in the voucher, for example inventoryEntries[1].batchAllocations.
findings[].message string What was found.
findings[].fix string What to change.
findings[].confirmed boolean false when a setting this check needs has not been read from Tally yet, so it could not be confirmed.

Response fields, commit (202)

Field Type Description
intentId UUID Poll GET /v1/intents/{id} with this.
state string State of the write. One of: pending, claimed, submitted, applied, failed, rejected.
deduped boolean true if this returned an earlier write instead of queuing a new one.

Status codes

Status Error Meaning
200 Dry run passed. Nothing was stored.
202 Queued. Poll GET /v1/intents/{id}.
400 bad_request Idempotency-Key is missing, or companyGuid is missing on a commit.
400 invalid_voucher The payload failed validation. messages[] says why. On a commit refused because your company's Tally settings rule the voucher out, findings[] has the details. Nothing can waive that: fix the voucher.
401 unauthorized The key is missing, invalid or revoked.
402 plan_required Committing needs a paid seat. Nothing was queued.
403 forbidden The key does not allow writes.
409 idempotency_key_reused This Idempotency-Key was already used for a different write.
409 no_such_master On commit, a name in the voucher matched nothing. issues[] lists them. On a dry run the same problem is a 400 invalid_voucher.
409 ambiguous_name On commit, a name in the voucher matched several records.
409 masters_not_synced On commit, the records this voucher names have not synced yet.
422 gate_blocked A posting check refused it: duplicate-bill, over-threshold or expense-equals-party. gates[] has the details. No message field on this one.
422 unknown_document A value in documentIds is not in this workspace.
422 document_already_entered A document in documentIds already has an entry in this company.
503 gate_unavailable The posting checks could not run. Nothing was queued. Retry.
503 numbering_unavailable A voucher number could not be allocated. Nothing was queued. Retry.
503 document_link_unavailable The documents could not be read. Nothing was queued. Retry.

Example request

curl -s -X POST "https://relay.autotally.ai/v1/vouchers?commit=true" \
  -H "authorization: Bearer $AUTOTALLY_TOKEN" \
  -H "idempotency-key: billing-inv-0142" \
  -H "content-type: application/json" \
  -d '{
  "companyGuid": "9f3a1c52-7b1e-4d60-a2f4-6c1e8d0b7a11",
  "voucher": {
    "date": "2026-10-14",
    "voucherType": "Sales",
    "voucherNumber": "INV/2026-27/0142",
    "narration": "Hinges for Mehta Hardware",
    "placeOfSupply": "Maharashtra",
    "ledgerEntries": [
      {
        "ledger": "Mehta Hardware Stores",
        "amount": 11800,
        "billAllocations": [
          {
            "name": "INV/2026-27/0142",
            "billType": "New Ref",
            "amount": 11800,
            "creditPeriod": "30 Days"
          }
        ]
      },
      {
        "ledger": "Output CGST 9%",
        "amount": -900
      },
      {
        "ledger": "Output SGST 9%",
        "amount": -900
      }
    ],
    "inventoryEntries": [
      {
        "stockItemName": "Steel Hinge 4 inch",
        "quantity": 100,
        "rate": 100,
        "amount": -10000,
        "accountingLedger": "Sales Account",
        "godown": "Main Location"
      }
    ]
  }
}'

Example response, commit

{
  "intentId": "e21f7a90-5c3b-4d18-8f26-3b9c1d7e4a02",
  "state": "pending",
  "deduped": false
}

Example refusal, posting check

{
  "error": "gate_blocked",
  "gates": [
    {
      "code": "duplicate-bill",
      "message": "INV/2026-27/0142 from Mehta Hardware Stores is already posted"
    }
  ]
}

Replace a voucher

PATCH /v1/vouchers/{guid}

Replaces a posted voucher. This is a full replacement: the body becomes the voucher, and any line you leave out is dropped. Read the voucher first. Posting checks are not run on a replacement. Send voucherNumber if the voucher type needs one, as it is not allocated here.

Parameters

Name In Type Required Description
guid Path string Yes GUID of the voucher to replace.
commit Query boolean No Set to true to queue the write. Without it the call is a dry run and changes nothing. Default false.
Idempotency-Key Header string Yes One key per logical write. Reuse it on a retry. Required even on a dry run.

Body fields

Field Type Required Description
companyGuid string No Company the voucher belongs to. Required to commit.
voucher object Yes The complete replacement voucher.
voucher.date date Yes Voucher date, YYYY-MM-DD.
voucher.voucherNumber string No Your own voucher number. Send it from your system if you intend to retry: see retries. When the voucher type does not number imported vouchers and you omit this, AutoTally continues the series from your books, and refuses if it cannot.
voucher.voucherType string Yes Name of a voucher type in this company, for example Sales. A type you created under a standard type follows the rules of its parent. The rules by type list what each one needs.
voucher.narration string No Free text.
voucher.ledgerEntries[] array of object No The ledger lines. Positive is debit, negative is credit.
voucher.ledgerEntries[].ledger string Yes Ledger name in this company.
voucher.ledgerEntries[].amount number Yes Signed amount: positive debit, negative credit.
voucher.ledgerEntries[].billAllocations[] array of object No Bill-wise split of this line. Amounts must sum to the line's signed amount.
voucher.ledgerEntries[].billAllocations[].name string No Bill reference, for example your invoice number. Required unless billType is On Account.
voucher.ledgerEntries[].billAllocations[].billType string Yes New Ref raises a bill, Agst Ref settles one. One of: New Ref, Agst Ref, Advance, On Account.
voucher.ledgerEntries[].billAllocations[].amount number Yes Signed like the ledger line.
voucher.ledgerEntries[].billAllocations[].dueDate date No Bill due date, YYYY-MM-DD.
voucher.ledgerEntries[].billAllocations[].creditPeriod string No Free text such as 30 Days. Ignored if dueDate is set.
voucher.ledgerEntries[].costCentreAllocations[] array of object No Cost centre split of this line. Amounts must sum to the line's signed amount.
voucher.ledgerEntries[].costCentreAllocations[].costCentre string Yes Cost centre name.
voucher.ledgerEntries[].costCentreAllocations[].amount number Yes Signed like the ledger line.
voucher.ledgerEntries[].costCentreAllocations[].category string No Cost category name.
voucher.ledgerEntries[].bankAllocations[] array of object No Instrument details for a bank ledger line.
voucher.ledgerEntries[].bankAllocations[].transferMode string Yes How the money moved. One of: Cheque, NEFT, RTGS, IMPS, UPI, ECS, DD, Inter Bank Transfer, Same Bank Transfer, Cash, Card, Electronic Cheque, Electronic DD/PO.
voucher.ledgerEntries[].bankAllocations[].instrumentNumber string No Cheque or instrument number.
voucher.ledgerEntries[].bankAllocations[].instrumentDate date No Instrument date, YYYY-MM-DD.
voucher.ledgerEntries[].bankAllocations[].utr string No Bank transaction reference (UTR).
voucher.ledgerEntries[].bankAllocations[].paymentFavouring string No Payee name.
voucher.ledgerEntries[].tds object No Marks this line as a TDS deduction. The line's own amount still carries the money.
voucher.ledgerEntries[].tds.natureOfPayment string Yes Name of a TDS or TCS rate from GET /v1/tds-rates.
voucher.ledgerEntries[].tds.assessableValue number No Assessable value. For classification only, never added to any total.
voucher.ledgerEntries[].tcs object No Marks this line as a TCS deduction. The line's own amount still carries the money.
voucher.ledgerEntries[].tcs.natureOfPayment string Yes Name of a TDS or TCS rate from GET /v1/tds-rates.
voucher.ledgerEntries[].tcs.assessableValue number No Assessable value. For classification only, never added to any total.
voucher.ledgerEntries[].forex object No Foreign currency details for this line. Omit for base currency. All three fields are required together.
voucher.ledgerEntries[].forex.currency string Yes Currency symbol. The company must hold this currency.
voucher.ledgerEntries[].forex.amount number Yes Foreign amount, unsigned and non-zero. The line's amount carries the sign.
voucher.ledgerEntries[].forex.rateOfExchange number Yes Base currency units per one foreign unit. The line's amount must equal forex.amount times this rate.
voucher.inventoryEntries[] array of object No Stock lines. Required for orders and stock vouchers, and for an item invoice. On an item invoice, ledger lines plus stock lines plus additional charges must net to zero.
voucher.inventoryEntries[].stockItemName string Yes Stock item name in this company.
voucher.inventoryEntries[].quantity number Yes Billed quantity.
voucher.inventoryEntries[].rate number Yes Rate per unit, in the stock item's base unit.
voucher.inventoryEntries[].amount number Yes Signed amount: negative for a sale (credit), positive for a purchase (debit).
voucher.inventoryEntries[].godown string No Godown name.
voucher.inventoryEntries[].batch string No Batch name.
voucher.inventoryEntries[].batchAllocations[] array of object No Split across several batches. Used instead of godown and batch. Quantities and amounts must sum to the line's, ignoring sign.
voucher.inventoryEntries[].batchAllocations[].godown string No Godown name.
voucher.inventoryEntries[].batchAllocations[].batch string No Batch name.
voucher.inventoryEntries[].batchAllocations[].quantity number Yes Quantity in this batch.
voucher.inventoryEntries[].batchAllocations[].amount number Yes Amount in this batch.
voucher.inventoryEntries[].accountingLedger string No The sales or purchase ledger for this line. Put it here, not in ledgerEntries.
voucher.inventoryEntries[].discountPercent number No Discount, 0 to 100.
voucher.inventoryEntries[].actualQuantity number No Actual quantity, when it differs from the billed quantity.
voucher.inventoryEntries[].orderNumber string No Number of an existing order this line fulfils. This does not number the voucher itself.
voucher.inventoryEntries[].orderDueDate date No Order due date, YYYY-MM-DD.
voucher.inventoryEntries[].trackingNumber string No Delivery or receipt note tracking number.
voucher.inventoryEntries[].isDestination boolean No Stock Journal only: false for a source line, true for a destination line.
voucher.placeOfSupply string No GST place of supply, as a state name.
voucher.partyGstin string No Party GSTIN for this voucher, overriding the party ledger.
voucher.gstRegistrationType string No Party registration type for this voucher, for example Regular or Unregistered.
voucher.additionalCharges[] array of object No Charges on the whole invoice, such as freight or packing. Signed like a ledger line and included in the net-to-zero check.
voucher.additionalCharges[].ledger string Yes Ledger name for the charge.
voucher.additionalCharges[].amount number Yes Signed amount: positive debit, negative credit.
voucher.additionalCharges[].isApportioned boolean No true to spread the charge across the stock lines, otherwise it posts as a flat ledger line.
voucher.originalInvoiceRef string No The invoice this note is raised against. Required for Debit Note and Credit Note. It posts as an Agst Ref bill allocation on the first ledger line.
voucher.orderNumber string No The order's own number. Required for Sales Order and Purchase Order. On a read it comes back as reference.
voucher.orderDueDate date No Order due date, YYYY-MM-DD.

Response fields, dry run (200)

Field Type Description
valid boolean Always true here.
dryRun boolean Always true here.
resolution string checked when you sent companyGuid and every name resolved. skipped_no_company when you did not, so only the arithmetic was checked. One of: checked, skipped_no_company.
resolved object The voucher as it would post, with names spelled as your books spell them and the party filled in.
warnings[] array of object Things worth a look that do not stop the write. Present only when there are some.
warnings[].code string Warning code. One of: party_group_unusual, unknown_bill_reference, characters_tally_cannot_store, tds_nature_unverifiable.
warnings[].field string The field it concerns.
warnings[].message string What to check.
gates[] array of object Refusals this voucher would hit on commit. A dry run reports them and still returns 200.
gates[].code string Refusal code. Send it in acknowledge to waive it. One of: expense-equals-party, over-threshold, duplicate-bill.
gates[].message string What was found.
numbering object The number this voucher would get. Present only when AutoTally would allocate one.
numbering.method string The voucher type's numbering method.
numbering.willBe string The number the commit would claim.
numbering.basis string The series being continued, in words you can show a person.
numbering.ignored[] array of string Existing numbers set aside as out of series.
findings[] array of object What your company's own Tally settings say this voucher needs, such as a batch on a batch-tracked item. Present only when there are some. The dry run still passes. On commit, a finding with severity error refuses the voucher with 400 invalid_voucher, and nothing can waive it. A warning never stops a write.
findings[].ruleId string The check that found it.
findings[].severity string error is what Tally would refuse, warning does not stop the write, info is for your information. One of: error, warning, info.
findings[].path string Where in the voucher, for example inventoryEntries[1].batchAllocations.
findings[].message string What was found.
findings[].fix string What to change.
findings[].confirmed boolean false when a setting this check needs has not been read from Tally yet, so it could not be confirmed.

Response fields, commit (202)

Field Type Description
intentId UUID Poll GET /v1/intents/{id} with this.
state string State of the write. One of: pending, claimed, submitted, applied, failed, rejected.
deduped boolean true if this returned an earlier write instead of queuing a new one.

Status codes

Status Error Meaning
200 Dry run passed. Nothing was stored.
202 Queued. Poll GET /v1/intents/{id}.
400 bad_request Idempotency-Key is missing, or companyGuid is missing on a commit.
400 invalid_voucher The payload failed validation. messages[] says why. On a commit refused because your company's Tally settings rule the voucher out, findings[] has the details. Nothing can waive that: fix the voucher.
401 unauthorized The key is missing, invalid or revoked.
402 plan_required Committing needs a paid seat. Nothing was queued.
403 forbidden The key does not allow writes.
409 idempotency_key_reused This Idempotency-Key was already used for a different write.
409 no_such_master On commit, a name in the voucher matched nothing.
409 ambiguous_name On commit, a name in the voucher matched several records.
409 masters_not_synced On commit, the records this voucher names have not synced yet.

Example request

curl -s -X PATCH "https://relay.autotally.ai/v1/vouchers/4c0d6f1e-2a77-4b3d-9e15-0b8f7d3a1c64-00000a3f?commit=true" \
  -H "authorization: Bearer $AUTOTALLY_TOKEN" \
  -H "idempotency-key: billing-inv-0142-rev-1" \
  -H "content-type: application/json" \
  -d '{
  "companyGuid": "9f3a1c52-7b1e-4d60-a2f4-6c1e8d0b7a11",
  "voucher": {
    "date": "2026-10-14",
    "voucherType": "Sales",
    "voucherNumber": "INV/2026-27/0142",
    "narration": "Hinges, corrected narration",
    "placeOfSupply": "Maharashtra",
    "ledgerEntries": [
      {
        "ledger": "Mehta Hardware Stores",
        "amount": 11800,
        "billAllocations": [
          {
            "name": "INV/2026-27/0142",
            "billType": "New Ref",
            "amount": 11800,
            "creditPeriod": "30 Days"
          }
        ]
      },
      {
        "ledger": "Output CGST 9%",
        "amount": -900
      },
      {
        "ledger": "Output SGST 9%",
        "amount": -900
      }
    ],
    "inventoryEntries": [
      {
        "stockItemName": "Steel Hinge 4 inch",
        "quantity": 100,
        "rate": 100,
        "amount": -10000,
        "accountingLedger": "Sales Account",
        "godown": "Main Location"
      }
    ]
  }
}'

Delete a voucher

DELETE /v1/vouchers/{guid}

Deletes a voucher. A dry run checks the GUID's shape only, not that the voucher exists. Pass companyGuid in the query and send no body: a content-type: application/json header with an empty body is refused with 400.

Parameters

Name In Type Required Description
guid Path string Yes GUID of the voucher to delete.
commit Query boolean No Set to true to queue the write. Without it the call is a dry run and changes nothing. Default false.
companyGuid Query string No Company GUID. Required to commit.
Idempotency-Key Header string Yes One key per logical write. Reuse it on a retry. Required even on a dry run.

Response fields, dry run (200)

Field Type Description
valid boolean Always true here. A failed dry run is a 400.
dryRun boolean Always true here.

Response fields, commit (202)

Field Type Description
intentId UUID Poll GET /v1/intents/{id} with this.
state string State of the write. One of: pending, claimed, submitted, applied, failed, rejected.
deduped boolean true if this returned an earlier write instead of queuing a new one.

Status codes

Status Error Meaning
200 Dry run passed. Nothing was stored.
202 Queued. Poll GET /v1/intents/{id}.
400 bad_request Idempotency-Key is missing, or companyGuid is missing on a commit.
400 invalid_voucher The payload failed validation. messages[] says why.
401 unauthorized The key is missing, invalid or revoked.
402 plan_required Committing needs a paid seat. Nothing was queued.
403 forbidden The key does not allow writes.
409 idempotency_key_reused This Idempotency-Key was already used for a different write.

Example request

curl -s -X DELETE "https://relay.autotally.ai/v1/vouchers/4c0d6f1e-2a77-4b3d-9e15-0b8f7d3a1c64-00000a3f?commit=true&companyGuid=9f3a1c52-7b1e-4d60-a2f4-6c1e8d0b7a11" \
  -H "authorization: Bearer $AUTOTALLY_TOKEN" \
  -H "idempotency-key: billing-inv-0142-delete"

Rules by voucher type

A dry run applies these. A type you created under a standard type follows its parent's rules. Any other type name is free-form.

Voucher type Needs
Sales, Purchase, Payment, Receipt, Journal At least one ledger line. Without stock lines, at least two, netting to zero.
Contra Ledger lines, all on cash or bank ledgers.
Sales Order, Purchase Order Ledger lines, stock lines and a voucher-level orderNumber.
Delivery Note, Receipt Note Stock lines. Ledger lines not required.
Debit Note, Credit Note Ledger lines and originalInvoiceRef.
Stock Journal Stock lines only, with at least one isDestination: false and one isDestination: true, netting to zero.
Physical Stock Stock lines.

Attendance and payroll voucher bodies are not supported. Post salary as an ordinary Journal or Payment with plain ledger lines.

Retrying a voucher

To retry, resend the same voucher with the same Idempotency-Key. You get the first attempt back with deduped: true, and no new voucher number is taken.

On a 409, read the first attempt's result with GET /v1/intents/{id} before you write again. Keys never expire. A failed or rejected write stays failed under its key, so use a new key to try again.