How to send Invoice email through api after order is edited by "orderEditBegin" GraphQl Mutation ?

New Member
6 0 0

I am able to successfully edit the order & add custom item in the order using this documentation . But  I am not able to send invoice directly to customer after order edit because there  is no such order send invoice api  nor order/edit webhook provide me  checkout url to provide the customer to pay the new balance .


Although it provide "send invoice" button in admin areas of store : orders ->edit ->send invoice , which drop email to customer with checkout link to pay balance   . But I don't want my app merchant to do anything manually .



Shopify Staff
Shopify Staff
143 15 24

Hey @RitikaThakur 

That's correct regarding the orders/edited hook - it wouldn't have the web url in the orders/edited payload.  One thing I'd noticed, were you including "notifyCustomer: true" in your OrderEditCommit call by chance? The reason I ask,  is that after including a Custom Item to the order then including notifyCustomer: true on my OrderEditCommit call on the GraphQL Admin API like the following :

mutation commitEdit {
  orderEditCommit(id: "gid:\/\/shopify\/CalculatedOrder\/xxxxxxxx", notifyCustomer: true, staffNote: "I edited the order! It was me!") {
    order {
    userErrors {

This would result in my customer associated to the order receiving an email like so with the Order Summary : 


Clicking 'Pay now' as a customer would direct me to the checkout. Let me know if I'm missing anything there though!





| API Support @ Shopify |
- Was my reply helpful? Click Like to let me know!
- Was your question answered? Mark it as an Accepted Solution!