Need to add a "CC" field to the draft order invoices via the draftOrderInvoiceSend GraphQL API.

Need to add a "CC" field to the draft order invoices via the draftOrderInvoiceSend GraphQL API.

HarshaV
Shopify Partner
1 0 0

I am creating Shopify draft orders through my application, and after a draft order is created, I want to send an invoice to the customer. To implement this, I have used the `draftOrderInvoiceSend` GraphQL API, which is similar to Shopify's draft order invoice functionality. However, I noticed that there is a field for CC (carbon copy) recipients in Shopify's draft order invoice feature, but this field is not available in the `draftOrderInvoiceSend` API. As a result, I am unable to include CC recipients when sending the invoice. What should I do if I want to add the CC field for the invoice in my app?

 

HarshaV_0-1749116182572.png

 

Reply 1 (1)

SealSubs-Roan
Astronaut
938 70 91

The "draftOrderInvoiceSend" GraphQL API currently does not take a CC field even though Shopify has it working through their admin UI. There is no current set of API way of adding CC recipients at this time unfortunately. One of the workarounds is to send invoice to customer by API and the CC customers from your app with a custom email (with your logic) separately. It is not ideal but it does make sure that everyone gets the invoice. I would also suggest that you forward this feedback at Shopify, as this is a great example of use case.

Roan
Please let me know if it works by marking it as a solution!
Seal Subscriptions App, a subscription app for Shopify, with glowing user testimonials and a free plan.