Our Partner & Developer boards on the community are moving to a brand new home: the .dev community forums! While you can still access past discussions here, for all your future app and storefront building questions, head over to the new forums.

We're moving the community! Starting July 7, the current community will be read-only for approx. 2 weeks. You can browse content, but posting will be temporarily unavailable. Learn more

API to download Invoice attachment

API to download Invoice attachment

vincentdev25
Visitor
1 0 0

Hi, I'm new to Shopify here.

 

I want to ask is there an API that able to download Invoice attachment?

I've checked the API documentation, but cannot find any similiar API.

 

Please help

Replies 2 (2)

ShopifyDevSup
Shopify Staff
1453 239 535

Hey @vincentdev25, thanks for getting in touch! At the moment, there's no explicit way to download an invoice directly through the API, but you could use the API to get most of the information that is present in an invoice.

 

The easiest way to do this would be through the GraphQL order object (info on that here). Using the GraphQL object, you can query order related information like the total amount paid, the line items present in the order, relevant customer information and quite a bit more. I do know of some merchants and developers who use the order/orders resource to create customized invoices by leverage the data present via the API. 

 

Hope this helps - let us know if we can clarify anything on our end. 

Developer Support @ Shopify
- Was this reply helpful? Click Like to let us know!
- Was your question answered? Mark it as an Accepted Solution
- To learn more visit Shopify.dev or the Shopify Web Design and Development Blog

gianthead74
Visitor
1 0 0

They really need to make it so you can choose to attach the billing invoice/PDF to the email notification you get each month rather than just provide a link. I have to login to 7 stores every month to download the invoices. If that's to hard or insecure then being able to hit an API end point and grab the PDF that way would be the next best option