Return Webhooks

Return webhook urls can be configured in our portal under the Business > Webhooks > Returns section.
Webhooks are triggered whenever Return Request Status changes.

PropertyTypeProvidedDescription
rmaIdStringtrueThe unique identifier for the Return Request created in our system
statusStringtrueThe status of the Return Request
returnReasonReturn ReasonstrueThe information related to the return reason chosen for the Return Request
returnMethodReturn MethodstrueThe information related to the return method chosen for the Return Request
refundModeRefund MethodstrueThe information related to the refund mode chosen for the Return Request
itemListItem - OrdertrueThe array of items to be returned
orderBeingReturnedStringtrueThe orderExternalId at the business level
createdAtDatetrueThe date on which the Return was created
tenantIdStringtrueThe unique identifier for the business
brandExternalIdStringtrueThe unique identifier for the brand
locationExternalIdStringtrueThe unique identifier for the store, where the Return Order will go to
customerAddressAddresstrueThe address from which the return order is being picked up
customerContact (Order)trueThe details of the customer
returnOrderReturn OrderfalseThe information related to the Return Order
feedecimalfalseThe information related to the fee charged from the customer for the return

{
    "_id": "662fa26dec0244f8b699d11f",
    "rmaId": "1714397805407",
    "status": "COMPLETED",
    "returnReason": {
        "code": "uniqlo003",
        "name": "Item damanged",
        "type": "item-is-broken",
        "additionalComments": "The item is completely broken"
    },
    "returnMethod": {
        "code": "HP001",
        "name": "Home Pickup - Print Label",
        "type": "home-pickup",
        "displayName": "UPS-Home Pickup - Print Label"
    },
    "refundMode": {
        "code": "uniqlo003",
        "name": "Cash"
    },
    "tenantId": "uniqlo",
    "brandExternalId": "uniqlo",
    "customerAddress": {
        "street": "11111 Research Boulevard",
        "city": "Austin",
        "zipcode": "78759",
        "state": "TX",
        "country": "US",
        "latitude": 30.4054131,
        "longitude": -97.7438087
    },
    "itemList": [
        {
            "sku": "sku2000",
            "quantity": 1,
            "size": {
                "length": 10,
                "width": 10,
                "height": 10
            },
            "weight": 10,
            "price": 10,
            "title": "Pens",
            "description": "Cross Pen",
            "image": "https://qa.files.deliverysolutions.co/zebra/items/%5Bdeliverysolutions123456%5D/zebra/sku89_1665035377206.png",
            "category": "Stationary",
            "tags": [
                "Pens",
                "Ballpen",
                "Cross"
            ],
            "itemAttributes": {
                "isReturnable": false
            },
            "returnReason": {
                "code": "uniqlo003",
                "name": "Item damanged",
                "type": "item-is-broken",
                "additionalComments": "The item is completely broken"
            },
            "refundMode": {
                "code": "uniqlo003",
                "name": "Cash"
            }
        },
        {
            "sku": "sku4000",
            "quantity": 1,
            "size": {
                "length": 10,
                "width": 10,
                "height": 10
            },
            "weight": 10,
            "price": 10,
            "title": "Watches",
            "description": "Rolex Watch",
            "image": "https://qa.files.deliverysolutions.co/zebra/items/%5Bdeliverysolutions123456%5D/zebra/sku89_1665035377206.png",
            "category": "Accessories",
            "tags": [
                "Watches",
                "Smart Watch",
                "Rolex"
            ],
            "itemAttributes": {
                "isReturnable": false
            },
            "returnReason": {
                "code": "uniqlo003",
                "name": "Item damanged",
                "type": "item-is-broken",
                "additionalComments": "The item is completely broken"
            },
            "refundMode": {
                "code": "uniqlo003",
                "name": "Cash"
            }
        }
    ],
    "customer": {
        "phone": "+14343424224",
        "name": "John Doe",
        "userExternalId": "nupu2710"
    },
    "createdAt": "2024-04-29T13:36:45.000Z",
    "lastUpdatedAt": "2024-04-30T02:46:00.131Z",
    "fee": 1200,
    "locationExternalId": "UPS_Return_Store",
    "returnOrder": {
        "order": "662fa26e2f33f4fd659c00f3",
        "trackingNumber": "30apr0815",
        "trackingUrl": "https://d.dl-s.co/qw4DSEROZpE",
        "providerInfo": {
            "name": "UPS",
            "dspId": "",
            "displayName": ""
        },
        "labelLink": "https://development.api.deliverysolutions.co/api/v3/label?tenantId=uniqlo&token=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJvcmRlcklkIjoiNjYyZmEyNmUyZjMzZjRmZDY1OWMwMGYzIiwiaWF0IjoxNzE0Mzk3ODA2fQ.bKxF2Sw1fWa3uz8-U5sTVovdLDYChZErIUH_rbieI3g",
        "scanCodeLink": "https://qa.files.deliverysolutions.co/dhavalbusiness/delivery-qrcode/UPS/2024-10/1ZXXXXXXXXXXXXXXXX-b2f9377e-847b-11ef-9234-9ff61e6f0a5e.png",
        "orderExternalId": "return_order_rishabh_4-1714397805407",
        "createdAt": "2024-04-29T13:36:46.075Z",
        "requestedTime": 1714484205000,
        "amount": 300,
        "shipments": [
            {
                "amount": 8631,
                "trackingNumber": "1ZH4A8349000622914",
                "trackingUrl": "https://www.ups.com/track?tracknum=1ZH4A8349000622914",
                "labelLink": null,
                "scanCodeLink": "https://qa.files.deliverysolutions.co/dhavalbusiness/delivery-qrcode/UPS/2024-10/1ZXXXXXXXXXXXXXXXX-b2f9377e-847b-11ef-9234-9ff61e6f0a5e.png"
            },
            {
                "amount": 8631,
                "trackingNumber": "1ZH4A8349007752306",
                "trackingUrl": "https://www.ups.com/track?tracknum=1ZH4A8349007752306",
                "labelLink": null,
                "scanCodeLink": "https://qa.files.deliverysolutions.co/dhavalbusiness/delivery-qrcode/UPS/2024-10/1ZXXXXXXXXXXXXXXXX-b2f9377e-847b-11ef-9234-9ff61e6f0a5e.png"
            }
        ]
    },
    "subStatus": null,
    "sentAt": "2024-04-30T02:46:00.322Z"
}