{"__v":0,"_id":"57e3f4a2ebc7d90e004006cb","category":{"project":"571f5e8cd8667f0e00a3c498","version":"571f5e8cd8667f0e00a3c49b","_id":"57fd04caeaa77f19008b8202","__v":0,"sync":{"url":"","isSync":false},"reference":false,"createdAt":"2016-10-11T15:27:06.099Z","from_sync":false,"order":6,"slug":"json-formats","title":"JSON Formats"},"parentDoc":null,"project":"571f5e8cd8667f0e00a3c498","user":"5720c075db52d01700f5d1e4","version":{"__v":12,"_id":"571f5e8cd8667f0e00a3c49b","hasDoc":true,"hasReference":true,"project":"571f5e8cd8667f0e00a3c498","createdAt":"2016-04-26T12:26:52.312Z","releaseDate":"2016-04-26T12:26:52.312Z","categories":["571f5e8cd8667f0e00a3c49c","571f73cfcb4baa0e00d13a80","571f7451cb4baa0e00d13a88","571f7d2720695f3400f38797","571f7fb0ac2a080e0014c661","571f884be54f2d0e003ebb0a","572200c9ecb38d0e00d80ebd","572c301e7c8eff0e00aaa174","57df91b2c6348d0e0020c452","57e104db9ff1e21900a721ab","57fd04caeaa77f19008b8202","5899c7113514ce0f0014da84"],"is_deprecated":false,"is_hidden":false,"is_beta":false,"is_stable":true,"codename":"","version_clean":"1.0.0","version":"1.0"},"updates":[],"next":{"pages":[],"description":""},"createdAt":"2016-09-22T15:11:30.915Z","link_external":false,"link_url":"","githubsync":"","sync_unique":"","hidden":false,"api":{"results":{"codes":[]},"settings":"","auth":"required","params":[],"url":""},"isReference":false,"order":3,"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]","excerpt":"","slug":"errors-json","type":"basic","title":"Errors JSON"}
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! Can contain three types of errors: - **current_fields**: errors for the currently sent data - **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. - **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. The keys are the name of the field. The value is the translated error message. [block:code] { "codes": [ { "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}", "language": "json" } ] } [/block]