Creating a return

Learn how to create a return for a specified order.

Use the reate a return a specified order.

curl --location --globoff 'api.digitalriver.com/v1/shoppers/me/orders/{orderId}/returns' \
--header 'Accept: application/json' \
--header 'Content-Type: application/json' \
--header 'Authorization: Bearer <<full access token>>' \
--data '{
    "return": {
        "reason": "DUPLICATE_ORDER",
        "comments": "Duplicate Order",
        "acceptELOD": "true",
        "returnLineItems": {
            "returnLineItem": [
                {
                    "lineItemQuantityIDs": [
                        1
                    ],
                    "lineItem": {
                        "id": "123",
                        "quantity": 1
                    }
                }
            ]
        }
    }
}  

Last updated