{"_id":"5be93093d5aa5700aee12027","project":"59f79e3c584eb200345ceafc","version":{"_id":"59f79e3c584eb200345ceaff","project":"59f79e3c584eb200345ceafc","__v":8,"createdAt":"2015-09-17T03:47:20.956Z","releaseDate":"2015-09-17T03:47:20.956Z","categories":["59f79e3c584eb200345ceb3a","59f79e3c584eb200345ceb3b","59f79e3c584eb200345ceb3c","59f79e3c584eb200345ceb3d","59f79e3c584eb200345ceb3e","59f79e3c584eb200345ceb3f","59f79e3c584eb200345ceb45","59f79e3c584eb200345ceb46","59f79e3c584eb200345ceb48","59f79e3c584eb200345ceb49","5aa21b60c0bda0002d1568b6","5afb6888212c690003ae3d3b","5b4bdcd3737d1800031d2293","5b9ed89212362100036b5a1c","5bb29bec77c22500034757ea","5bb29bfe77c22500034757ec","5bc8fa8063924c00186c5ded","5bc8fe9fa472190014a6b103"],"is_deprecated":false,"is_hidden":false,"is_beta":false,"is_stable":true,"codename":"","version_clean":"3.1.0","version":"3.1"},"category":{"_id":"5b9ed89212362100036b5a1c","project":"59f79e3c584eb200345ceafc","version":"59f79e3c584eb200345ceaff","__v":0,"sync":{"url":"","isSync":false},"reference":false,"createdAt":"2018-09-16T22:26:26.400Z","from_sync":false,"order":6,"slug":"loans","title":"Loans"},"user":"54e4044e8ef7552300409dcb","__v":7,"parentDoc":null,"updates":[],"next":{"pages":[],"description":""},"createdAt":"2018-11-12T07:49:39.753Z","link_external":false,"link_url":"","sync_unique":"","hidden":false,"api":{"method":"post","examples":{"codes":[]},"results":{"codes":[]},"settings":"","auth":"required","params":[{"_id":"5b9eea62607b190003a37683","ref":"","in":"body","required":false,"desc":"Supply `LOAN-US`","default":"","type":"string","name":"type"},{"_id":"5b9eea62607b190003a37682","ref":"","in":"body","required":false,"desc":"","default":"","type":"string","name":"info.nickname"}],"url":"/v3.1/users/:user_id/nodes"},"isReference":false,"order":5,"body":"Applying for a loan is a `POST` API call for the [Node Resources](doc:node-resources).\n[block:code]\n{\n  \"codes\": [\n    {\n      \"code\": \"POST /v3.1/users/5be92ff1321f48008fac90b3/nodes HTTP/1.1\\nHost: https://uat-api.synapsefi.com\\nX-SP-USER-IP: 255.127.79.76\\nX-SP-USER: oauth_9QacXjr56hOldHp8tNs|e83cf6ddcf778e37bfe3d48fc78a6502062fc\\nContent-Type: application/json\\n{\\n  \\\"type\\\": \\\"LOAN-US\\\",\\n  \\\"info\\\": {\\n  \\t\\\"loan_type\\\":\\\"REVOLVING\\\",\\n    \\\"nickname\\\":\\\"My Loan\\\",\\n    \\\"credit_limit\\\":{\\n    \\t\\\"amount\\\":500.2,\\n    \\t\\\"currency\\\":\\\"USD\\\"\\n    },\\n    \\\"payment_node_id\\\":\\\"5be9300efc0a9800b28702bd\\\",\\n    \\\"document_id\\\":\\\"2a4a5957a3a62aaac1a0dd0edcae9\\\",\\n    \\\"schedule\\\":\\\"MONTHLY\\\",\\n    \\\"next_payment\\\":30,\\n    \\\"num_payments\\\":10\\n  },\\n  \\\"extra\\\":{\\n  \\t\\\"supp_id\\\":\\\"xx123c\\\",\\n  \\t\\\"note\\\":\\\"ACCOUNT|TOOSHORT\\\"\\n  },\\n  \\\"allowed\\\":\\\"REJECTED\\\"\\n}\",\n      \"language\": \"http\"\n    },\n    {\n      \"code\": \"curl -X POST \\\\\\n  https://uat-api.synapsefi.com/v3.1/users/5be92ff1321f48008fac90b3/nodes \\\\\\n  -H 'Content-Type: application/json' \\\\\\n  -H 'Postman-Token: 48464eed-ad9a-4fd0-b081-69fd78a47452' \\\\\\n  -H 'X-SP-USER: oauth_9QacXjr56hOl|e83cf6ddcf778e37bfe3d48fc78a6502062fc' \\\\\\n  -H 'X-SP-USER-IP: 255.127.79.76' \\\\\\n  -d '{\\n  \\\"type\\\": \\\"LOAN-US\\\",\\n  \\\"info\\\": {\\n  \\t\\\"loan_type\\\":\\\"REVOLVING\\\",\\n    \\\"nickname\\\":\\\"My Loan\\\",\\n    \\\"credit_limit\\\":{\\n    \\t\\\"amount\\\":500.2,\\n    \\t\\\"currency\\\":\\\"USD\\\"\\n    },\\n    \\\"interest\\\": {\\n    \\t\\\"apr\\\": 10,\\n    \\t\\\"cap\\\": 5\\n    },\\n    \\\"payment_node_id\\\":\\\"5be9300efc0a9800b28702bd\\\",\\n    \\\"document_id\\\":\\\"2a4a5957a3a62aaac1a0dd0edcae9\\\",\\n    \\\"schedule\\\":\\\"MONTHLY\\\",\\n    \\\"next_payment\\\":30,\\n    \\\"num_payments\\\":10\\n  },\\n  \\\"extra\\\":{\\n  \\t\\\"supp_id\\\":\\\"xx123c\\\",\\n  \\t\\\"note\\\":\\\"ACCOUNT|TOOSHORT\\\"\\n  },\\n  \\\"allowed\\\":\\\"REJECTED\\\"\\n}'\",\n      \"language\": \"curl\"\n    }\n  ]\n}\n[/block]\nResponses:\n[block:code]\n{\n  \"codes\": [\n    {\n      \"code\": \"{\\n    \\\"error_code\\\": \\\"0\\\",\\n    \\\"http_code\\\": \\\"200\\\",\\n    \\\"limit\\\": 20,\\n    \\\"node_count\\\": 1,\\n    \\\"nodes\\\": [\\n        {\\n            \\\"_id\\\": \\\"5be930bffc0a9800b28702d0\\\",\\n            \\\"_links\\\": {\\n                \\\"self\\\": {\\n                    \\\"href\\\": \\\"https://uat-api.synapsefi.com/v3.1/users/5be92ff1321f48008fac90b3/nodes/5be930bffc0a9800b28702d0\\\"\\n                }\\n            },\\n            \\\"allowed\\\": \\\"REJECTED\\\",\\n            \\\"client\\\": {\\n                \\\"id\\\": \\\"589acd9ecb3cd400fa75ac06\\\",\\n                \\\"name\\\": \\\"SynapseFI\\\"\\n            },\\n            \\\"extra\\\": {\\n                \\\"note\\\": \\\"Length of account with PLATFORM\\\",\\n                \\\"other\\\": {},\\n                \\\"supp_id\\\": \\\"xx123c\\\"\\n            },\\n            \\\"info\\\": {\\n                \\\"agreements\\\": [\\n                    {\\n                        \\\"type\\\": \\\"ADVERSE_ACTION\\\",\\n                        \\\"url\\\": \\\"https://cdn.synapsepay.com/uploads/2018/11/12/ufX4lMJZcKhRHFNi2E809s1nkbO3V56LSPy0eTGwYDgBtUIQjr.pdf\\\"\\n                    }\\n                ],\\n                \\\"balance\\\": {\\n                    \\\"amount\\\": 0,\\n                    \\\"currency\\\": \\\"USD\\\"\\n                },\\n                \\\"credit_limit\\\": {\\n                    \\\"amount\\\": 0,\\n                    \\\"currency\\\": \\\"USD\\\"\\n                },\\n                \\\"document_id\\\": \\\"2a4a5957a3a62aaac1a0dd0edcae96ea2cdee688ec6337b20745eed8869e3ac8\\\",\\n                \\\"interest\\\": {\\n                    \\\"accrued\\\": 0,\\n                    \\\"apr\\\": 10,\\n                    \\\"cap\\\": 0.05\\n                },\\n                \\\"loan_type\\\": \\\"REVOLVING\\\",\\n                \\\"name_on_account\\\": \\\" \\\",\\n                \\\"next_payment\\\": 1544601021112,\\n                \\\"nickname\\\": \\\"My Loan\\\",\\n                \\\"payment_node_id\\\": \\\"5be9300efc0a9800b28702bd\\\",\\n                \\\"schedule\\\": \\\"MONTHLY\\\"\\n            },\\n            \\\"is_active\\\": true,\\n            \\\"timeline\\\": [\\n                {\\n                    \\\"date\\\": 1542009021112,\\n                    \\\"note\\\": \\\"Node created.\\\"\\n                }\\n            ],\\n            \\\"type\\\": \\\"LOAN-US\\\",\\n            \\\"user_id\\\": \\\"5be92ff1321f48008fac90b3\\\"\\n        }\\n    ],\\n    \\\"page_count\\\": 1,\\n    \\\"success\\\": true\\n}\",\n      \"language\": \"json\",\n      \"name\": \"Approved\"\n    }\n  ]\n}\n[/block]\n\n[block:api-header]\n{\n  \"title\": \"Custom Loan Rejections\"\n}\n[/block]\nHere are all the reasons for which you can book custom rejections:\n[block:parameters]\n{\n  \"data\": {\n    \"h-0\": \"Loan Rejection Reason\",\n    \"h-1\": \"Description\",\n    \"0-1\": \"The user has not had an account long enough  to be eligible for a loan\",\n    \"1-1\": \"The user's income is not sufficient enough to repay the loan\",\n    \"2-1\": \"There is not enough information on the user's income\",\n    \"3-1\": \"The platform is unable to verify the user's income\",\n    \"0-0\": \"ACCOUNT|TOOSHORT\",\n    \"1-0\": \"INCOME|INSUFFICIENT\",\n    \"2-0\": \"INCOME|NOINFO\",\n    \"3-0\": \"INCOME|UNVERIFIABLE\"\n  },\n  \"cols\": 2,\n  \"rows\": 4\n}\n[/block]","excerpt":"","slug":"book-a-loan-rejection","type":"basic","title":"Book a loan rejection"}

