View All User Transactions

Get all transactions for a user

user_id :
required
string

ID of user

QUERY PARAMETER

page :
integer

Page number

per_page :
integer 20

Number of Transactions per page

EXAMPLE REQUEST

GET /v3.1/users/594e6da41acea2002e666987/trans HTTP/1.1
Host: uat-api.synapsefi.com
X-SP-USER-IP: 127.0.0.1
X-SP-USER: oauth_fyBaT5kswdlme0xQI6gSCPYKDG1Zrv8Ftj9NboJc|e83cf6ddcf778e37bfe3d48fc78a6502062fc
user.get_all_trans()
user.getUserTransactions();
user.get_user_transactions()
$page = 1;
$per_page = 1;

$user->get_all_transactions( $page, $per_page );
nodeID := "594e606212e17a002f2e3251"

data, err := user.GetTransactions(nodeID)

EXAMPLE RESPONSE

{
    "error_code": "0",
    "http_code": "200",
    "limit": 20,
    "page": 1,
    "page_count": 1,
    "success": true,
    "trans": [
        {
            "_id": "594e712a4599e8002fe62e45",
            "_links": {
                "self": {
                    "href": "https://uat-api.synapsefi.com/v3.1/users/594e6da41acea2002e666987/nodes/594e6e6c12e17a002f2e39e4/trans/594e712a4599e8002fe62e45"
                }
            },
            "_v": 2,
            "amount": {
                "amount": 20.1,
                "currency": "USD"
            },
            "client": {
                "id": "589acd9ecb3cd400fa75ac06",
                "name": "SynapseFI"
            },
            "extra": {
                "created_on": 1498313002763,
                "ip": "192.168.0.1",
                "latlon": "0,0",
                "note": "Test transaction",
                "process_on": 1498313002763,
                "supp_id": "1122444"
            },
            "fees": [
                {
                    "fee": 0.2,
                    "note": "Synapse Facilitator Fee",
                    "to": {
                        "id": "55b3f8c686c2732b4c4e9df6"
                    }
                }
            ],
            "from": {
                "id": "594e6e6c12e17a002f2e39e4",
                "nickname": "Fake Account",
                "type": "ACH-US",
                "user": {
                    "_id": "594e6da41acea2002e666987",
                    "legal_names": [
                        "Test User"
                    ]
                }
            },
            "recent_status": {
                "date": 1498313002763,
                "note": "Transaction Created.",
                "status": "CREATED",
                "status_id": "1"
            },
            "timeline": [
                {
                    "date": 1498313002763,
                    "note": "Transaction Created.",
                    "status": "CREATED",
                    "status_id": "1"
                }
            ],
            "to": {
                "id": "594e6e6c12e17a002f2e39e4",
                "nickname": "Fake Account",
                "type": "ACH-US",
                "user": {
                    "_id": "594e6da41acea2002e666987",
                    "legal_names": [
                        "Test User"
                    ]
                }
            }
        },
        {
          ...
        },
        ...
    ],
    "trans_count": 4
}

PAGINATION

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

GET /v3.1/users/594e6da41acea2002e666987/trans?page=2 HTTP/1.1
Host: uat-api.synapsefi.com
X-SP-USER-IP: 127.0.0.1
X-SP-USER: oauth_fyBaT5kswdlme0xQI6gSCPYKDG1Zrv8Ftj9NboJc|e83cf6ddcf778e37bfe3d48fc78a6502062fc