> 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/rcm-self-invoicing-purchase-documents-government-schema.md).

# RCM Self-Invoicing (Purchase Documents)- Government schema

- [Generate IRN](https://docs.cleartax.in/cleartax-docs/e-invoicing-api/e-invoicing-api-reference/rcm-self-invoicing-purchase-documents-government-schema/generate-irn.md): You can generate an IRN by sending a POST request to the E-Invoicing API with the following request headers.
- [Cancel IRN](https://docs.cleartax.in/cleartax-docs/e-invoicing-api/e-invoicing-api-reference/rcm-self-invoicing-purchase-documents-government-schema/cancel-irn.md): You can cancel an already generated IRN by sending a POST request to E-Invoicing API with the following request headers.
- [Get E-Invoice by IRN](https://docs.cleartax.in/cleartax-docs/e-invoicing-api/e-invoicing-api-reference/rcm-self-invoicing-purchase-documents-government-schema/get-e-invoice-by-irn.md)
- [Generate E-Waybill by IRN](https://docs.cleartax.in/cleartax-docs/e-invoicing-api/e-invoicing-api-reference/rcm-self-invoicing-purchase-documents-government-schema/generate-e-waybill-by-irn.md)
