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

Reply 1 (1)

ShopifyDevSup
Shopify Staff
1323 218 458

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