{"_id":"59a45d447ee621000fc9d3dc","category":{"_id":"59a45d447ee621000fc9d3c3","version":"59a45d437ee621000fc9d3b7","project":"57336fd5a6a9c40e00e13a0b","__v":0,"sync":{"url":"","isSync":false},"reference":false,"createdAt":"2015-10-15T16:21:09.840Z","from_sync":false,"order":11,"slug":"errors","title":"Errors"},"parentDoc":null,"project":"57336fd5a6a9c40e00e13a0b","user":"560d5913af97231900938124","version":{"_id":"59a45d437ee621000fc9d3b7","project":"57336fd5a6a9c40e00e13a0b","__v":1,"createdAt":"2017-08-28T18:13:23.840Z","releaseDate":"2017-08-28T18:13:23.840Z","categories":["59a45d447ee621000fc9d3b8","59a45d447ee621000fc9d3b9","59a45d447ee621000fc9d3ba","59a45d447ee621000fc9d3bb","59a45d447ee621000fc9d3bc","59a45d447ee621000fc9d3bd","59a45d447ee621000fc9d3be","59a45d447ee621000fc9d3bf","59a45d447ee621000fc9d3c0","59a45d447ee621000fc9d3c1","59a45d447ee621000fc9d3c2","59a45d447ee621000fc9d3c3","59a45d447ee621000fc9d3c4","59a45d447ee621000fc9d3c5","59a45d447ee621000fc9d3c6","59a45d447ee621000fc9d3c7"],"is_deprecated":false,"is_hidden":false,"is_beta":false,"is_stable":false,"codename":"3.22.1","version_clean":"8976.0.0-XML","version":"8976-XML"},"__v":0,"updates":[],"next":{"pages":[],"description":""},"createdAt":"2016-09-21T14:26:18.975Z","link_external":false,"link_url":"","githubsync":"","sync_unique":"","hidden":false,"api":{"settings":"","results":{"codes":[]},"auth":"required","params":[],"url":""},"isReference":false,"order":43,"body":"The following errors can be returned in response to refund requests.\n[block:parameters]\n{\n  \"data\": {\n    \"h-0\": \"Code\",\n    \"h-1\": \"Name\",\n    \"h-2\": \"Description\",\n    \"7-0\": \"14022\",\n    \"7-1\": \"INVOICE_ALREADY_FULLY_REFUNDED\",\n    \"7-2\": \"Invoice has already been fully refunded.\",\n    \"8-0\": \"14023\",\n    \"8-1\": \"REFUND_IN_PROCESS\",\n    \"8-2\": \"Another refund request for this invoice is currently in process. Please wait for it to finish before submitting new request.\",\n    \"6-0\": \"14020\",\n    \"6-1\": \"PARTIAL_REFUND_CREATED_LESS_THAN_24_HOURS_AGO\",\n    \"6-2\": \"Partial refund is not possible because the transaction was created less than 24 hours ago.\\nRetry the transaction after the 24-hour window has elapsed.\",\n    \"9-0\": \"14024\",\n    \"9-1\": \"PARTIAL_REFUND_NOT_SUPPORTED\",\n    \"9-2\": \"Invoice cannot be partially refunded.\",\n    \"0-0\": \"14004\",\n    \"0-1\": \"REFUND_GENERAL_FAILURE\",\n    \"0-2\": \"A general refund failure has occurred.\\nRetry the transaction.\\n\\n*or*\\n\\nTransaction is not valid for refund as transaction has not been cleared yet. Please wait 3-7 days and try again.\",\n    \"1-0\": \"14005\",\n    \"1-1\": \"REFUND_MIN_AMOUNT_FAILURE\",\n    \"1-2\": \"The refund amount passed in the request is smaller than the minimum amount allowed.\\nCorrect the amount and resubmit.\",\n    \"2-0\": \"14006\",\n    \"2-1\": \"REFUND_MAX_AMOUNT_FAILURE\",\n    \"2-2\": \"The refund amount passed in the request exceeds the maximum amount allowed.\\nCorrect the amount and resubmit.\",\n    \"3-0\": \"14007\",\n    \"3-1\": \"REFUND_PERIOD_EXPIRED\",\n    \"3-2\": \"Refund failed because the allowed refund period has ended.\",\n    \"4-0\": \"14008\",\n    \"4-1\": \"INSUFFICIENT_FUNDS_FOR_REFUND\",\n    \"4-2\": \"There are insufficient funds to perform the requested refund.\",\n    \"5-0\": \"14009\",\n    \"5-1\": \"INVOICE_ALREADY_REFUNDED\",\n    \"5-2\": \"Refund failed because the payment was already refunded.\"\n  },\n  \"cols\": 3,\n  \"rows\": 10\n}\n[/block]","excerpt":"","slug":"refund-errors","type":"basic","title":"Refund Errors"}

The following errors can be returned in response to refund requests.

Code
Name
Description

14004

REFUND_GENERAL_FAILURE

A general refund failure has occurred.
Retry the transaction.

or

Transaction is not valid for refund as transaction has not been cleared yet. Please wait 3-7 days and try again.

14005

REFUND_MIN_AMOUNT_FAILURE

The refund amount passed in the request is smaller than the minimum amount allowed.
Correct the amount and resubmit.

14006

REFUND_MAX_AMOUNT_FAILURE

The refund amount passed in the request exceeds the maximum amount allowed.
Correct the amount and resubmit.

14007

REFUND_PERIOD_EXPIRED

Refund failed because the allowed refund period has ended.

14008

INSUFFICIENT_FUNDS_FOR_REFUND

There are insufficient funds to perform the requested refund.

14009

INVOICE_ALREADY_REFUNDED

Refund failed because the payment was already refunded.

14020

PARTIAL_REFUND_CREATED_LESS_THAN_24_HOURS_AGO

Partial refund is not possible because the transaction was created less than 24 hours ago.
Retry the transaction after the 24-hour window has elapsed.

14022

INVOICE_ALREADY_FULLY_REFUNDED

Invoice has already been fully refunded.

14023

REFUND_IN_PROCESS

Another refund request for this invoice is currently in process. Please wait for it to finish before submitting new request.

14024

PARTIAL_REFUND_NOT_SUPPORTED

Invoice cannot be partially refunded.