{"metadata":{"image":[],"title":"","description":""},"api":{"url":"","auth":"required","results":{"codes":[]},"settings":"","params":[]},"next":{"description":"","pages":[]},"title":"Errors","type":"basic","slug":"common-errors","excerpt":"CoinGate API error responses","body":"Most common API error responses are described below. Error response must be identified by **HTTP status** and **reason** attribute in your application.\n\nPlease note that specific API methods (for example [Create Order](doc:create-order)) have their own errors (e.g. 422 Unprocessable Entity - when order is not valid).\n\nSee [Common Issues](doc:issues) for troubleshooting.\n[block:parameters]\n{\n  \"data\": {\n    \"h-0\": \"HTTP Status\",\n    \"h-1\": \"Reason\",\n    \"h-2\": \"Description\",\n    \"0-0\": \"401 (Unauthorized)\",\n    \"0-1\": \"BadCredentials\",\n    \"0-2\": \"API credentials are not valid\",\n    \"1-0\": \"404 (Not Found)\",\n    \"1-1\": \"PageNotFound\",\n    \"1-2\": \"Page, action or record not found\",\n    \"2-0\": \"404 (Not Found)\",\n    \"2-1\": \"RecordNotFound\",\n    \"2-2\": \"Record not found\",\n    \"3-0\": \"500 (Internal Server Error)\",\n    \"3-1\": \"InternalServerError\",\n    \"3-2\": \"Something wrong in CoinGate\",\n    \"4-0\": \"429 (Too Many Requests)\",\n    \"4-1\": \"RateLimitException\",\n    \"4-2\": \"API request limit is exceeded\"\n  },\n  \"cols\": 3,\n  \"rows\": 5\n}\n[/block]\nResponse example:\n[block:code]\n{\n  \"codes\": [\n    {\n      \"code\": \"{\\n  \\\"message\\\": \\\"Not found App by Access-Key\\\",\\n  \\\"reason\\\": \\\"BadCredentials\\\"\\n}\",\n      \"language\": \"json\"\n    }\n  ]\n}\n[/block]","updates":[],"order":3,"isReference":false,"hidden":false,"sync_unique":"","link_url":"","link_external":false,"_id":"5adcc1185cd1890003da816b","category":{"sync":{"isSync":false,"url":""},"pages":[],"title":"Documentation","slug":"documentation","order":1,"from_sync":false,"reference":false,"_id":"5adcc1185cd1890003da8166","version":"5adcc1185cd1890003da8165","project":"5530bfac57cea10d00a3aa3b","createdAt":"2015-04-17T08:09:17.710Z","__v":0},"project":"5530bfac57cea10d00a3aa3b","user":"5530bf7457cea10d00a3aa3a","parentDoc":null,"version":{"version":"2","version_clean":"2.0.0","codename":"","is_stable":true,"is_beta":false,"is_hidden":false,"is_deprecated":false,"categories":["5adcc1185cd1890003da8166","5adcc1185cd1890003da8167","5adcf4b3ce4b3f00035317e9","5adfb8e9452bd900036d115b","5e7b51281ac49702d745882c","5e7b526560c6cc004f25ca3e"],"_id":"5adcc1185cd1890003da8165","project":"5530bfac57cea10d00a3aa3b","createdAt":"2018-04-22T17:06:32.152Z","releaseDate":"2018-04-22T17:06:32.152Z","__v":5},"createdAt":"2016-04-27T10:55:46.720Z","githubsync":"","__v":0}

Errors

CoinGate API error responses

Most common API error responses are described below. Error response must be identified by **HTTP status** and **reason** attribute in your application. Please note that specific API methods (for example [Create Order](doc:create-order)) have their own errors (e.g. 422 Unprocessable Entity - when order is not valid). See [Common Issues](doc:issues) for troubleshooting. [block:parameters] { "data": { "h-0": "HTTP Status", "h-1": "Reason", "h-2": "Description", "0-0": "401 (Unauthorized)", "0-1": "BadCredentials", "0-2": "API credentials are not valid", "1-0": "404 (Not Found)", "1-1": "PageNotFound", "1-2": "Page, action or record not found", "2-0": "404 (Not Found)", "2-1": "RecordNotFound", "2-2": "Record not found", "3-0": "500 (Internal Server Error)", "3-1": "InternalServerError", "3-2": "Something wrong in CoinGate", "4-0": "429 (Too Many Requests)", "4-1": "RateLimitException", "4-2": "API request limit is exceeded" }, "cols": 3, "rows": 5 } [/block] Response example: [block:code] { "codes": [ { "code": "{\n \"message\": \"Not found App by Access-Key\",\n \"reason\": \"BadCredentials\"\n}", "language": "json" } ] } [/block]