Shipping Notifications: 😫 System sending emails for each Line Item When Tracking is Sent Via API

Solved

Shipping Notifications: 😫 System sending emails for each Line Item When Tracking is Sent Via API

colleenc
Shopify Partner
91 9 21

My client has an unusual shipping set up:

  1. customer places order
  2. shopify sends order data (via API/email) to client
  3. client enters order data into their system
  4. client system sends data to 3PL
  5. 3 PL fulfills and sends tracking data to client
  6. client enters tracking into their system
  7. client system sends tracking info via API/email to Shopify
  8. Shopify sends tracking data to customer

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
  }
}

 

 

Accepted Solution (1)

colleenc
Shopify Partner
91 9 21

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}]
	}
}

View solution in original post

Reply 1 (1)

colleenc
Shopify Partner
91 9 21

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}]
	}
}