E-Invoice Log

The E-Invoice Logs page (LSCMY E-Invoice Logs) records every API call made to ClearTax, whether from the background scheduler jobs or from a manual upload triggered at the POS or the Transaction Card. Use this page to troubleshoot submission failures, verify that a specific transaction was submitted, and review the ClearTax response for any e-Invoice.

Logging must be enabled in E-Invoice Setup for records to be written. See E-Invoice Setup.

To open the E-Invoice Logs page:

  1. Click the icon, enter E-Invoice Logs, and select the relevant link.

Field reference

Field Description
Request Type The type of operation that generated this log entry, for example GENERATE or UPLOAD. Corresponds to the Text value set on the scheduler job header, or the manual action that triggered the call.
Document ID The ClearTax document identifier associated with this API call. Matches the Document Id field on the staging entry.
Request Url The full URL of the ClearTax API endpoint called. Useful for confirming that the correct endpoint was used and for diagnosing connectivity issues.
Request Method The HTTP method used for the request (for example, POST).
Headers The HTTP request headers sent with the call, including the Authorization header. Use this field to verify that the correct token was used when diagnosing authentication failures.
Content Type The MIME type of the request body (for example, application/json).
Response Status Code The HTTP status code returned by ClearTax (for example, 200 for success, 400 for a validation error, 401 for an authentication failure). Use this field to quickly identify the outcome of a submission.
Date Time Created The date and time when the API call was made, in the LS Central server's time zone.
Duration The total time taken for the API call to complete. Useful for identifying slow API responses that may indicate connectivity or performance issues.
Entry No. A sequential number that uniquely identifies this log entry. Assigned automatically by the system.

Actions

Action Description
Show Content Displays the full JSON request body that was sent to ClearTax for the selected log entry. Use this to verify the e-Invoice data that was submitted, or to identify data issues that caused a validation error from ClearTax.
Show Response Displays the full response body returned by ClearTax for the selected log entry. Use this to read ClearTax error messages or to confirm the UUID and document ID returned on a successful submission.

Retention policy

E-Invoice Log records are registered as an allowed table in the Business Central Retention Policy framework during installation. This means you can configure a retention policy in BC to automatically delete log entries older than a specified number of days, keeping the log table from growing indefinitely.

To configure a retention policy for E-Invoice Logs, navigate to Retention Policies in Business Central and create or update a policy for the LSCMY E-Invoice Log table.

See also

E-Invoice Setup

Transaction Staging List

Scheduler Job