{"_id":"57dfbe20ef837d0e00fd8a86","project":"571f5e8cd8667f0e00a3c498","version":{"_id":"571f5e8cd8667f0e00a3c49b","hasDoc":true,"__v":12,"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"},"category":{"_id":"57fd04caeaa77f19008b8202","__v":0,"version":"571f5e8cd8667f0e00a3c49b","project":"571f5e8cd8667f0e00a3c498","sync":{"url":"","isSync":false},"reference":false,"createdAt":"2016-10-11T15:27:06.099Z","from_sync":false,"order":6,"slug":"json-formats","title":"JSON Formats"},"user":"5720c075db52d01700f5d1e4","__v":0,"parentDoc":null,"updates":[],"next":{"pages":[],"description":""},"createdAt":"2016-09-19T10:29:52.760Z","link_external":false,"link_url":"","githubsync":"","sync_unique":"","hidden":false,"api":{"results":{"codes":[]},"settings":"","auth":"required","params":[],"url":""},"isReference":false,"order":1,"body":"The Session JSON contains all data of a not yet processed session. You can update the session as long as it's not processed by the payment-controller.\n\n**hash**\nUnique hash for this session, use this hash to update the session or processing via the payment-controller.\n\n**status**\n- *incomplete*: session has still errors like required or invalid fields\n- *complete*: session is ready for payment\n\n**errors**\nSee [Errors JSON](doc:errors-json).\n\n**values**\nContains the already accepted and validated values stored in the session.\n\n**fixed_values**\nOnly for Prepopulation-API: indicates which values are fixed.\n\n**meta_info**\nAdditional informations already stored in the session, e.g. Adresslabor informations. See [Meta Info](doc:meta-info).\n\n#Example\n[block:code]\n{\n  \"codes\": [\n    {\n      \"code\": \"{\\n    \\\"hash\\\": \\\"0eugvetl49ql8drqyzs3oiybaz2tdvu257dfbeb23833f\\\",\\n    \\\"status\\\": \\\"incomplete\\\",\\n    \\\"errors\\\": {\\n      \\\"current_fields\\\": {\\n        \\\"interval\\\": \\\"Ungültig\\\",\\n        ...\\n      },\\n      \\\"other_fields\\\": {\\n        \\\"payment_method\\\": \\\"Bitte wählen Sie eine Zahlungsweise\\\",\\n        ...\\n      }\\n    },\\n    \\\"values\\\": {\\n      \\\"salutation\\\": \\\"Mr.\\\",\\n      \\\"first_name\\\": \\\"Hans\\\",\\n      \\\"last_name\\\": \\\"Peters\\\",\\n      \\\"amount\\\": \\\"120\\\",\\n      \\\"fb_item_id\\\": \\\"9305\\\",\\n      \\\"wants_receipt\\\": \\\"no_receipt\\\",\\n      \\\"is_privacy_accepted\\\": \\\"1\\\",\\n      ...\\n    },\\n    \\\"fixed_values\\\": {\\n      \\\"first_name\\\": \\\"fix\\\",\\n      \\\"last_name\\\": \\\"fix\\\",\\n      ...\\n    },\\n    \\\"meta_info\\\": {...} // see General > Meta Info\\n}\",\n      \"language\": \"json\"\n    }\n  ]\n}\n[/block]","excerpt":"","slug":"session-json","type":"basic","title":"Session JSON"}
The Session JSON contains all data of a not yet processed session. You can update the session as long as it's not processed by the payment-controller. **hash** Unique hash for this session, use this hash to update the session or processing via the payment-controller. **status** - *incomplete*: session has still errors like required or invalid fields - *complete*: session is ready for payment **errors** See [Errors JSON](doc:errors-json). **values** Contains the already accepted and validated values stored in the session. **fixed_values** Only for Prepopulation-API: indicates which values are fixed. **meta_info** Additional informations already stored in the session, e.g. Adresslabor informations. See [Meta Info](doc:meta-info). #Example [block:code] { "codes": [ { "code": "{\n \"hash\": \"0eugvetl49ql8drqyzs3oiybaz2tdvu257dfbeb23833f\",\n \"status\": \"incomplete\",\n \"errors\": {\n \"current_fields\": {\n \"interval\": \"Ungültig\",\n ...\n },\n \"other_fields\": {\n \"payment_method\": \"Bitte wählen Sie eine Zahlungsweise\",\n ...\n }\n },\n \"values\": {\n \"salutation\": \"Mr.\",\n \"first_name\": \"Hans\",\n \"last_name\": \"Peters\",\n \"amount\": \"120\",\n \"fb_item_id\": \"9305\",\n \"wants_receipt\": \"no_receipt\",\n \"is_privacy_accepted\": \"1\",\n ...\n },\n \"fixed_values\": {\n \"first_name\": \"fix\",\n \"last_name\": \"fix\",\n ...\n },\n \"meta_info\": {...} // see General > Meta Info\n}", "language": "json" } ] } [/block]