{"_id":"5bb4f06337088700035a0adf","project":"59f79e3c584eb200345ceafc","version":{"_id":"59f79e3c584eb200345ceaff","project":"59f79e3c584eb200345ceafc","__v":6,"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"],"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":0,"parentDoc":null,"updates":[],"next":{"pages":[],"description":""},"createdAt":"2018-10-03T16:37:55.198Z","link_external":false,"link_url":"","sync_unique":"","hidden":false,"api":{"results":{"codes":[]},"settings":"","auth":"required","params":[],"url":""},"isReference":false,"order":4,"body":"To change then next payment date, you just need to do a `PATCH` on [Node Resources](doc:node-resources). The `payment_node_id` is the node ID of the end user or can be yours as well if you are using a third-party for collecting loan payments.\n[block:code]\n{\n  \"codes\": [\n    {\n      \"code\": \"PATCH /v3.1/users/5bb4ea77aadcf0361a902e93/nodes/5bb4eacfe552da00a778eb2b HTTP/1.1\\nHost: uat-api.synapsefi.com\\nX-SP-USER-IP: 255.127.79.76\\nX-SP-USER: oauth_v8HoaP5l0LnU9grypChWGmcOFk1sYIzVDjqQMd7X|e83cf6ddcf778e37bfe3d48fc78a6502062fc\\nContent-Type: application/json\\nCache-Control: no-cache\\n\\n{\\n  \\\"payment_node_id\\\":\\\"5bb4ea879a835600b57fb1c2\\\"\\n}\",\n      \"language\": \"http\"\n    }\n  ]\n}\n[/block]\nResponse:\n[block:code]\n{\n  \"codes\": [\n    {\n      \"code\": \"{\\n    \\\"_id\\\": \\\"5bb4eacfe552da00a778eb2b\\\",\\n    \\\"_links\\\": {\\n        \\\"self\\\": {\\n            \\\"href\\\": \\\"https://uat-api.synapsefi.com/v3.1/users/5bb4ea77aadcf0361a902e93/nodes/5bb4eacfe552da00a778eb2b\\\"\\n        }\\n    },\\n    \\\"allowed\\\": \\\"CREDIT\\\",\\n    \\\"client\\\": {\\n        \\\"id\\\": \\\"589acd9ecb3cd400fa75ac06\\\",\\n        \\\"name\\\": \\\"SynapseFI\\\"\\n    },\\n    \\\"extra\\\": {\\n        \\\"note\\\": \\\"PHtSnrzspe\\\",\\n        \\\"other\\\": {},\\n        \\\"supp_id\\\": \\\"xx123c\\\"\\n    },\\n    \\\"info\\\": {\\n        \\\"agreements\\\": [\\n            {\\n                \\\"type\\\": \\\"LOAN_AGREEMENT\\\",\\n                \\\"url\\\": \\\"https://cdn.synapsepay.com/uploads/2018/10/03/QY8bTer4vBhixuXqCMRg0nzEyLZfp2GA0NmHdUloJwsDWIV67a.pdf\\\"\\n            }\\n        ],\\n        \\\"balance\\\": {\\n            \\\"amount\\\": -500.2,\\n            \\\"currency\\\": \\\"USD\\\"\\n        },\\n        \\\"credit_limit\\\": {\\n            \\\"amount\\\": 500.2,\\n            \\\"currency\\\": \\\"USD\\\"\\n        },\\n        \\\"disbursement_node_id\\\": \\\"5bb4ea879a835600b57fb1c2\\\",\\n        \\\"document_id\\\": \\\"2a4a5957a3a62aaac1a0dd0edcae96e\\\",\\n        \\\"installment_amount\\\": 100.2,\\n        \\\"interest\\\": {\\n            \\\"apr\\\": 10,\\n            \\\"cap\\\": 25.01\\n        },\\n        \\\"monthly_withdrawals_remaining\\\": null,\\n        \\\"name_on_account\\\": \\\" \\\",\\n        \\\"next_payment\\\": 1558455244159,\\n        \\\"nickname\\\": \\\"For a Tesla Model X\\\",\\n        \\\"num_payments\\\": 6,\\n        \\\"payment_node_id\\\": \\\"5bb4ea879a835600b57fb1c2\\\",\\n        \\\"schedule\\\": \\\"MONTHLY\\\"\\n    },\\n    \\\"is_active\\\": true,\\n    \\\"timeline\\\": [\\n        {\\n            \\\"date\\\": 1538583244159,\\n            \\\"note\\\": \\\"Node created.\\\"\\n        },\\n        {\\n            \\\"date\\\": 1538584734128,\\n            \\\"note\\\": \\\"next_payment updated.\\\"\\n        },\\n        {\\n            \\\"date\\\": 1538584797881,\\n            \\\"note\\\": \\\"next_payment updated.\\\"\\n        },\\n        {\\n            \\\"date\\\": 1538584965843,\\n            \\\"note\\\": \\\"payment_node_id updated.\\\"\\n        }\\n    ],\\n    \\\"type\\\": \\\"LOAN-US\\\",\\n    \\\"user_id\\\": \\\"5bb4ea77aadcf0361a902e93\\\"\\n}\",\n      \"language\": \"json\"\n    }\n  ]\n}\n[/block]","excerpt":"","slug":"change-payment-node","type":"basic","title":"Change Payment Node"}

