{"metadata":{"image":[],"title":"","description":""},"api":{"url":"","auth":"required","params":[],"results":{"codes":[]},"settings":""},"next":{"description":"","pages":[]},"title":"Errors JSON","type":"basic","slug":"errors-json","excerpt":"","body":"The Errors JSON is part of the [Session JSON](doc:session-json) or part of the result of a failed [app/payment](doc:apppayment). The errors are translated into the language of your form. Show these errors to your donors in your form!\n\nCan contain three types of errors:\n- **current_fields**: errors for the currently sent data\n- **other_fields**: errors for the remaining fields, for which no data was sent. In general these are \"required\"-errors in a multi step form, which could be ignored. But if there are \"other_fields\"-errors in your last step of your form, you should handle it.\n- **globals**: in generel these global errors occur only after a failed payment, e.g. if a credit card is not accepted or a payment provider is currently not available. Global errors are not dedicated to a certain field, so it's just an array of strings which you should show to the user.\n\nThe keys are the name of the field. \nThe value is the translated error message.\n[block:code]\n{\n \"codes\": [\n {\n \"code\": \"{\\n \\\"current_fields\\\": {\\n \\\"interval\\\": \\\"Ungültig\\\",\\n ...\\n },\\n \\\"other_fields\\\": {\\n \\\"payment_method\\\": \\\"Bitte wählen Sie eine Zahlungsweise\\\",\\n ...\\n },\\n \\\"globals\\\": [\\n \\\"Es ist ein Fehler aufgetreten. Bitte laden Sie die Seite neu und versuchen Sie es erneut.\\\",\\n ...\\n ]\\n}\",\n \"language\": \"json\"\n }\n ]\n}\n[/block]","updates":[],"order":3,"isReference":false,"hidden":false,"sync_unique":"","link_url":"","link_external":false,"_id":"57e3f4a2ebc7d90e004006cb","__v":0,"version":{"version":"1","version_clean":"1.0.0","codename":"","is_stable":true,"is_beta":false,"is_hidden":false,"is_deprecated":false,"categories":["571f5e8cd8667f0e00a3c49c","571f73cfcb4baa0e00d13a80","571f7451cb4baa0e00d13a88","571f7d2720695f3400f38797","571f7fb0ac2a080e0014c661","571f884be54f2d0e003ebb0a","572200c9ecb38d0e00d80ebd","572c301e7c8eff0e00aaa174","57df91b2c6348d0e0020c452","57e104db9ff1e21900a721ab","57fd04caeaa77f19008b8202","5899c7113514ce0f0014da84","5cbeda4b862d090013abd413","5e60d6278f8b380072f0b1e3"],"_id":"571f5e8cd8667f0e00a3c49b","hasDoc":true,"releaseDate":"2016-04-26T12:26:52.312Z","__v":14,"hasReference":true,"createdAt":"2016-04-26T12:26:52.312Z","project":"571f5e8cd8667f0e00a3c498"},"category":{"sync":{"isSync":false,"url":""},"pages":[],"title":"JSON Formats","slug":"json-formats","order":5,"from_sync":false,"reference":false,"_id":"57fd04caeaa77f19008b8202","__v":0,"version":"571f5e8cd8667f0e00a3c49b","createdAt":"2016-10-11T15:27:06.099Z","project":"571f5e8cd8667f0e00a3c498"},"createdAt":"2016-09-22T15:11:30.915Z","project":"571f5e8cd8667f0e00a3c498","githubsync":"","parentDoc":null,"user":"5720c075db52d01700f5d1e4"}