Fetch transaction details

Fetching information about a transaction is straightforward using the GET request.

Only the buyer, seller or broker in the transaction can see details about a transaction.

Using the transaction id, users can fetch the details of a transaction like this:

post
fetch transaction by id

https://api.vesicash.com/v1/transactions/listById/{transaction_id}
Request
Response
Request
Headers
Accepts
required
string
application/json
V-PRIVATE-KEY
required
string
your vesicash private key with which you authorize users.
Query Parameters
transaction_id
required
string
id of the transaction
Response
200: OK
{
"status": "ok",
"code": 200,
"message": "success",
"data": {
"transaction": {
"transaction_id": "ShNlIros44DPzjnPdRbA",
"parties_id": "DvmrcWLCugLQ32f4oMqA",
"title": "iPhone X Sale",
"type": "product",
"description": "A new asle",
"status": "Draft",
"inspection_period": "1 day",
"due_date": 1570271503,
"shipping_fee": null,
"currency": "NGN",
"updated_at": "2019-09-25 10:31:43",
"created_at": "2019-09-25 10:31:43",
"id": 51,
"products": [
{
"transaction_id": "ShNlIros44DPzjnPdRbA",
"product_transaction_id": "wZt0exYq5qcrriQWLjsD",
"title": "iphone x 64gb",
"photo": "",
"amount": 5000,
"quantity": 2,
"updated_at": "2019-09-25 10:31:43",
"created_at": "2019-09-25 10:31:43",
"id": 33
},
{
"transaction_id": "ShNlIros44DPzjnPdRbA",
"product_transaction_id": "wZt0exYq5qcrriQWLjsD",
"title": "iphone x 256gb",
"photo": "",
"amount": 10000,
"quantity": 2,
"updated_at": "2019-09-25 10:31:43",
"created_at": "2019-09-25 10:31:43",
"id": 34
}
],
"milestones": [],
"broker": [],
"parties": [
{
"transaction_id": "ShNlIros44DPzjnPdRbA",
"transaction_parties_id": "DvmrcWLCugLQ32f4oMqA",
"account_id": 5841206525,
"role": "buyer",
"created_at": "2019-09-25T10:31:43.557330Z",
"updated_at": "2019-09-25T10:31:43.557434Z"
},
{
"transaction_id": "ShNlIros44DPzjnPdRbA",
"transaction_parties_id": "VR3IAYprBva2wT4jAphi",
"account_id": 9432695230,
"role": "seller",
"created_at": "2019-09-25T10:31:43.557538Z",
"updated_at": "2019-09-25T10:31:43.557551Z"
},
{
"transaction_id": "ShNlIros44DPzjnPdRbA",
"transaction_parties_id": "egZ2FNur4Ib8q2yVCEYI",
"account_id": 5841206525,
"role": "charge_bearer",
"created_at": "2019-09-25T10:31:43.557600Z",
"updated_at": "2019-09-25T10:31:43.558259Z"
}
]
}
}
}

For example, to fetch a transaction that has an id ShNlIros44DPzjnPdRbA, simply make a post request to the endpoint like this:

https://api.vesicash.com/v1/transactions/listById/ShNlIros44DPzjnPdRbA