Change Payment Node

Modify the payment account

To change the payment node, you just need to do a PATCH on the node. The payment_node_id can be the node ID of the end user or your platform's if you are using a third-party for collecting loan payments.

API ENDPOINT

https://uat-api.synapsefi.com/v3.1/users/:user_id/nodes/:node_id

PATH PARAMETERS

user_id :
string

The user ID of the user

BODY PARAMETERS

info.payment_node_id:
string

node ID of where we will collect payments from

EXAMPLE REQUEST

PATCH /v3.1/users/5bee3049baabfc00ab17175b/nodes/5bee30ee192dde00ac623158 HTTP/1.1
Host: https://uat-api.synapsefi.com
X-SP-USER-IP: 255.127.79.76
X-SP-USER: oauth_s7D2JY9KwA6TgcpdB1kvHQoaEe5qULRVmfnGIb0x|e83cf6ddcf778e37bfe3d48fc78a6502062fc
Content-Type: application/json

{
  "payment_node_id":"5bee3cee192dde00ac62326e"
}
from_node = "5bee30ee192dde00ac623158"
body = {
  "payment_node_id":"5bee3cee192dde00ac62326e"
}

user.update_node(from_node, body)
const loanNodeID = "5bee30ee192dde00ac623158";
const body = {
  "payment_node_id":"5bee3cee192dde00ac62326e"
};

user.updateNode(loanNodeID, body);
from_node = "5bee30ee192dde00ac623158"
body = {
  "payment_node_id":"5bee3cee192dde00ac62326e"
}

user.update_node(node_id: from_node, payload: body)
$nodeid = '5bee30ee192dde00ac623158';
$body = (object)[
   "payment_node_id" => "5bee114e192dde00ac622d8f"
];
$user->update_node($nodeid, $body);
nodeID := "5bee30ee192dde00ac623158"
body := `{
  "payment_node_id":"5bee3cee192dde00ac62326e"
}`

data, err := user.UpdateNode(nodeID, body)

EXAMPLE RESPONSE

{
    "_id": "5bee30ee192dde00ac623158",
    "_links": {
        "self": {
            "href": "https://uat-api.synapsefi.com/v3.1/users/5bee3049baabfc00ab17175b/nodes/5bee30ee192dde00ac623158"
        }
    },
    "allowed": "CREDIT-AND-DEBIT",
    "client": {
        "id": "589acd9ecb3cd400fa75ac06",
        "name": "SynapseFI"
    },
    "extra": {
        "note": null,
        "other": {},
        "supp_id": "xx123c"
    },
    "info": {
        "agreements": [
            {
                "type": "LOAN_AGREEMENT",
                "url": "https://cdn.synapsepay.com/uploads/2018/11/16/ZJM6d8YTAVxLi1o7QcgWCNkKShFX4UvO2lDaImwByn0epH3trq.pdf"
            }
        ],
        "balance": {
            "amount": 0,
            "currency": "USD"
        },
        "credit_limit": {
            "amount": 500.2,
            "currency": "USD"
        },
        "document_id": "2a4a5957a3a62aaac1a0dd0edcae96ea2cdee688ec6337b20745eed8869e3ac8",
        "interest": {
            "accrued": 0,
            "apr": 10,
            "cap": 0.05
        },
        "loan_type": "REVOLVING",
        "name_on_account": " ",
        "nickname": "My Loan",
        "schedule": "MONTHLY"
    },
    "is_active": true,
    "timeline": [
        {
            "date": 1542336743357,
            "note": "Node created."
        },
        {
            "date": 1542340809245,
            "note": "payment_node_id updated."
        }
    ],
    "type": "LOAN-US",
    "user_id": "5bee3049baabfc00ab17175b"
}

Change Payment Node


Modify the payment account

Suggested Edits are limited on API Reference Pages

You can only suggest edits to Markdown body content, but not to the API spec.