Hi everyone,
As the title states, I am developing an app that subscribes to webhooks of a development store using the webhooks API. I try two types of webhooks, carts update and customer creation. In the carts update, I get a body in the request containing the items in the cart but in the customer creation request, the body is always empty and I don't get any data about the customer who just signed up. Why is that and how to solve it?
Note: testing webhooks created through the admin page returns a correct body in both webhooks.
Solved! Go to the solution
Hey @AlyMohsen98.
Would you mind sharing a time frame and shop URL on which this last occurred? With that, I should be able to see what might have happened in logs, and the events leading up to it. At this time, with test webhooks in the admin's settings/notifications area, I cannot replicate by sending a test customers/create webhook, so more information is much appreciated.
For what it's worth, I'm not seeing other reports of this coming in form a support perspective, so I'm curious if this is ongoing for you.
Cheers.
Success.
Hey @AlyMohsen98.
Upon further investigation it looks like you may have specified fields on that webhook resource with an invalid value of gameball - customers/create
. The expected value is a comma separated list of fields on the webhook object, such as "id,first_name,billing_address"
. Since the value in fields is not considered valid, it looks like we're resolving it to nil
, or no fields. We could probably validate this better on creation or update requests.
Cheers.
Subject | Author | Posted |
---|---|---|
42m ago | ||
51m ago | ||
2 hours ago | ||
2 hours ago | ||
3 hours ago |
User | Count |
---|---|
257 | |
165 | |
134 | |
67 | |
39 |