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
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.
Do Shopify staff have a policy of only replying once? This is literally like the 30th thread I've seen where Shopify responds one time, then never does again. *sigh*
@spotnyk wrote:Do Shopify staff have a policy of only replying once? This is literally like the 30th thread I've seen where Shopify responds one time, then never does again. *sigh*
There is no policy for me, since replying to forums isn't part of my job - just something I do to try and help out developers when possible.
@Ryan if you can please see if someone can assist me with a similar issue I'd very much appreciate it. Basically running into a brick wall. And I've worked with the REST and GraphiQL API's going 4+ years now. Thanks!
User | Count |
---|---|
14 | |
12 | |
7 | |
4 | |
4 |