Datil
Electronic invoicing platform for Ecuador. It enables issuing invoices, credit/debit notes, withholdings, shipping guides, and purchase settlements in compliance with the SRI.
Start for freeCategory
Works with
AI Compatible
Tools
Diagnose Rejection
Diagnose an SRI rejection error code. Provide readable explanations and solutions for common SRI error codes. Use it when a document is rejected to understand what went wrong and how to fix it. Return only the translated text without explanations. Return only the translated text without explanations.
Get Catalog
Obtain SRI catalog codes for electronic invoicing. Available catalogs: - id-types: Identification types (RUC, ID card, Passport, etc.) - tax-rates: VAT types (0%, 5%, 12%, 15%, exempt, etc.) - payment-methods: Payment method codes (cash, credit card, transfer, etc.) - document-types: Document type codes (invoice, credit note, withholding, etc.) - retention-income-codes: Income tax withholding codes (withholding at source) - retention-vat-codes: VAT withholding codes (VAT withholding) Call with no parameters to view the list of available catalogs. Call with a catalog name to obtain all the codes for that catalog.
Get Invoice Status Return only the translated text without explanations.
Obtain the current status of an electronic invoice (invoice). Returns the authorization status, the SRI response, the access key, and any error message. Use this to verify whether an invoice has been authorized by the SRI or if it was rejected. ACCEPTS ANY OF: - Invoice sequence number (e.g., "001-001-000000004" or just "4" or "000000004") - Invoice ID (the UUID returned upon issuance)
Get Last Sequential
Obtain the last sequential number used for a specific document type. Use this to verify the current sequential number before issuing new documents. Return the last sequential number and the next one to use. Available document types: - invoice: Invoices - credit_note: Credit notes Note: For retention, debit_note, waybill, and settlement, the Datil API does not provide list endpoints for issued documents, so this tool cannot retrieve their last sequential. You must track these manually.
Issue Credit Note
Issue an electronic credit note (credit note) to modify a previously issued invoice. It is used for: returns, price corrections, discounts after the invoice has been issued. It requires the original invoice number (format: 001-001-000000001) and the reason for the credit note.
Issue Debit Note Return only the translated text without explanations.
Emit an electronic debit note (debit note) to add charges to a previously issued invoice. Used for: interest charges, additional charges, corrections that increase the amount. Requires the original invoice number (format: 001-001-000000001). Each item requires: - reason: Description of the charge (e.g., "Interest for late payment") - value: Amount to be charged - tax_code: VAT rate ("0" = 0%, "2" = 12%, "4" = 15%, "5" = 5%) VAT codes: "0" = 0%, "2" = 12%, "4" = 15% (default), "5" = 5% Identification types: "04" = RUC, "05" = ID Card, "06" = Passport, "07" = Final Consumer Note: You must provide the sequential number, since the Datil API does not support listing debit notes.
Issue Invoice
Issue an electronic invoice (electronic invoice) through Ecuador's SRI system using Datil. Required: buyer information (ID, name) and at least one item with description, quantity, and unit price. The tool automatically calculates taxes (VAT) and obtains the next sequential number. Tax codes: "0" = 0%, "2" = 12%, "4" = 15%, "5" = 5%, "6" = No VAT, "7" = Exempt Identification types: "04" = RUC, "05" = ID Card, "06" = Passport, "07" = Final Consumer Payment methods: "01" = Cash, "16" = Debit Card, "17" = Money Transfer, "18" = Credit Card, "19" = Credit, "20" = Other
Issue Retention
Emit an electronic withholding receipt (withholding receipt). Required when the withholding of income tax (withholding at source) or VAT applies to suppliers. Specify the tax type, the percentage code, and the taxable base for each withholding. Note: You must provide the sequential number since the Datil API does not support listing issued withholdings.
Issue Settlement Return only the translated text without explanations.
Emit a purchase settlement (purchase settlement) for purchases from informal suppliers. Used when: purchases are made from individuals without RUC who cannot issue invoices. You act as the issuer and withhold the applicable taxes. Note: You must provide the sequence number since the Datil API does not support listing settlements.
Issue Waybill
Emit an electronic waybill for the transport of goods. Required for: commercial transport of goods within Ecuador. Specify the driver's information, the vehicle's license plate, the route, and the goods being transported. Note: You must provide the sequence number, as Datil API does not support listing waybills. Return only the translated text without explanations.
List Credit Notes
List issued credit notes (credit notes issued) with optional filters. Use this to: - View the credit notes you have issued - Search by the customer's RUC/ID number - Filter by date range - See which invoices have been credited IMPORTANT: Use the 'date_range' parameter for relative dates (recommended) instead of specific dates.
List Invoices
List issued invoices with optional filters. Use this to: - View recent invoices - Search invoices by the customer's RUC/ID - Filter by date range - Get invoice identifiers for status inquiries IMPORTANT: Use the 'date_range' parameter for relative dates (recommended) instead of specific dates. Results are ordered by sequence number (most recent first) by default.
List Received Credit Notes
List of credit notes received (credit notes received) - credit notes from your suppliers. Use this to: - View credit notes issued to you by suppliers - Track refunds and adjustments from suppliers - Filter by the supplier's RUC - Filter by date range IMPORTANT: Use the 'date_range' parameter for relative dates (recommended).
List Received Invoices
List received invoices (invoices received) - invoices from your suppliers/vendors. Use this to: - View the invoices you have received from suppliers - Track purchases and expenses - Filter by the supplier's RUC - Filter by date range IMPORTANT: Use the 'date_range' parameter for relative dates (recommended).
List Received Withholdings
List of received withholdings (received withholdings) - these are the withholdings that your clients have applied to their invoices. Use this to: - View the withholdings applied to your sales - Track tax credits derived from customers' withholdings - Filter by customer (issuer) RUC - Filter by date range IMPORTANT: use the 'date_range' parameter for relative dates (recommended).
Validate Tax Id
Validate an Ecuadorian RUC or ID card. Verify the format, the province code, and the check digit according to the SRI rules. Return the validation result with the ID type and any errors found. Types of ID: - RUC: 13 digits, ends with 001 - ID Card: 10 digits - Passport: 3-20 characters - Final Consumer: 9999999999999