GET api/transaction/GetTransactionsByUserId/{id}
Request Information
URI Parameters
| Name | Description | Type | Additional information |
|---|---|---|---|
| id | integer |
Required |
Body Parameters
None.
Response Information
Resource Description
Collection of TransactionsViewModel| Name | Description | Type | Additional information |
|---|---|---|---|
| transaction_id | string |
None. |
|
| user_id | integer |
None. |
|
| connectsPackagesId | integer |
None. |
|
| Currency_code | string |
None. |
|
| Amount | decimal number |
None. |
|
| createdDate | date |
None. |
|
| Tid | integer |
None. |
|
| discountedAmount | decimal number |
None. |
|
| actualAmount | integer |
None. |
|
| name | string |
None. |
|
| numberOfConnects | integer |
None. |
Response Formats
application/json, text/json
Sample:
[
{
"transaction_id": "sample string 1",
"user_id": 1,
"connectsPackagesId": 1,
"Currency_code": "sample string 2",
"Amount": 3.1,
"createdDate": "2025-11-30T23:03:31.5438341+00:00",
"Tid": 4,
"discountedAmount": 1.1,
"actualAmount": 1,
"name": "sample string 5",
"numberOfConnects": 6
},
{
"transaction_id": "sample string 1",
"user_id": 1,
"connectsPackagesId": 1,
"Currency_code": "sample string 2",
"Amount": 3.1,
"createdDate": "2025-11-30T23:03:31.5438341+00:00",
"Tid": 4,
"discountedAmount": 1.1,
"actualAmount": 1,
"name": "sample string 5",
"numberOfConnects": 6
}
]
application/xml, text/xml
Sample:
<ArrayOfTransactionsViewModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/asanRishta.Models.ViewModels.transactions">
<TransactionsViewModel>
<Amount>3.1</Amount>
<Currency_code>sample string 2</Currency_code>
<Tid>4</Tid>
<actualAmount>1</actualAmount>
<connectsPackagesId>1</connectsPackagesId>
<createdDate>2025-11-30T23:03:31.5438341+00:00</createdDate>
<discountedAmount>1.1</discountedAmount>
<name>sample string 5</name>
<numberOfConnects>6</numberOfConnects>
<transaction_id>sample string 1</transaction_id>
<user_id>1</user_id>
</TransactionsViewModel>
<TransactionsViewModel>
<Amount>3.1</Amount>
<Currency_code>sample string 2</Currency_code>
<Tid>4</Tid>
<actualAmount>1</actualAmount>
<connectsPackagesId>1</connectsPackagesId>
<createdDate>2025-11-30T23:03:31.5438341+00:00</createdDate>
<discountedAmount>1.1</discountedAmount>
<name>sample string 5</name>
<numberOfConnects>6</numberOfConnects>
<transaction_id>sample string 1</transaction_id>
<user_id>1</user_id>
</TransactionsViewModel>
</ArrayOfTransactionsViewModel>