Get transaction
get
Authorizations
Path parameters
transaction_idstringRequired
Responses
200
Successful response
application/json
get
GET /api/transactions/{transaction_id} HTTP/1.1
Host: url to be defined
Authorization: YOUR_API_KEY
Accept: */*
200
Successful response
{
"error": {
"code": "040",
"message": "Wrong email or password"
},
"data": {
"transaction": {
"_id": "text",
"admin_user": "text",
"user": "text",
"algorand_transaction": "text",
"transaction_date": "text",
"ganga_txn": "text",
"product_category": "text",
"product_name": "text",
"transaction_value": 1,
"transaction_rating_score": 1,
"transaction_users": [
{
"user_id": "text",
"user_email": "text",
"token_ratio": 1
}
]
}
}
}
The "/api/transactions/{transaction_id}" endpoint is used to retrieve a single transaction by its transaction_id. Access to this endpoint requires an API key with either "partner" or "admin" privileges.
The transaction_id is passed as a path parameter and is a required field. The endpoint returns a JSON object containing the transaction data, if successful. In case of an error, an error object with a code and message is returned. The returned data will contain a single transaction object as per the Transaction schema definition in the API documentation.
Last updated