Re: notify_customer not working

notify_customer not working

arnab1
Shopify Partner
24 0 2

"notify_customer":true parameter is not working using update tracking API or Fulfillment API. After use this parameter customer not received shipment notification mail , I verified in shopify notification, email setup is working fine.

Replies 5 (5)

SBD_
Shopify Staff
1831 273 418

Hey @arnab1 

 

Can you provide example app/store/order details? (DM is fine). 

Scott | Developer Advocate @ Shopify 

arnab1
Shopify Partner
24 0 2

Hi,

 

I am using graphql for multiple tracking id and url update for fulfillments, but i am unable to send 

"notify_customer":true, but its showing error in post man 
"
"message""Variable $fulfillment of type FulfillmentV2Input! was provided invalid value for notify_customer (Field is not defined on FulfillmentV2Input)",
"

 

SBD_
Shopify Staff
1831 273 418

Thanks. Can you show me the exact query + variables you're using?

Scott | Developer Advocate @ Shopify 

arnab1
Shopify Partner
24 0 2

Hi , I am using graphql for multiple tracking id added on fulfillment

Here is the below query and variable i am using

{
"query""mutation fulfillmentCreateV2($fulfillment: FulfillmentV2Input!) { fulfillmentCreateV2(fulfillment: $fulfillment) { fulfillment { id status trackingInfo(first: 10) { company number url } } userErrors { field message } } }",
 "variables": {
    "fulfillment": {
      "lineItemsByFulfillmentOrder": {
        "fulfillmentOrderId""gid://shopify/FulfillmentOrder/147856320601405"
      },
      "notify_customer":true,
      "trackingInfo": {
        "numbers": [
          "4785666",
          "47851256"
        ],

        "urls": [
          "https://www.ups.com",
          "http://www.google.com"
        ]
      }
    }
  }
}
SBD_
Shopify Staff
1831 273 418

Thanks. You'll want to use `notifyCustomer` instead of `notify_customer`.

Scott | Developer Advocate @ Shopify