{"_id":"58a3891723b12b0f00dc340d","parentDoc":null,"project":"558b53f749dc4f0d00517de0","__v":0,"version":{"_id":"55909cb433090f0d004d25d8","project":"558b53f749dc4f0d00517de0","forked_from":"558b53f749dc4f0d00517de3","__v":8,"createdAt":"2015-06-29T01:17:40.214Z","releaseDate":"2015-06-29T01:17:40.214Z","categories":["55909cb433090f0d004d25d9","55909cb433090f0d004d25da","55909cb433090f0d004d25db","55909cb433090f0d004d25dc","56c72c00197f9f1700c811db","56c72df5b3625c0d00422c9e","56e1b646150ed52d0062c652","56e9fe9779708c0e002b6026","57312dc94245100e001743f4","57646a570742400e00c04701","5894c96f4d9c7e27002e42ba"],"is_deprecated":false,"is_hidden":false,"is_beta":false,"is_stable":true,"codename":"","version_clean":"2.0.0","version":"2"},"category":{"_id":"55909cb433090f0d004d25db","pages":["55909cb533090f0d004d25dd","56c72b77862f940d00564759","56c72b969e2b6c0d00048713","56e9fdb142c37a0e0020c460"],"project":"558b53f749dc4f0d00517de0","__v":4,"version":"55909cb433090f0d004d25d8","sync":{"url":"","isSync":false},"reference":false,"createdAt":"2015-06-29T00:54:22.238Z","from_sync":false,"order":2,"slug":"account","title":"Basic API functions"},"user":"56cdfe00e538330b0021ab76","updates":[],"next":{"pages":[],"description":""},"createdAt":"2017-02-14T22:47:51.327Z","link_external":false,"link_url":"","githubsync":"","sync_unique":"","hidden":false,"api":{"results":{"codes":[]},"settings":"","auth":"required","params":[],"url":""},"isReference":false,"order":4,"body":"Errors:\n\nSuccessful requests will be a HTTP 200 after any successful call. The body of successful requests depend on the endpoint.\n\nWhenever a problem occurs, Wyre will respond to the client using a 4xx or 5xx status code. In this case, the body of the response will be an exception object which describes the problem.\n\nException types:\n\n[block:parameters]\n{\n  \"data\": {\n    \"h-0\": \"Exception\",\n    \"h-1\": \"Description\",\n    \"h-2\": \"HTTP Status\",\n    \"0-0\": \"ValidationException\",\n    \"0-1\": \"The action failed due to problems with the request.\",\n    \"0-2\": \"400\",\n    \"1-0\": \"UnknownException\",\n    \"1-1\": \"Oops, our bad. A problem with our services internally. This should rarely happen.\",\n    \"1-2\": \"500\",\n    \"2-0\": \"InsufficientFundsException\",\n    \"2-1\": \"You requested the use of more funds in the specified currency than were available.\",\n    \"2-2\": \"400\",\n    \"3-0\": \"RateLimitException\",\n    \"3-1\": \"Your requests have exceeded your usage restrictions. Please contact us if you need this increased.\",\n    \"3-2\": \"429\",\n    \"4-0\": \"AccessDeniedException\",\n    \"4-1\": \"You lack sufficient privilege to perform the requested action.\",\n    \"4-2\": \"401\",\n    \"5-0\": \"TransferException\",\n    \"5-1\": \"There was a problem completing your transfer request.\",\n    \"5-2\": \"400\",\n    \"6-0\": \"NotFoundException\",\n    \"6-1\": \"You requested something that couldn't be located.\",\n    \"6-2\": \"400\",\n    \"7-0\": \"ValidationException\",\n    \"7-1\": \"There was a problem validating the input you supplied.\",\n    \"7-2\": \"400\",\n    \"8-0\": \"CustomerSupportException\",\n    \"8-1\": \"Please contact us at support:::at:::sendwyre.com to resolve this!\",\n    \"8-2\": \"400\",\n    \"9-0\": \"MFARequiredException\",\n    \"9-1\": \"An MFA action is required to complete the request. In general you should not get this exception while using API keys.\",\n    \"9-2\": \"400\"\n  },\n  \"cols\": 3,\n  \"rows\": 10\n}\n[/block]\nAll exceptions will carry a subType parameter which exposes more information about the problem. Additionally, some ValidationException errors will carry with them two fields, problematicField and problematicValue, denoting the field which caused the failure.\n\nA few typical ValidationException subtypes:\n\nFIELD_REQUIRED\nINVALID_VALUE\nTRANSACTION_AMOUNT_TOO_SMALL\nUNSUPPORTED_SOURCE_CURRENCY\nSENDER_PROVIDED_ID_IN_USE\nCANNOT_SEND_SELF_FUNDS\nINVALID_PAYMENT_METHOD\nPAYMENT_METHOD_INACTIVE\nPAYMENT_METHOD_UNSUPPORTED_CHARGE_CURRENCY\nPAYMENT_METHOD_UNCHARGEABLE\nPAYMENT_METHOD_UNSUPPORTED_DEPOSIT_CURRENCY\nPAYMENT_METHOD_UNDEPOSITABLE\nPAYMENT_METHOD_DOESNT_SUPPORT_FOLLOWUPS\nPAYMENT_METHOD_DOESNT_SUPPORT_MICRODEPOSIT_VERIFICATION","excerpt":"","slug":"errors-1","type":"basic","title":"Errors"}
Errors: Successful requests will be a HTTP 200 after any successful call. The body of successful requests depend on the endpoint. Whenever a problem occurs, Wyre will respond to the client using a 4xx or 5xx status code. In this case, the body of the response will be an exception object which describes the problem. Exception types: [block:parameters] { "data": { "h-0": "Exception", "h-1": "Description", "h-2": "HTTP Status", "0-0": "ValidationException", "0-1": "The action failed due to problems with the request.", "0-2": "400", "1-0": "UnknownException", "1-1": "Oops, our bad. A problem with our services internally. This should rarely happen.", "1-2": "500", "2-0": "InsufficientFundsException", "2-1": "You requested the use of more funds in the specified currency than were available.", "2-2": "400", "3-0": "RateLimitException", "3-1": "Your requests have exceeded your usage restrictions. Please contact us if you need this increased.", "3-2": "429", "4-0": "AccessDeniedException", "4-1": "You lack sufficient privilege to perform the requested action.", "4-2": "401", "5-0": "TransferException", "5-1": "There was a problem completing your transfer request.", "5-2": "400", "6-0": "NotFoundException", "6-1": "You requested something that couldn't be located.", "6-2": "400", "7-0": "ValidationException", "7-1": "There was a problem validating the input you supplied.", "7-2": "400", "8-0": "CustomerSupportException", "8-1": "Please contact us at [email protected] to resolve this!", "8-2": "400", "9-0": "MFARequiredException", "9-1": "An MFA action is required to complete the request. In general you should not get this exception while using API keys.", "9-2": "400" }, "cols": 3, "rows": 10 } [/block] All exceptions will carry a subType parameter which exposes more information about the problem. Additionally, some ValidationException errors will carry with them two fields, problematicField and problematicValue, denoting the field which caused the failure. A few typical ValidationException subtypes: FIELD_REQUIRED INVALID_VALUE TRANSACTION_AMOUNT_TOO_SMALL UNSUPPORTED_SOURCE_CURRENCY SENDER_PROVIDED_ID_IN_USE CANNOT_SEND_SELF_FUNDS INVALID_PAYMENT_METHOD PAYMENT_METHOD_INACTIVE PAYMENT_METHOD_UNSUPPORTED_CHARGE_CURRENCY PAYMENT_METHOD_UNCHARGEABLE PAYMENT_METHOD_UNSUPPORTED_DEPOSIT_CURRENCY PAYMENT_METHOD_UNDEPOSITABLE PAYMENT_METHOD_DOESNT_SUPPORT_FOLLOWUPS PAYMENT_METHOD_DOESNT_SUPPORT_MICRODEPOSIT_VERIFICATION