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 ?