Getting refunds available for a shopper's order
Learn how to retrieve the refunds available for a shopper's order.
Use GET /orders/{orderId}refunds?token={the shopper's token}
to get the refunds available for a shopper's order.
curl --location --request GET 'https://api.digitalriver.com/orders/active/refunds-available?token={the shopper's token}' \--header 'authorization: Basic ***\
...
curl --location --request GET 'https://api.digitalriver.com/orders/active/refunds-available?token={the shopper's token}' \--header 'authorization: Basic ***\
...
{
"currency": "USD",
"lineItems": [
{
"lineItemId": "11035556604",
"price": {
"total": {
"amount": {
"value": 39.99,
"formattedValue": "$39.99"
},
"amountAvailableForRefund": {
"value": 39.99,
"formattedValue": "$39.99"
},
"amountRefunded": {
"value": 0.99,
"formattedValue": "$0.99"
}
},
"totalTax": {
"amount": {
"value": 3.99,
"formattedValue": "$3.99"
},
"amountAvailableForRefund": {
"value": 3.99,
"formattedValue": "$3.99"
},
"amountRefunded": {
"value": 0.99,
"formattedValue": "$0.99"
}
},
"totalShipping": {
"amount": {
"value": 4.99,
"formattedValue": "$4.99"
},
"amountAvailableForRefund": {
"value": 4.99,
"formattedValue": "$4.99"
},
"amountRefunded": {
"value": 0.99,
"formattedValue": "$0.99"
},
"amountRefunded": {
"value": 0.99,
"formattedValue": "$0.99"
}
},
"totalShippingTax": null,
"totalDutiesAndTariffs": null,
"totalDutiesAndTariffsTax": null,
"totalFee": null,
"totalFeeTax": null
},
"product": {
"companyId": "demosft1",
"externalId": "ext 1234"
},
"status": null
},
{
"lineItemId": "11035556605",
"price": {
"total": {
"amount": {
"value": 39.99,
"formattedValue": "$39.99"
},
"amountAvailableForRefund": {
"value": 39.99,
"formattedValue": "$39.99"
},
"amountRefunded": {
"value": 0.99,
"formattedValue": "$0.99"
}
},
"totalTax": {
"amount": {
"value": 3.99,
"formattedValue": "$3.99"
},
"amountAvailableForRefund": {
"value": 3.99,
"formattedValue": "$3.99"
},
"amountRefunded": {
"value": 0.99,
"formattedValue": "$0.99"
}
},
"totalShipping": {
"amount": {
"value": 4.99,
"formattedValue": "$4.99"
},
"price": {
"total": {
"amount": {
"value": 39.99,
"formattedValue": "$39.99"
},
"amountAvailableForRefund": {
"value": 39.99,
"formattedValue": "$39.99"
},
"amountRefunded": {
"value": 0.99,
"formattedValue": "$0.99"
},
"totalTax": {
"amount": {
"value": 3.99,
"formattedValue": "$3.99"
},
"amountAvailableForRefund": {
"value": 3.99,
"formattedValue": "$3.99"
},
"amountRefunded": {
"value": 0.99,
"formattedValue": "$0.99"
}
},
"totalShipping": {
"amount": {
"value": 4.99,
"formattedValue": "$4.99"
},
"amountAvailableForRefund": {
"value": 4.99,
"formattedValue": "$4.99"
},
"amountRefunded": {
"value": 0.99,
"formattedValue": "$0.99"
}
},
"totalShippingTax": null,
"totalDutiesAndTariffs": null,
"totalDutiesAndTariffsTax": null,
"totalFee": null,
"totalFeeTax": null
},
"status": null
}
Last updated