Our Partner & Developer boards on the community are moving to a brand new home: the .dev community forums! While you can still access past discussions here, for all your future app and storefront building questions, head over to the new forums.

We're moving the community! Starting July 7, the current community will be read-only for approx. 2 weeks. You can browse content, but posting will be temporarily unavailable. Learn more

Re: notify_customer not working

notify_customer not working

arnab1
Shopify Partner
25 0 3

"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 6 (6)

SBD_
Shopify Staff
1831 273 423

Hey @arnab1 

 

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

Scott | Developer Advocate @ Shopify 

arnab1
Shopify Partner
25 0 3

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 423

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

Scott | Developer Advocate @ Shopify 

arnab1
Shopify Partner
25 0 3

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 423

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

Scott | Developer Advocate @ Shopify 

maigan
Tourist
4 0 2

1729068162026.png

Help me please, My customers can not receive any notification with email!! I need help please