Download OpenAPI specification:Download
For partners who would like to receive notifications of the events triggered for their returns and when they are being refunded.
Partners can subscribe to this webhook by following the steps here: Webhook set up.
The return.asn
webhook type is triggered when one of the following happens in the Happy Returns system:
In order to reduce the volume of requests you will receive, Happy Returns will internally aggregate requests for the same return that occur within 60 seconds of each other. In this scenario, the otherEvents field will be populated with the events that have been aggregated. If both a drop-off method and return status event exist in the same payload, the latest return status will always be the primary event. If there are multiple events, then they are ordered in reverse chronological order with latest event being first.
Details about a return.
The header contains the X-Hr-Signature
. For example,
X-Hr-Signature: bab3130e011ba9522d5919bcf9075649b24f9fdfc928b3d2accc99a53aaf3c34
See here for more information: Webhook Validation
event | string The event that triggered the webhook. This can be either |
typeID | string The details on the event that triggered the webhook.
|
retailerID | string The unique identifier for the retailer in the Happy Returns system. |
Array of objects | |
Array of objects |
{- "event": "return_status_updated",
- "typeID": "started",
- "retailerID": "modern-retailer",
- "otherEvents": [
- {
- "event": "return_dropoff_method_created",
- "typeID": "return-bar"
}
], - "items": [
- {
- "happyReturnsReturnID": "5035789d-f873-4bad-b2f3-2daca346c111",
- "purchasedAt": "2024-01-05T16:26:05-05:00",
- "email": "customer@example.com",
- "orderNumber": "272034",
- "externalRMAID": "RMA20240101A",
- "orderID": "5324938444866",
- "orderLineItemID": "13377523220546-0-5",
- "sku": "nomshrts-1",
- "upc": "SKDFHWEW-DKFD",
- "productVariantID": "39942123880514",
- "labelBarcode": "SKDFHWEW-DKFD",
- "productName": "Nomadic Coast Short",
- "returnReason": "Did not like",
- "returnReasonID": "did-not-like",
- "returnReasonNote": "",
- "categoryID": "",
- "refundType": "refund",
- "oneClickExchange": "",
- "location": "",
- "locationID": "",
- "locationMetro": "",
- "dropoffMethod": "return-bar",
- "country": "United States",
- "countryCode": "US",
- "startedAt": "2024-01-05T21:26:39.708039Z",
- "retailerRefundID": "",
- "returnShipmentLabelUrl": "",
- "returnShipmentTracking": "",
- "returnShipmentCarrier": "",
- "locationShipmentTracking": "",
- "locationShipmentCarrier": "",
- "happyReturnsRetailerID": "modern-retailer",
- "happyReturnsExpressCode": "HRQJB237",
- "happyReturnsItemID": "98fec46c-b16c-4c62-8f09-bc6263006bf8",
- "value": "50.00",
- "currencyCode": "USD",
- "hsCode": "",
- "weight": "0.4",
- "weightUnit": "lb",
- "countryOfOrigin": "",
- "exchangeSku": "",
- "exchangeUpc": "",
- "exchangeVariantID": "",
- "exchangeProductName": "",
- "exchangeProductAttributes": [ ],
- "productAttributes": [
- {
- "label": "Size",
- "value": "29"
}, - {
- "label": "Color",
- "value": "Olive"
}
], - "approvedMethod": "",
- "returnBagBarcodes": [ ]
}
]
}