Fulfill and Order via API and NOT send an email to the customer

Tourist
6 0 0

Hello Wonderful person!

 

We are using ruby shopify API to mark digital order items fulfilled (but do not want to send the email to the customer when this happens)

 

def mark_order_items_fulfilled(order, items_id)
fulfillment_hash = {
order_id: order.id,
line_items: items_id.map { |id| { id: id } },
tracking_number: nil,
notify_customer: false,
location_id: location_id
}
ShopifyAPI::Fulfillment.new(fulfillment_hash).save!
end
The 'Your order is on it's way' is still being sent
 
I understood from the docs that setting notify_customer to false would prevent this
 
Any suggestions?
0 Likes
Shopify Staff
Shopify Staff
462 34 90

Hi @stuforge,

 

Do you have any examples for this? An order or fulfillment ID would work, but best would the X-Request-ID response header Shopify provides in response to the API call.

 

You are correct that notifications should not be sent.  

Developer Experience @ Shopify
0 Likes
Tourist
6 0 0

I have a staging order id 1718475915352 unfortunately I don't have the request id

0 Likes