{"_id":"59dfa58a8b51880010b74b35","category":{"_id":"59dfa5828b51880010b74ac1","version":"59dfa5828b51880010b74ab6","project":"57336fd5a6a9c40e00e13a0b","__v":0,"sync":{"url":"","isSync":false},"reference":false,"createdAt":"2015-10-15T16:21:09.840Z","from_sync":false,"order":10,"slug":"errors","title":"Errors"},"user":"560d5913af97231900938124","project":"57336fd5a6a9c40e00e13a0b","parentDoc":null,"version":{"_id":"59dfa5828b51880010b74ab6","project":"57336fd5a6a9c40e00e13a0b","__v":1,"createdAt":"2017-10-12T17:25:22.850Z","releaseDate":"2017-10-12T17:25:22.850Z","categories":["59dfa5828b51880010b74ab7","59dfa5828b51880010b74ab8","59dfa5828b51880010b74ab9","59dfa5828b51880010b74aba","59dfa5828b51880010b74abb","59dfa5828b51880010b74abc","59dfa5828b51880010b74abd","59dfa5828b51880010b74abe","59dfa5828b51880010b74abf","59dfa5828b51880010b74ac0","59dfa5828b51880010b74ac1","59dfa5828b51880010b74ac2","59dfa5828b51880010b74ac3","59dfa5828b51880010b74ac4","59dfa5828b51880010b74ac5"],"is_deprecated":false,"is_hidden":false,"is_beta":false,"is_stable":false,"codename":"3.23 Release","version_clean":"8976.0.0-JSON","version":"8976-JSON"},"__v":0,"updates":[],"next":{"pages":[],"description":""},"createdAt":"2016-09-21T15:30:23.978Z","link_external":false,"link_url":"","githubsync":"","sync_unique":"","hidden":false,"api":{"results":{"codes":[]},"settings":"","auth":"required","params":[],"url":""},"isReference":false,"order":5,"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.