Can E-Way Bill functionality be implemented on a custom DocType?

In ERPNext, E-Way Bill functionality is available by default for standard DocTypes like Sales Invoice and Delivery Note.

I want to understand whether it is technically supported to implement E-Way Bill generation on a custom DocType (for example: Gate Pass / Custom Delivery Challan / Material Outward).

Specifically:

  • Can we trigger E-Way Bill generation from any custom DocType?

  • Is there any framework-level restriction on using E-Way Bill APIs only with standard DocTypes?

  • Has anyone implemented E-Way Bill integration on a custom form using a GSP (ClearTax / Masters India, etc.)?

Looking for guidance or best practices from the community.