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.

REST API Send invoice button

REST API Send invoice button

spearox
Visitor
2 0 1

Dear Community,

 

Its possible to call the "Send invoice" button in order page with REST API?shopify.jpg

 

Thanks.

Replies 3 (3)

csam
Shopify Staff (Retired)
267 40 51

Hi @spearox 

 

Yes, there's an endpoint for this in both the REST and GraphQL APIs: 
REST: https://shopify.dev/api/admin-rest/2022-01/resources/draftorder#post-draft-orders-draft-order-id-sen...

GraphQL: https://shopify.dev/api/admin-graphql/2021-04/mutations/draftorderinvoicesend

 

Hope this helps!

To learn more visit the Shopify Help Center or the Community Blog.

spearox
Visitor
2 0 1

I look for normal orders not for drafts.

yayapraveen
Visitor
1 0 0

Can someone from the API Support confirm that there is no provision to send invoice for Orders that have already captured the payment and marked as paid ?