Good day, I have a question about how Shopify works (mainly with regard to requisitions and GraphQL). After finalizing an order, I create a system to generate invoices for the order. Does Shopify generate the invoice automatically? If it doesn’t, how can I send the invoice JSON for the specific order via GraphQL?
Shopify doesn’t generate invoices automatically for completed orders unless you’re using Shopify Plus with custom automation. However, you can generate invoices using the Draft Orders API or a third-party invoicing app like Sufio or Order Printer Pro.
Hmm, you can link your generated invoice to the order using Shopify’s Order Metafields or Order Notes. With the GraphQL Admin API, you can store your invoice data (JSON, XML, or a URL) inside a metafield attached to the order. This way, the invoice stays linked and accessible. If you need the invoice to be visible to customers, you can also send it via the Order Email using a custom app or automation.