Can we create the e-Way Bill JSON for purchase invoice?

Hello Teams,

Can we create e-way bill json for purchase invoice .

I have same question any one pls suggest??