UserHistory-GetHistory-v3: Difference between revisions
Jump to navigation
Jump to search
Line 83: | Line 83: | ||
|- | |- | ||
| IsInProgress || bool || This flag indicates that the transaction is not in the final state. | | IsInProgress || bool || This flag indicates that the transaction is not in the final state. | ||
|- | |||
| BalanceChangeType || [[BalanceChangeType]] || Indicates the direction of change regarding the account's available balance.<br> | |||
* '''NoChange''': the account's balance did not change after the transaction | |||
* '''Credit''': the account's balance has increased after the transaction | |||
* '''Debit''': the account's balance has decreased after the transaction<br> | |||
''Note: this property is only available in the TEST environment at the moment'' | |||
|- | |- | ||
|} | |} |
Revision as of 11:04, 27 March 2023
Barion API: transaction history
GET | /v3/UserHistory/GetHistory |
---|
The /v3/UserHistory/GetHistory
API endpoint is used to query the transaction history from the Barion system for the authenticated wallet.
Prerequisites before use:
IMPORTANT
This API should not be used for reconciliation, use the statement API instead.
IMPORTANT
The item type of history elements does not correlate with the type of transactions exported through GUI or downloaded with statement API.
Authentication
Input properties
The input properties should be defined in the query string.
Property name | Property type | Limitations and constraints | Description |
---|---|---|---|
LastVisibleItemId | Guid |
|
The identifier of the oldest transaction. Only transactions before the defined transaction will be included in the response. |
LastRequestTime | DateTime |
|
The exact time of the last request. Only transactions after the defined request time will be included in the response. |
Limit | int |
|
The expected number of transactions in the response. |
Currency | string |
Accepted values:
|
The currency of the transaction. If the currency is defined, then only transactions in the same currency will be included in the response. |
Output properties
Property name | Property type | Description |
---|---|---|
Id | Guid | The identifier of the transaction. |
Type | HistoryItemType | The type of the transaction. |
HappenedAtUtc | DateTime | The exact time when the transaction happened. |
ConcurrencyOrder | int | The order of the transaction when more than one transaction happened at the same time. When only one transaction happened at a given timestamp, this value can be ignored. |
SourceAccount | UserHistoryParticipant | The user who initiated the transaction or from whom the money originated. |
TargetAccount | UserHistoryParticipant | The user who will receive the amount of the transaction. |
Amount | decimal | The amount of the transaction. |
Currency | string | The 3-character ISO 4217 currency code of the payment. |
Description | string | Description of the transaction. Max: 640 characters. |
IsInProgress | bool | This flag indicates that the transaction is not in the final state. |
BalanceChangeType | BalanceChangeType | Indicates the direction of change regarding the account's available balance.
Note: this property is only available in the TEST environment at the moment |