Comment on Transaction Status

Create a note for the transaction

user_id :
required
string

ID of user

node_id :
required
string

ID of node

trans_id :
required
string

ID of transaction

BODY PARAMETER

comment:
required
string

Comment you wish to add for the transaction status

EXAMPLE REQUEST

PATCH /v3.1/users/594e6da41acea2002e666987/nodes/594e6e6c12e17a002f2e39e4/trans/594e72124599e8002fe62e4f HTTP/1.1
Host: uat-api.synapsefi.com
X-SP-USER-IP: 127.0.0.1
X-SP-USER: oauth_fyBaT5kswdlme0xQI6gSCPYKDG1Zrv8Ftj9NboJc|e83cf6ddcf778e37bfe3d48fc78a6502062fc
Content-Type: application/json

{
  "comment": "add comment!"
}
node_id = '594e606212e17a002f2e3251'
trans_id = '594e72124599e8002fe62e4f'

user.comment_status(node_id, trans_id, 'Pending verification...')
const nodeID = '594e606212e17a002f2e3251';
const trxnID = '594e72124599e8002fe62e4f';
const body = {
  "comment": "add comment!"
};

user.commentOnStatus(nodeID, trxnID, body);
node_id = '594e606212e17a002f2e3251'
trans_id = '594e72124599e8002fe62e4f'
body = 'Pending verification...'

user.comment_transaction(node_id: node_id, trans_id: trans_id, payload: body)
$nodeid = '594e606212e17a002f2e3251';
$transid = '594e72124599e8002fe62e4f';
$body = (object)[
   "comment" => "add comment"
];
$user->comment_trans( $nodeid, $transid, $body );
nodeID := "594e606212e17a002f2e3251"
transID := "594e72124599e8002fe62e4f"

data, err := user.CommentOnTransactionStatus(nodeID, transID, "Pending verification...")

EXAMPLE RESPONSE

{
    "_id": "594e72124599e8002fe62e4f",
    "_links": {
        "self": {
            "href": "https://uat-api.synapsefi.com/v3.1/users/594e6da41acea2002e666987/nodes/594e6e6c12e17a002f2e39e4/trans/594e72124599e8002fe62e4f"
        }
    },
    "_v": 2,
    "amount": {
        "amount": 20.1,
        "currency": "USD"
    },
    "client": {
        "id": "589acd9ecb3cd400fa75ac06",
        "name": "SynapseFI"
    },
    "extra": {
        "created_on": 1498313234838,
        "ip": "192.168.0.1",
        "latlon": "0,0",
        "note": "",
        "process_on": 1498313234838,
        "supp_id": ""
    },
    "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": 1498313234838,
        "note": "Transaction Created..add comment!",
        "status": "CREATED",
        "status_id": "1"
    },
    "timeline": [
        {
            "date": 1498313234838,
            "note": "Transaction Created..add comment!",
            "status": "CREATED",
            "status_id": "1"
        }
    ],
    "to": {
        "id": "594e6e6c12e17a002f2e39e4",
        "nickname": "Fake Account",
        "type": "ACH-US",
        "user": {
            "_id": "594e6da41acea2002e666987",
            "legal_names": [
                "Test User"
            ]
        }
    }
}