{"_id":"594e75b7a71a3d00531d5015","project":"54e405191e51932d006abc39","version":{"_id":"55fa37c88065a10d004e5bb6","project":"54e405191e51932d006abc39","__v":10,"createdAt":"2015-09-17T03:47:20.956Z","releaseDate":"2015-09-17T03:47:20.956Z","categories":["55fa37ca8065a10d004e5bb7","55fa37ca8065a10d004e5bb8","55fa37ca8065a10d004e5bb9","55fa37ca8065a10d004e5bba","55fca6bf34ae7c0d00ab8ea0","55ff80fd9e7ccf0d000a1d93","560220af7435de0d00fabd0d","56107f21bb9d920d00303e70","563e184077681a0d00d96a02","56fafc6596ec7e0e002ac85f","5915e54f7c2c552d008b8549","59499fcd64b5f5002690bbc1","59c451b7772699001c0f1df1"],"is_deprecated":false,"is_hidden":false,"is_beta":false,"is_stable":true,"codename":"REST V3","version_clean":"3.1.0","version":"3.1"},"category":{"_id":"55ff80fd9e7ccf0d000a1d93","project":"54e405191e51932d006abc39","__v":6,"pages":["55ff8db80e2b090d0086335f","56107fd153dea90d001ecb62","56108055bb9d920d00303e71","5610818bbb9d920d00303e73","563e1ed31347cf0d004182c3","563e1f78d6db8d17008389af"],"version":"55fa37c88065a10d004e5bb6","sync":{"url":"","isSync":false},"reference":true,"createdAt":"2015-09-21T04:01:01.927Z","from_sync":false,"order":6,"slug":"transactions","title":"Transactions"},"user":"54e4044e8ef7552300409dcb","__v":1,"parentDoc":null,"updates":[],"next":{"pages":[],"description":""},"createdAt":"2017-06-24T14:22:47.277Z","link_external":false,"link_url":"","githubsync":"","sync_unique":"","hidden":false,"api":{"method":"get","examples":{"codes":[{"name":"","code":"GET /v3.1/users/594e6da41acea2002e666987/trans HTTP/1.1\nHost: uat-api.synapsefi.com\nX-SP-USER-IP: 127.0.0.1\nX-SP-USER: oauth_fyBaT5kswdlme0xQI6gSCPYKDG1Zrv8Ftj9NboJc|e83cf6ddcf778e37bfe3d48fc78a6502062fc","language":"http"}]},"settings":"","results":{"codes":[{"status":200,"language":"json","code":"{\n    \"error_code\": \"0\",\n    \"http_code\": \"200\",\n    \"limit\": 20,\n    \"page\": 1,\n    \"page_count\": 1,\n    \"success\": true,\n    \"trans\": [\n        {\n            \"_id\": \"594e712a4599e8002fe62e45\",\n            \"_links\": {\n                \"self\": {\n                    \"href\": \"https://uat-api.synapsefi.com/v3.1/users/594e6da41acea2002e666987/nodes/594e6e6c12e17a002f2e39e4/trans/594e712a4599e8002fe62e45\"\n                }\n            },\n            \"_v\": 2,\n            \"amount\": {\n                \"amount\": 20.1,\n                \"currency\": \"USD\"\n            },\n            \"client\": {\n                \"id\": \"589acd9ecb3cd400fa75ac06\",\n                \"name\": \"SynapseFI\"\n            },\n            \"extra\": {\n                \"created_on\": 1498313002763,\n                \"ip\": \"192.168.0.1\",\n                \"latlon\": \"0,0\",\n                \"note\": \"Test transaction\",\n                \"process_on\": 1498313002763,\n                \"supp_id\": \"1122444\"\n            },\n            \"fees\": [\n                {\n                    \"fee\": 0.2,\n                    \"note\": \"Synapse Facilitator Fee\",\n                    \"to\": {\n                        \"id\": \"55b3f8c686c2732b4c4e9df6\"\n                    }\n                }\n            ],\n            \"from\": {\n                \"id\": \"594e6e6c12e17a002f2e39e4\",\n                \"nickname\": \"Fake Account\",\n                \"type\": \"ACH-US\",\n                \"user\": {\n                    \"_id\": \"594e6da41acea2002e666987\",\n                    \"legal_names\": [\n                        \"Test User\"\n                    ]\n                }\n            },\n            \"recent_status\": {\n                \"date\": 1498313002763,\n                \"note\": \"Transaction Created.\",\n                \"status\": \"CREATED\",\n                \"status_id\": \"1\"\n            },\n            \"timeline\": [\n                {\n                    \"date\": 1498313002763,\n                    \"note\": \"Transaction Created.\",\n                    \"status\": \"CREATED\",\n                    \"status_id\": \"1\"\n                }\n            ],\n            \"to\": {\n                \"id\": \"594e6e6c12e17a002f2e39e4\",\n                \"nickname\": \"Fake Account\",\n                \"type\": \"ACH-US\",\n                \"user\": {\n                    \"_id\": \"594e6da41acea2002e666987\",\n                    \"legal_names\": [\n                        \"Test User\"\n                    ]\n                }\n            }\n        },\n        {\n        \t...\n        },\n        ...\n    ],\n    \"trans_count\": 4\n}","name":""}]},"auth":"required","params":[{"_id":"55728c20e42c040d00d68a9f","ref":"","in":"query","required":false,"desc":"Page number","default":"","type":"int","name":"page"},{"_id":"560c79eee0ec340d00899586","ref":"","in":"query","required":false,"desc":"Number of Transactions per page","default":"20","type":"int","name":"per_page"},{"_id":"594e70df283bee0035df6b9d","ref":"","in":"path","required":true,"desc":"ID of user","default":"","type":"string","name":"user_id"}],"url":"/v3.1/users/:user_id/trans"},"isReference":true,"order":2,"body":"[block:api-header]\n{}\n[/block]\n## Pagination\n\nResponses are paginated, so to move through pages, add page as a GET parameter. Here is an example\n[block:code]\n{\n  \"codes\": [\n    {\n      \"code\": \"GET /v3.1/users/594e6da41acea2002e666987/trans?page=2 HTTP/1.1\\nHost: uat-api.synapsefi.com\\nX-SP-USER-IP: 127.0.0.1\\nX-SP-USER: oauth_fyBaT5kswdlme0xQI6gSCPYKDG1Zrv8Ftj9NboJc|e83cf6ddcf778e37bfe3d48fc78a6502062fc\",\n      \"language\": \"http\"\n    }\n  ]\n}\n[/block]","excerpt":"","slug":"all-user-transactions","type":"endpoint","title":"All User Transactions"}

getAll User Transactions


Definition

{{ api_url }}{{ page_api_url }}

Parameters

Path Params

user_id:
required
string
ID of user

Query Params

page:
integer
Page number
per_page:
integer20
Number of Transactions per page

Examples


Result Format


Documentation

[block:api-header] {} [/block] ## Pagination Responses are paginated, so to move through pages, add page as a GET parameter. Here is an example [block:code] { "codes": [ { "code": "GET /v3.1/users/594e6da41acea2002e666987/trans?page=2 HTTP/1.1\nHost: uat-api.synapsefi.com\nX-SP-USER-IP: 127.0.0.1\nX-SP-USER: oauth_fyBaT5kswdlme0xQI6gSCPYKDG1Zrv8Ftj9NboJc|e83cf6ddcf778e37bfe3d48fc78a6502062fc", "language": "http" } ] } [/block]