Order Refunded


Deprecation Notice:

This webhook has been replaced with eCommerce Order Transactions Updated Event and will be removed on September 4, 2024.

Triggered when an order is refunded.

Permissions
Manage Stores - all permissions
Read Stores - all read permissions
Manage Orders
Read Orders
Manage Restaurants - all permissions
Learn more about app permissions.
Event BodyEvent Body Event data is received as a JSON Web Token (JWT). It may be delayed. Be sure to verify the data was sent by Wix.
Event Data
refundIdstringRead-only

Refund ID.


orderOrderRead-only

Refunded order data.

Event Body

The data payload will include the following as an encoded JWT:

JSON
{ "data": { "eventType": "OrderRefunded", "instanceId": "<app-instance-id>", "data": "<stringified-JSON>", // The identity field is sent as a stringified JSON "identity": { "identityType": "<identityType>", // ANONYMOUS_VISITOR, MEMBER, WIX_USER, APP "anonymousVisitorId": "<anonymousVisitorId>", // in case of ANONYMOUS_VISITOR "memberId": "<memberId>", // in case of MEMBER "wixUserId": "<wixUserId>", // in case of WIX_USER "appId": "<appId>" // in case of APP } } }

Order Refunded
JSON
{ "refundId": "2a7ca480-e02b-73f2-e015-800174c576e9", "order": { "id": "fedb19f5-bd4c-4bfc-b2d1-212538319611", "number": 10096, "dateCreated": "2020-03-18T16:47:59.222Z", "currency": "USD", "weightUnit": "LB", "totals": { "subtotal": "10", "shipping": "3", "tax": "3", "discount": "1", "total": "15", "weight": "30", "quantity": 2, "refund": "15" }, "billingInfo": { "paymentMethod": "PayPal", "externalTransactionId": "tx_1806", "paymentProviderTransactionId": "tx_1806", "address": { "fullName": { "firstName": "John", "lastName": "Smith" }, "country": "US", "city": "New York", "zipCode": "92544", "phone": "+972 555234555", "email": "Ivanushka@example.com" }, "paidDate": "2020-03-18T16:47:59.244Z" }, "shippingInfo": { "deliveryOption": "Express", "estimatedDeliveryTime": "Today", "shipmentDetails": { "address": { "fullName": { "firstName": "John", "lastName": "Smith" }, "country": "US", "city": "New York", "zipCode": "92544", "phone": "+972 555234555", "email": "Ivanushka@example.com" }, "discount": "0", "tax": "1", "priceData": { "taxIncludedInPrice": false, "price": "3" } } }, "read": false, "archived": false, "paymentStatus": "FULLY_REFUNDED", "fulfillmentStatus": "CANCELED", "lineItems": [ { "index": 1, "quantity": 2, "name": "my product", "productId": "a1f9d337-f831-4529-31e6-67db8fd4e1aa", "lineItemType": "PHYSICAL", "options": [], "customTextFields": [], "weight": "15", "sku": "12345678", "discount": "1", "tax": "1", "priceData": { "taxIncludedInPrice": false, "price": "5", "totalPrice": "10" } } ], "activities": [ { "type": "ORDER_PLACED", "timestamp": "2020-03-18T16:47:59.222Z" }, { "type": "ORDER_PAID", "timestamp": "2020-03-18T16:47:59.244Z" } ], "fulfillments": [], "discount": { "value": "1" }, "buyerLanguage": "en", "channelInfo": { "type": "WEB" }, "enteredBy": { "id": "e85274cf-047a-4989-baff-dac5e0c3971d", "identityType": "USER" }, "lastUpdated": "2020-03-18T16:47:59.244Z", "refunds": [ { "dateCreated": "2020-09-01T12:30:56.208Z", "amount": "21.0", "paymentProviderTransactionId": "re_1HMYdXEQJH0qyaWeD0fm1qmN", "id": "2a7ca480-e02b-73f2-e015-800174c576e9", "externalRefund": false } ] } }
Did this help?