{"_id":"59f79e3c584eb200345ceb5f","project":"59f79e3c584eb200345ceafc","user":"54e4044e8ef7552300409dcb","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":"59f79e3c584eb200345ceb3c","version":"59f79e3c584eb200345ceaff","project":"59f79e3c584eb200345ceafc","__v":0,"sync":{"url":"","isSync":false},"reference":true,"createdAt":"2015-09-19T00:05:19.904Z","from_sync":false,"order":5,"slug":"nodes","title":"Nodes"},"parentDoc":null,"__v":1,"githubsync":"","updates":[],"next":{"pages":[],"description":""},"createdAt":"2015-09-21T01:58:45.978Z","link_external":false,"link_url":"","sync_unique":"","hidden":false,"api":{"results":{"codes":[{"code":"{\n    \"error_code\": \"0\",\n    \"http_code\": \"200\",\n    \"nodes\": [\n        {\n            \"_id\": \"573a721286c2731adf3aca07\",\n            \"_links\": {\n                \"self\": {\n                    \"href\": \"https://sandbox.synapsepay.com/api/3/users/5739ea6386c27360899fd445/nodes/573a721286c2731adf3aca07\"\n                }\n            },\n            \"allowed\": \"CREDIT-AND-DEBIT\",\n            \"extra\": {\n                \"supp_id\": \"123sa\"\n            },\n            \"info\": {\n                \"balance\": {\n                    \"amount\": 0,\n                    \"currency\": \"GBP\"\n                },\n                \"name_on_account\": \"Test User\",\n                \"nickname\": \"GBP Node\"\n            },\n            \"is_active\": true,\n            \"type\": \"IOU\"\n        }\n    ],\n    \"success\": true\n}","language":"json","status":200,"name":""}]},"settings":"","examples":{"codes":[{"code":"curl -X POST -H \"X-SP-USER-IP: 127.0.0.1\" -H \"X-SP-USER: oauth_dc712ffaee2911e6bc5fd22ede5c1c8d|e716990e50b67a1177736960b6357524b22090ccab093d068b3d7a18dbde3f4c\" -H \"Content-Type: application/json\"  -d '{\n  \"type\": \"IOU\",\n  \"info\":{\n      \"nickname\":\"GBP Node\",\n      \"balance\":{\n          \"currency\":\"GBP\"\n      }\n    },\n  \"extra\": {\n    \"supp_id\": \"ABC124\"\n  },\n  \"is_active\": true\n}' \"https://sandbox.synapsefi.com/api/3/users/589b5bd084f2d0001ef562fc/nodes\"","name":"","language":"curl"}]},"method":"post","auth":"required","params":[{"_id":"5573b11e91ce6e190023b76a","ref":"","in":"body","required":true,"desc":"Type of node you wish to add","default":"","type":"string","name":"type"},{"_id":"55fa4d6f764f5021009506c9","ref":"","in":"body","required":true,"desc":"Nickname for the node","default":"","type":"string","name":"info.nickname"},{"_id":"55ff64856932a00d00ba7a2d","ref":"","in":"body","required":true,"desc":"Currency of the Node","default":"","type":"string","name":"info.balance.currency"},{"_id":"55ff5907748eb30d008a1ed7","ref":"","in":"body","required":false,"desc":"Any ID you wish to register to the node","default":"","type":"string","name":"extra.supp_id"},{"_id":"58fe93d559079e190092fa4c","ref":"","in":"path","required":true,"desc":"The user ID of the user you wish to add the IOU node under","default":"","type":"string","name":"user_id"},{"_id":"594e68178564f2004b6b129c","ref":"","in":"body","required":false,"desc":"If the node is indexed or marked deleted","default":"","type":"boolean","name":"is_active"}],"url":"/v3.1/users/:user_id/nodes"},"isReference":true,"order":32,"body":"","excerpt":"Create an IOU node","slug":"add-iou-node","type":"endpoint","title":"IOU"}

postIOU

Create an IOU node

Definition

{{ api_url }}{{ page_api_url }}

Parameters

Path Params

user_id:
required
string
The user ID of the user you wish to add the IOU node under

Body Params

type:
required
string
Type of node you wish to add
info.nickname:
required
string
Nickname for the node
info.balance.currency:
required
string
Currency of the Node
extra.supp_id:
string
Any ID you wish to register to the node
is_active:
boolean
If the node is indexed or marked deleted

Examples


Result Format