> ## Documentation Index
> Fetch the complete documentation index at: https://docs.pandablue.com/llms.txt
> Use this file to discover all available pages before exploring further.

# API Codes

## Refunds Status Codes

<table><thead><tr><th align="center">Status</th><th>Description</th></tr></thead><tbody><tr><td align="center">![](https://mintcdn.com/pandablue/IATJlKWUVkKvoILB/images/gitbook/Untitled-Diagram-752c8580.svg?fit=max\&auto=format\&n=IATJlKWUVkKvoILB\&q=85\&s=46d6e3f1025ae5cb2eda235209755a60)</td><td>The refund is created and is pending to be processed. It can still be cancelled.</td></tr><tr><td align="center">![](https://mintcdn.com/pandablue/IATJlKWUVkKvoILB/images/gitbook/INCORRECT_DETAILS-4713415b.svg?fit=max\&auto=format\&n=IATJlKWUVkKvoILB\&q=85\&s=e9c1afcb46028bd91d0646da818017e8)</td><td>The refund is pending for you to provide more information. It can still be cancelled.</td></tr><tr><td align="center">![](https://mintcdn.com/pandablue/IATJlKWUVkKvoILB/images/gitbook/DELIVERED-c7baa02d.svg?fit=max\&auto=format\&n=IATJlKWUVkKvoILB\&q=85\&s=e635176c5552f643eb43d98e08b4611b)</td><td>The refund has been sent to the bank for processing. It can't be cancelled anymore.</td></tr><tr><td align="center">![](https://mintcdn.com/pandablue/IATJlKWUVkKvoILB/images/gitbook/CANCELLED-addce057.svg?fit=max\&auto=format\&n=IATJlKWUVkKvoILB\&q=85\&s=c854a7cf29a622706dc503b3078d871e)</td><td>The refund has been manually cancelled. Final status.</td></tr><tr><td align="center">![](https://mintcdn.com/pandablue/IATJlKWUVkKvoILB/images/gitbook/REJECTED-e451f47b.svg?fit=max\&auto=format\&n=IATJlKWUVkKvoILB\&q=85\&s=048af1eaaeed7c35dbaf7b3057daafd3)</td><td>The refund has been rejected by the bank. Final status.</td></tr><tr><td align="center">\
![](https://mintcdn.com/pandablue/IATJlKWUVkKvoILB/images/gitbook/COMPLETED-710858ff.svg?fit=max\&auto=format\&n=IATJlKWUVkKvoILB\&q=85\&s=0c575878d0b4f99e974c0fd3d5b6093c)</td><td>The refund has been completed. Final status.</td></tr></tbody></table>

> [!TIP]
>
> Use the [Refund status endpoint](https://docs.pandablue.com/api-reference/deposits-api/manage-refunds/get-refund-status.md) to retrieve the status of a refund.

***

### Refund API Error Codes

<table><thead><tr><th align="center">API Code</th><th align="center">HTTP Code</th><th align="center">Type</th><th>Message</th><th>Description</th></tr></thead><tbody><tr><td align="center">800</td><td align="center">400</td><td align="center">`REFUND_NOT_ENABLED`</td><td>Refund is not enabled</td><td>Your Merchant account doesn't have the refund capability enabled. Check with your Account Manager</td></tr><tr><td align="center">801</td><td align="center">400</td><td align="center">`DEPOSIT_NOT_COMPLETED`</td><td>Refund cannot be applied since deposit is not in status completed</td><td>The refunds can only be applied over COMPLETED deposits</td></tr><tr><td align="center">802</td><td align="center">400</td><td align="center">`INVALID_AMOUNT_TO_REFUND`</td><td>Amount to refund not valid</td><td>The amount to refund is not valid. Check if the amount is negative or bigger than the deposit itself.</td></tr><tr><td align="center">803</td><td align="center">400</td><td align="center">`INSUFFICIENT_FUNDS`</td><td>Insufficient funds</td><td>Your Merchant account doesn't have enough funds to cover for the refund amount</td></tr><tr><td align="center">804</td><td align="center">400</td><td align="center">`MISSING_BANK_ACCOUNT`</td><td>Missing bank account information</td><td>The bank account information is missing</td></tr><tr><td align="center">805</td><td align="center">400</td><td align="center">`ERROR_IN_REFUND`</td><td>Error, the refund was not processed. \{details}</td><td>The refund could not be completed. Flag it for review on Pandablue Connect for further information</td></tr></tbody></table>


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.