Refunds/create webhook

[[webhooks.subscriptions]]
  topics = [ "refunds/create" ]
  uri = "https://webhook.site/9d2eb039-4de9-4c53-add5-d843b9db5d74"
  include_fields=["id","created_at","order","order.shipping_address","order.customer" ,"order.currency_code","order.customer.id","order.shipping_address.country","order.shipping_address.city","order.shipping_address.zip","order.shipping_address.country_code"]

how to get customer information like id , shipping address in refunds/create webhook ??

i am getting this as response

{
  "id": 9873455426,
  "created_at": "2025-04-07T02:21:38-04:00"
}
1 Like

@Amith_M could you try removing the include_fields parameters as a test? Just so you can at least exclude the possibility of a broken field name.

@Dylan

Resource: Refund will give me what all fields can i include right??? or is there anything im missing

Hey @Amith_M

The refunds/create webhook doesn’t include customer information in its payload. You can see an example of the expected response in our webhook documentation here: Webhooks

If you need customer information with refunds, consider testing if the orders/updated webhook will work instead, which does include customer data.

Also worth noting that some customer information is considered Level 2 Protected Customer Data, which requires special access. You can request this access through your Partner Dashboard or if you’re working with a custom app in your store admin, this is not available on some plans https://help.shopify.com/en/manual/apps/app-types/custom-apps?utf8=â#custom-level2-pii-app

we can see Refund ->order->customer.
I solved this problem by calling grapql using order_id to get cutomer info and shipping address .This may not be right but i didn’t get any other solution

Hi Amit,

Yes, that can work good to get the information that isn’t returned in the webhook.