View All Subnets

Get the account and routing numbers on the account

This call allows you to view all of the subnets, issued account and routing numbers, associated with the node. Use this call if you need to locate the subnets and subnet details issued on the Synapse node.

API ENDPOINT

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

PATH PARAMETER

user_id :
required
string

ID of user

node_id :
required
string

ID of node

QUERY PARAMETER

page :
integer

Page number

per_page :
integer 20

Number of Transactions per page

EXAMPLE REQUEST

GET /v3.1/users/59c9b3ae89ec34002e1b3c3f/nodes/59c9b3b96d7d8a002f717c3c/subnets HTTP/1.1
Host: uat-api.synapsefi.com
X-SP-USER-IP: 127.0.0.1
X-SP-USER: oauth_tIX6wCyfuZ7r2OdFjYn1K5xDkWgU0VhqQlNSEPBi|e83cf6ddcf778e37bfe3d48fc78a6502062fc
Content-Type: application/json
node_id= "59c9b3b96d7d8a002f717c3c"
user.get_all_subnets(node_id, page=4, per_page=10)
const nodeID = '59c9b3b96d7d8a002f717c3c';

user.getAllSubnets(nodeID);
node_id= "59c9b3b96d7d8a002f717c3c"
user.get_all_subnets(node_id: node_id)
$nodeid = '59c9b3b96d7d8a002f717c3c';
$page=null;
$per_page=null;
$user->get_subnets($nodeid, $page, $per_page);
nodeID := "594e606212e17a002f2e3251"

data, err := user.GetNodeSubnets(nodeID)

EXAMPLE RESPONSE

{
    "error_code": "0",
    "http_code": "200",
    "limit": 20,
    "page": 1,
    "page_count": 1,
    "subnets": [
        {
            "_id": "59c9b3c3a82e520029a105a0",
            "_links": {
                "self": {
                    "href": "https://uat-api.synapsefi.com/v3.1/users/59c9b3ae89ec34002e1b3c3f/nodes/59c9b3b96d7d8a002f717c3c/subnets/59c9b3c3a82e520029a105a0"
                }
            },
          	"account_class": "CHECKING",
            "account_num": "902387862804533",
            "allowed": "CREDIT",
            "client": {
                "id": "589acd9ecb3cd400fa75ac06",
                "name": "SynapseFI"
            },
            "nickname": "Test AC/RT",
            "node_id": "59c9b3b96d7d8a002f717c3c",
            "routing_num": {
                "ach": "084106768",
                "wire": "084106768"
            },
          	"status": "ACTIVE",
            "user_id": "59c9b3ae89ec34002e1b3c3f"
        },
        {
          ...
        }
    ],
    "subnets_count": 1,
    "success": true
}

Note Responses are paginated, so to move through pages, add page as a GET parameter. Here is an example

GET /v3.1/users/59c9b3ae89ec34002e1b3c3f/nodes/59c9b3b96d7d8a002f717c3c/subnets?page=3 HTTP/1.1
Host: uat-api.synapsefi.com
X-SP-USER-IP: 127.0.0.1
X-SP-USER: oauth_ZXFHEz3ufSeAh8yRKwsN0CLjI4WDm7Qd62aY9pGB|e83cf6ddcf778e37bfe3d48fc78a6502062fc
Content-Type: application/json