{"_id":"57dfcfb8031bca0e00460cfd","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,"project":"571f5e8cd8667f0e00a3c498","updates":[],"next":{"pages":[],"description":""},"createdAt":"2016-09-19T11:44:56.715Z","link_external":false,"link_url":"","githubsync":"","sync_unique":"","hidden":false,"api":{"results":{"codes":[]},"settings":"","auth":"required","params":[],"url":""},"isReference":false,"order":2,"body":"The Transaction JSON is provided after a successful payment. You can use this data e.g. for tracking or personalized success message.\nThis JSON can contain following data. Not all fields are always present!\n[block:code]\n{\n  \"codes\": [\n    {\n      \"code\": \"{\\n  \\\"transaction_id\\\": \\\"FB-T-123456\\\",\\n  \\\"status\\\": \\\"confirmed\\\", // or \\\"awaiting\\\" if redirect payment no yet processed\\n  \\\"token\\\": \\\"{unique transaction token}\\\",\\n  \\\"fb_source_id\\\": 3, // always 3\\n  \\\"fb_payment_form_configuration_id\\\": 1234,\\n  \\\"source_name\\\": \\\"general\\\", // name of your form\\n  \\\"source_promotion_code\\\": \\\"\\\",\\n  \\\"fb_project_id\\\": 4921,\\n  \\\"project_promotion_code\\\": \\\"\\\",\\n  \\\"fb_type_id\\\": 8,\\n  \\\"type_promotion_code\\\": \\\"\\\",\\n  \\\"amount\\\": 12.34,\\n  \\\"currency\\\": \\\"EUR\\\",\\n  \\\"interval\\\": 0,\\n  \\\"fb_donation_id\\\": null,\\n  \\\"by_recurring\\\": 0,\\n  \\\"fb_recurring_payment_id\\\": null,\\n  \\\"meta_info\\\": {...}, // see General > Meta Info\\n  \\\"receipt_status\\\": \\\"no_receipt\\\",\\n  \\\"company_name\\\": \\\"\\\",\\n  \\\"salutation\\\": \\\"Mr.\\\",\\n  \\\"title\\\": \\\"\\\",\\n  \\\"first_name\\\": \\\"Max\\\",\\n  \\\"last_name\\\": \\\"Mustermann\\\",\\n  \\\"birthday\\\": null,\\n  \\\"wants_newsletter\\\": 0,\\n  \\\"email\\\": \\\"\\\",\\n  \\\"phone\\\": \\\"\\\",\\n  \\\"public_name\\\": \\\"\\\",\\n  \\\"public_message\\\": \\\"\\\",\\n  \\\"address\\\": \\\"\\\",\\n  \\\"post_code\\\": \\\"\\\",\\n  \\\"city\\\": \\\"\\\",\\n  \\\"country\\\": \\\"\\\",\\n  \\\"bank_account_owner\\\": \\\"Max Mustermann\\\",\\n  \\\"bank_number\\\": \\\"123456\\\",\\n  \\\"bank_account_number\\\": \\\"98756000\\\",\\n  \\\"bank_iban\\\": null,\\n  \\\"bank_bic\\\": null,\\n  \\\"bank_name\\\": null,\\n  \\\"bank_country\\\": null,\\n  \\\"updated_at\\\": \\\"2016-08-24 22:49:05\\\",\\n  \\\"created_at\\\": \\\"2016-08-24 22:49:05\\\",\\n  \\\"received_at\\\": null,\\n  \\\"is_test\\\": 0,\\n  \\\"parent_url\\\": \\\"http://www.myorganisation.de/spenden\\\",\\n  \\\"ip\\\": \\\"123.456.789.0\\\",\\n  \\\"mandate_reference_id\\\": \\\"\\\",\\n  \\\"mandate_status\\\": \\\"\\\",\\n  \\\"mandate_signature_date\\\": \\\"\\\",\\n  \\\"mandate_last_usage_date\\\": \\\"\\\",\\n  \\\"mandate_transaction_type\\\": \\\"\\\",\\n  \\\"mandate_origin\\\": \\\"\\\",\\n  \\\"fb_fundraising_page_id\\\": null,\\n  \\\"fb_donation_custom_fields\\\": [\\n    123: {\\n      \\\"name\\\": \\\"Einsatzgebiet\\\",\\n      \\\"value\\\": \\\"Bayern\\\"\\n    },\\n    //... all available donation custom fields, even if there is no value for this transaction\\n  ],\\n  \\\"fb_person_custom_fields\\\": [\\n    456: {\\n      \\\"name\\\": \\\"Beruf\\\",\\n      \\\"value\\\": \\\"Informatiker\\\"\\n    },\\n    //... all available person custom fields, even if there is no value for this transaction\\n  ]\\n}\",\n      \"language\": \"json\"\n    }\n  ]\n}\n[/block]\nPossible values: please have a look on our page for [predefined values](/docs/predefined-values).","excerpt":"","slug":"transaction-json","type":"basic","title":"Transaction JSON"}
The Transaction JSON is provided after a successful payment. You can use this data e.g. for tracking or personalized success message. This JSON can contain following data. Not all fields are always present! [block:code] { "codes": [ { "code": "{\n \"transaction_id\": \"FB-T-123456\",\n \"status\": \"confirmed\", // or \"awaiting\" if redirect payment no yet processed\n \"token\": \"{unique transaction token}\",\n \"fb_source_id\": 3, // always 3\n \"fb_payment_form_configuration_id\": 1234,\n \"source_name\": \"general\", // name of your form\n \"source_promotion_code\": \"\",\n \"fb_project_id\": 4921,\n \"project_promotion_code\": \"\",\n \"fb_type_id\": 8,\n \"type_promotion_code\": \"\",\n \"amount\": 12.34,\n \"currency\": \"EUR\",\n \"interval\": 0,\n \"fb_donation_id\": null,\n \"by_recurring\": 0,\n \"fb_recurring_payment_id\": null,\n \"meta_info\": {...}, // see General > Meta Info\n \"receipt_status\": \"no_receipt\",\n \"company_name\": \"\",\n \"salutation\": \"Mr.\",\n \"title\": \"\",\n \"first_name\": \"Max\",\n \"last_name\": \"Mustermann\",\n \"birthday\": null,\n \"wants_newsletter\": 0,\n \"email\": \"\",\n \"phone\": \"\",\n \"public_name\": \"\",\n \"public_message\": \"\",\n \"address\": \"\",\n \"post_code\": \"\",\n \"city\": \"\",\n \"country\": \"\",\n \"bank_account_owner\": \"Max Mustermann\",\n \"bank_number\": \"123456\",\n \"bank_account_number\": \"98756000\",\n \"bank_iban\": null,\n \"bank_bic\": null,\n \"bank_name\": null,\n \"bank_country\": null,\n \"updated_at\": \"2016-08-24 22:49:05\",\n \"created_at\": \"2016-08-24 22:49:05\",\n \"received_at\": null,\n \"is_test\": 0,\n \"parent_url\": \"http://www.myorganisation.de/spenden\",\n \"ip\": \"123.456.789.0\",\n \"mandate_reference_id\": \"\",\n \"mandate_status\": \"\",\n \"mandate_signature_date\": \"\",\n \"mandate_last_usage_date\": \"\",\n \"mandate_transaction_type\": \"\",\n \"mandate_origin\": \"\",\n \"fb_fundraising_page_id\": null,\n \"fb_donation_custom_fields\": [\n 123: {\n \"name\": \"Einsatzgebiet\",\n \"value\": \"Bayern\"\n },\n //... all available donation custom fields, even if there is no value for this transaction\n ],\n \"fb_person_custom_fields\": [\n 456: {\n \"name\": \"Beruf\",\n \"value\": \"Informatiker\"\n },\n //... all available person custom fields, even if there is no value for this transaction\n ]\n}", "language": "json" } ] } [/block] Possible values: please have a look on our page for [predefined values](/docs/predefined-values).