Have your say in Community Polls: What was/is your greatest motivation to start your own business?
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.

Trying to send data to custom metafield via Webhooks by Zapier

Trying to send data to custom metafield via Webhooks by Zapier

CJKeast
Visitor
1 0 0

I am trying to set up a connection between MoonClerk and Shopify metafields using Webhooks by Zapier. We want to send the subscription status (Active, Pending, Canceled, etc.) from our customer profiles in MoonClerk to the custom metafield Subscription Status in the analogous customer profiles in Shopify.

 

Screenshot 2023-12-14 121643.png

 

I have set up the webhook in Zapier according to instructions from Shopify, and I have created a custom app in Shopify to generate the API needed. 

 

webhook-1.pngwebhook-2.png

 

However, when I go to test the webhook, it returns a 406 error:

Screenshot 2023-12-14 121338.png

I cannot figure out why it's doing this. If it's a data formatting error, I'm not sure how to fix it. Any help is greatly appreciated as both Shopify and Zapier have stated that they can't help me any further.

Reply 1 (1)

kjchabra
Shopify Partner
26 1 7

@CJKeast from your Data payload, I can see the values entered are incorrect:

 

{
  "metafield": {
    "namespace":"custom",
    "key":"tea_club_status",
    "value": "Subscriptionstatus.pending",
    "value_type": "single_line_text_field"
  }
}

"value_type" value can be retrieved by viewing the metafield definition (Settings > Custom Data > Customers > tea_club_status). You can find all the supported value_type from this link.

 

Hope this helps.