Discuss and resolve questions on Liquid, JavaScript, themes, sales channels, and site speed enhancements.
My client has an unusual shipping set up:
The problem is that Shopify is sending an email for every single line item on the order & we offer 3 samples with every order, so at a minimum, the customer is getting 4 shipping confirmation emails for each order.
Has anyone come across this? What was the solution?
Showing my JSON in case the error is in there. I am building and sending this out via Parabola app.
Tagging @_JCC_ as I have done some research in this forum and you have commented on something similar to this. Can you help?
{
"fulfillment": {
"order_id": {Order: Id},
"tracking_company": "{Carrier}",
"location_id": 18014371875,
"line_items": [
{
"id": {Line Items: Id},
"variant_id": {Line Items: Variant Id},
"quantity": {Quantity Shipped}
}
],
"tracking_number": {Fulfillments: Tracking Number},
"tracking_url": "{Tracking URL}",
"notify_customer": true
}
}
Solved! Go to the solution
This is an accepted solution.
It turns out the shipping data needs to be sent as an array.
JSON below:
{
"fulfillment": {
"notify_customer": true,
"location_id": 18014371875,
"tracking_number": {Fulfillments: Tracking Number},
"tracking_url": "{Tracking URL}",
"tracking_company": "{Carrier}",
"line_items": [{Line Items Fulfillment Array}]
}
}
This is an accepted solution.
It turns out the shipping data needs to be sent as an array.
JSON below:
{
"fulfillment": {
"notify_customer": true,
"location_id": 18014371875,
"tracking_number": {Fulfillments: Tracking Number},
"tracking_url": "{Tracking URL}",
"tracking_company": "{Carrier}",
"line_items": [{Line Items Fulfillment Array}]
}
}
Shopify and our financial partners regularly review and update verification requiremen...
By Jacqui Mar 14, 2025Unlock the potential of marketing on your business growth with Shopify Academy's late...
By Shopify Mar 12, 2025Learn how to increase conversion rates in every stage of the customer journey by enroll...
By Shopify Mar 5, 2025