Change Payment Node


To change then next payment date, you just need to do a `PATCH` on [Node Resources](doc:node-resources). The `payment_node_id` is the node ID of the end user or can be yours as well if you are using a third-party for collecting loan payments. [block:code] { "codes": [ { "code": "PATCH /v3.1/users/5bb4ea77aadcf0361a902e93/nodes/5bb4eacfe552da00a778eb2b HTTP/1.1\nHost: uat-api.synapsefi.com\nX-SP-USER-IP: 255.127.79.76\nX-SP-USER: oauth_v8HoaP5l0LnU9grypChWGmcOFk1sYIzVDjqQMd7X|e83cf6ddcf778e37bfe3d48fc78a6502062fc\nContent-Type: application/json\nCache-Control: no-cache\n\n{\n \"payment_node_id\":\"5bb4ea879a835600b57fb1c2\"\n}", "language": "http" } ] } [/block] Response: [block:code] { "codes": [ { "code": "{\n \"_id\": \"5bb4eacfe552da00a778eb2b\",\n \"_links\": {\n \"self\": {\n \"href\": \"https://uat-api.synapsefi.com/v3.1/users/5bb4ea77aadcf0361a902e93/nodes/5bb4eacfe552da00a778eb2b\"\n }\n },\n \"allowed\": \"CREDIT\",\n \"client\": {\n \"id\": \"589acd9ecb3cd400fa75ac06\",\n \"name\": \"SynapseFI\"\n },\n \"extra\": {\n \"note\": \"PHtSnrzspe\",\n \"other\": {},\n \"supp_id\": \"xx123c\"\n },\n \"info\": {\n \"agreements\": [\n {\n \"type\": \"LOAN_AGREEMENT\",\n \"url\": \"https://cdn.synapsepay.com/uploads/2018/10/03/QY8bTer4vBhixuXqCMRg0nzEyLZfp2GA0NmHdUloJwsDWIV67a.pdf\"\n }\n ],\n \"balance\": {\n \"amount\": -500.2,\n \"currency\": \"USD\"\n },\n \"credit_limit\": {\n \"amount\": 500.2,\n \"currency\": \"USD\"\n },\n \"disbursement_node_id\": \"5bb4ea879a835600b57fb1c2\",\n \"document_id\": \"2a4a5957a3a62aaac1a0dd0edcae96e\",\n \"installment_amount\": 100.2,\n \"interest\": {\n \"apr\": 10,\n \"cap\": 25.01\n },\n \"monthly_withdrawals_remaining\": null,\n \"name_on_account\": \" \",\n \"next_payment\": 1558455244159,\n \"nickname\": \"For a Tesla Model X\",\n \"num_payments\": 6,\n \"payment_node_id\": \"5bb4ea879a835600b57fb1c2\",\n \"schedule\": \"MONTHLY\"\n },\n \"is_active\": true,\n \"timeline\": [\n {\n \"date\": 1538583244159,\n \"note\": \"Node created.\"\n },\n {\n \"date\": 1538584734128,\n \"note\": \"next_payment updated.\"\n },\n {\n \"date\": 1538584797881,\n \"note\": \"next_payment updated.\"\n },\n {\n \"date\": 1538584965843,\n \"note\": \"payment_node_id updated.\"\n }\n ],\n \"type\": \"LOAN-US\",\n \"user_id\": \"5bb4ea77aadcf0361a902e93\"\n}", "language": "json" } ] } [/block]