> For the complete documentation index, see [llms.txt](https://docs.cleartax.in/cleartax-docs/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.cleartax.in/cleartax-docs/e-invoicing-api/e-invoicing-api-reference.md).

# E-Invoicing API Reference

For information on environments, host name, IP, port, TLS certificates, refer to:

{% content-ref url="/pages/ZVvR8S3TgQy6o8n9twSE" %}
[CFC API Reference](/cleartax-docs/clear-finance-cloud/cfc-api-reference.md)
{% endcontent-ref %}

## Different sets of E-Invoicing API&#x20;

ClearTax E-Invoicing provides 2 kinds of APIs:

1. Government Compatible APIs
2. ClearTax E-Invoicing APIs

These are synchronous APIs that cater to basic e-invoicing functionalities and the schema is compatible with the schema provided by the government.

* Generate IRN
* Cancel IRN
* Get Invoice by IRN

These APIs are available for consumption in the staging environment.

{% content-ref url="/pages/-M2IGr\_r5wHnh0tY1aty" %}
[Clear Schema](/cleartax-docs/e-invoicing-api/e-invoicing-api-reference/cleartax-e-invoicing-apis-xml-schema.md)
{% endcontent-ref %}

{% content-ref url="/pages/-Lz0wdqxA\_zN7AEiI5Ea" %}
[Government Schema](/cleartax-docs/e-invoicing-api/e-invoicing-api-reference/govt-compatible-apis.md)
{% endcontent-ref %}

### Difference between ClearTax API and Government Compatible API

\| **Actions**&#x20;                                                  \| Government Compatible API&#x20;\| <p>

</p><p>ClearTax API</p> |
| ------------------------------------------------------------------ | ------------------------------ | ---------------------------- |
| **Generating IRN**                                                 | Y                              | Y                            |
| **Ability to send Custom fields**                                  | N                              | Y                            |
| **Retry IRN Generation (for invoices failed due to IRP failures)** | N                              | Y                            |
| **Invoice Validation**                                             | Y                              | Y                            |
| **Generating IRN (Bulk)**                                          | N                              | Y                            |
| **Canceling IRN**                                                  | Y                              | Y                            |
| **Getting IRN details**                                            | Y                              | Y                            |
| **Printing E-invoice**                                             | Y                              | Y                            |
