Mark an invoice as imported into Tally
Confirms that Tally now holds this invoice's voucher, optionally recording Tally's voucher reference. This is the only way an invoice reaches the pushed state, because exporting a file does not prove Tally imported it.
How to use it
- Export the invoice with Export an invoice to Tally XML (or Export a day's invoices) and import the file into Tally.
- After checking the voucher exists in Tally, send this request with Tally's voucher reference if you have it.
- The invoice's latest export moves to PUSHED. Fails if the invoice was never exported; repeating it on a pushed invoice changes nothing.
BearerAuthAuthorizationBearer <JWT>invoiceId*stringID of the sales invoice, from List sales invoices.
uuidX-TenantID*stringYour merchant's tenant code — the value typed in the Domain field on the iotoms login screen. See Concepts.
application/json- body
tallyVoucherRef?|Optional voucher number or reference Tally gave the imported voucher, kept for audit.
OK
*/*- response
status*stringOutcome of the call: SUCCESS when it worked, ERROR when it failed.
message*stringShort human-readable message describing the outcome, for example "Vendor created". Do not parse it.
data?|Endpoint-specific payload: null when there is nothing to return (e.g. after removing a unit); for credit note PDFs it holds returnId, creditNoteNumber, templateId, templateVersion, pdfUrl and generatedAt.
curl -X POST 'https://beta.iotoms.com/api/v1/integrations/tally/invoices/497f6eca-6276-4993-bfeb-53cbbbba6f08/mark-imported' \ -H 'X-TenantID: your-tenant-code' \ -H 'Content-Type: application/json' \ -d '{}'{ "status": "string", "message": "string", "data": {}}