> For the complete documentation index, see [llms.txt](https://docs.digitalriver.com/commerce-api/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.digitalriver.com/commerce-api/admin-apis/refunds/refund-error-scenarios.md).

# Refund error scenarios

| Error Scenario                                                                       | Error Message Description                                                                               |
| ------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------- |
| API successfully executed                                                            | Operation Successful.                                                                                   |
| Cannot successfully resolve a site for a requisition                                 | Unable to resolve the site for the requisition.                                                         |
| The provided Site ID was invalid or unresolved                                       | It cannot resolve the requisition.                                                                      |
| Input requisition line item ID is invalid or unresolved                              | Cannot resolve the line item.                                                                           |
| Input refund type value is invalid                                                   | Invalid refund type.                                                                                    |
| Input refund reason value is invalid                                                 | Invalid refund reason.                                                                                  |
| Input refund category value is invalid                                               | Invalid refund category.                                                                                |
| Input currency type value is invalid                                                 | Currency in the request does not match with the requisition or lineItem.                                |
| Input currency code value is invalid                                                 | The currency code is invalid.                                                                           |
| Input session ID value is invalid                                                    | The user session ID is invalid.                                                                         |
| Input refund amount is 0 or less                                                     | Invalid refund amount.                                                                                  |
| Input refund amount is greater than the refundable amount                            | The requested refund amount is greater than the refundable amount.                                      |
| Input refund amount is in incorrect format                                           | The refund amount is not a valid currency amount. valid format is (####.##).                            |
| Input fee type is invalid for a product level return (category: product\_level\_fee) | Unable to resolve fee type for the line item.                                                           |
| Requisition ID is empty                                                              | Requisition ID can not be empty.                                                                        |
| Refund reason is empty                                                               | Refund Reason can not be empty.                                                                         |
| Refund category is empty                                                             | The Refund Category can not be empty.                                                                   |
| A product-level refund request fails to provide line item level details              | Requisition Line Items can not be empty.                                                                |
| A product-level fee return fails to provide fee details                              | Line Item's Fee List can not be empty.                                                                  |
| The site does not support satisfaction refund                                        | The site is not allowed to accept a satisfaction refund for the requisition.                            |
| A second refund is not allowed                                                       | This order does not allow a second refund. Additional refunds require that you perform a manual refund. |
| The user roles are invalid for this API                                              | The user is not a Customer Service Representative/ Director/Supervisor.                                 |
| The user roles are invalid for this API                                              | The user is not a Customer Service Representative/ Director/Supervisor/InternalUser/Owner of the Order. |
| An unforeseen exception occurred                                                     | An unhandled runtime exception has occurred.                                                            |


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.digitalriver.com/commerce-api/admin-apis/refunds/refund-error-scenarios.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