Book a loan rejection


Applying for a loan is a `POST` API call for the [Node Resources](doc:node-resources). [block:code] { "codes": [ { "code": "POST /v3.1/users/5be92ff1321f48008fac90b3/nodes HTTP/1.1\nHost: https://uat-api.synapsefi.com\nX-SP-USER-IP: 255.127.79.76\nX-SP-USER: oauth_9QacXjr56hOldHp8tNs|e83cf6ddcf778e37bfe3d48fc78a6502062fc\nContent-Type: application/json\n{\n \"type\": \"LOAN-US\",\n \"info\": {\n \t\"loan_type\":\"REVOLVING\",\n \"nickname\":\"My Loan\",\n \"credit_limit\":{\n \t\"amount\":500.2,\n \t\"currency\":\"USD\"\n },\n \"payment_node_id\":\"5be9300efc0a9800b28702bd\",\n \"document_id\":\"2a4a5957a3a62aaac1a0dd0edcae9\",\n \"schedule\":\"MONTHLY\",\n \"next_payment\":30,\n \"num_payments\":10\n },\n \"extra\":{\n \t\"supp_id\":\"xx123c\",\n \t\"note\":\"ACCOUNT|TOOSHORT\"\n },\n \"allowed\":\"REJECTED\"\n}", "language": "http" }, { "code": "curl -X POST \\\n https://uat-api.synapsefi.com/v3.1/users/5be92ff1321f48008fac90b3/nodes \\\n -H 'Content-Type: application/json' \\\n -H 'Postman-Token: 48464eed-ad9a-4fd0-b081-69fd78a47452' \\\n -H 'X-SP-USER: oauth_9QacXjr56hOl|e83cf6ddcf778e37bfe3d48fc78a6502062fc' \\\n -H 'X-SP-USER-IP: 255.127.79.76' \\\n -d '{\n \"type\": \"LOAN-US\",\n \"info\": {\n \t\"loan_type\":\"REVOLVING\",\n \"nickname\":\"My Loan\",\n \"credit_limit\":{\n \t\"amount\":500.2,\n \t\"currency\":\"USD\"\n },\n \"interest\": {\n \t\"apr\": 10,\n \t\"cap\": 5\n },\n \"payment_node_id\":\"5be9300efc0a9800b28702bd\",\n \"document_id\":\"2a4a5957a3a62aaac1a0dd0edcae9\",\n \"schedule\":\"MONTHLY\",\n \"next_payment\":30,\n \"num_payments\":10\n },\n \"extra\":{\n \t\"supp_id\":\"xx123c\",\n \t\"note\":\"ACCOUNT|TOOSHORT\"\n },\n \"allowed\":\"REJECTED\"\n}'", "language": "curl" } ] } [/block] Responses: [block:code] { "codes": [ { "code": "{\n \"error_code\": \"0\",\n \"http_code\": \"200\",\n \"limit\": 20,\n \"node_count\": 1,\n \"nodes\": [\n {\n \"_id\": \"5be930bffc0a9800b28702d0\",\n \"_links\": {\n \"self\": {\n \"href\": \"https://uat-api.synapsefi.com/v3.1/users/5be92ff1321f48008fac90b3/nodes/5be930bffc0a9800b28702d0\"\n }\n },\n \"allowed\": \"REJECTED\",\n \"client\": {\n \"id\": \"589acd9ecb3cd400fa75ac06\",\n \"name\": \"SynapseFI\"\n },\n \"extra\": {\n \"note\": \"Length of account with PLATFORM\",\n \"other\": {},\n \"supp_id\": \"xx123c\"\n },\n \"info\": {\n \"agreements\": [\n {\n \"type\": \"ADVERSE_ACTION\",\n \"url\": \"https://cdn.synapsepay.com/uploads/2018/11/12/ufX4lMJZcKhRHFNi2E809s1nkbO3V56LSPy0eTGwYDgBtUIQjr.pdf\"\n }\n ],\n \"balance\": {\n \"amount\": 0,\n \"currency\": \"USD\"\n },\n \"credit_limit\": {\n \"amount\": 0,\n \"currency\": \"USD\"\n },\n \"document_id\": \"2a4a5957a3a62aaac1a0dd0edcae96ea2cdee688ec6337b20745eed8869e3ac8\",\n \"interest\": {\n \"accrued\": 0,\n \"apr\": 10,\n \"cap\": 0.05\n },\n \"loan_type\": \"REVOLVING\",\n \"name_on_account\": \" \",\n \"next_payment\": 1544601021112,\n \"nickname\": \"My Loan\",\n \"payment_node_id\": \"5be9300efc0a9800b28702bd\",\n \"schedule\": \"MONTHLY\"\n },\n \"is_active\": true,\n \"timeline\": [\n {\n \"date\": 1542009021112,\n \"note\": \"Node created.\"\n }\n ],\n \"type\": \"LOAN-US\",\n \"user_id\": \"5be92ff1321f48008fac90b3\"\n }\n ],\n \"page_count\": 1,\n \"success\": true\n}", "language": "json", "name": "Approved" } ] } [/block] [block:api-header] { "title": "Custom Loan Rejections" } [/block] Here are all the reasons for which you can book custom rejections: [block:parameters] { "data": { "h-0": "Loan Rejection Reason", "h-1": "Description", "0-1": "The user has not had an account long enough to be eligible for a loan", "1-1": "The user's income is not sufficient enough to repay the loan", "2-1": "There is not enough information on the user's income", "3-1": "The platform is unable to verify the user's income", "0-0": "ACCOUNT|TOOSHORT", "1-0": "INCOME|INSUFFICIENT", "2-0": "INCOME|NOINFO", "3-0": "INCOME|UNVERIFIABLE" }, "cols": 2, "rows": 4 } [/block]