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.

Returns webhook API

Returns webhook API

vilvic
Shopify Partner
2 0 0

I have created a webhook for "returns/update". I've checked the webhooks.json and can see that it has been correctly registered.

 

{
    "webhooks": [
        {
            "id": 1531278754071,
            "address": "https://address/webhook/returns/update",
            "topic": "returns/update",
            "created_at": "2024-06-30T08:21:33+01:00",
            "updated_at": "2024-06-30T08:21:33+01:00",
            "format": "json",
            "fields": [],
            "metafield_namespaces": [],
            "api_version": "2024-07",
            "private_metafield_namespaces": []
        },
        {
            "id": 1531278786839,
            "address": "https://address/webhook/orders/updated",
            "topic": "orders/updated",
            "created_at": "2024-06-30T08:21:34+01:00",
            "updated_at": "2024-06-30T08:21:34+01:00",
            "format": "json",
            "fields": [],
            "metafield_namespaces": [],
            "api_version": "2024-07",
            "private_metafield_namespaces": []
        }
    ]
}
  • I've checked the address and it's valid (I've changed the domain in the example above). I have another webhook registered and it works just fine.
  • I've checked the Event version in the configuration and that is "2024-04".
  • Looking at insights / Webhooks does not show "returns/update" in the "Webhooks topics" logs. I would expect if the address was wrong to see failed requests.

As far as I can tell everything is configured correctly for "returns/update".

 

When I create a return in the store the "returns/update" event doesn't trigger. The "orders/updated" webhook does but not the "returns/update". I can see the line item in the store with a status to "Return in progress (1)". 

 

Has anyone managed to get this working?

 

 

Replies 0 (0)