Skip to content

Transactions

Transactions are a read-only representation of banking operations on a Wallet.

Thumbs icon

Best practice – Use the Operations feature

If you are using Treezor Connect, the Operations endpoint supersedes this one.

Key attributes

AttributeTypeDescription
transactionIdintegerThe unique identifier of the transaction.
createdDatestringThe date and time at which the transaction was created.
valueDatestringThe date on which the payment was applied.
executionDatestringThe date on which the transaction was executed.
transactionTypestringThe type of the transaction. See Transaction Types list.
namestringThe name of the transaction.
foreignIdinteger
walletDebitBalancestringThe balance of the debited Wallet (if any).
walletCreditBalancestringThe balance of the credited Wallet (if any).
walletDebitIdintegerThe unique identifier of the debited Wallet (if any).
walletCreditIdintegerThe unique identifier of the credited Wallet (if any).
amountstringThe amount of the transaction.
currencystringThe currency of the transaction (format: ISO-4217).

Transaction Types (transactionType)

Below the list of possible values for the transactionType attribute.

IdNameAdditional information
1PayinTransaction from an external account into a Treezor Wallet.
2PayoutTransaction from a Wallet to an external account.
3TransferWallet-to-Wallet transfer.
5Payin RefundRefund of a past transaction made into a Treezor Wallet.
10Card TransactionLearn more in the Card transactions section of the documentation.
11Payout RefundRefund of a past transaction made from a Wallet to an external account.
13Payin AcquiringTransaction capturing funds from a third-party card to credit a Treezor Wallet. Learn more.
14Payin Refund AcquiringRefund of a card top-up. Learn more.
15SCTR InstReceived SEPA Instant Credit Transfer
17Payin SCT Instant RecallLearn more in the Recalls & RROs article.
18Payout SCT Instant EmitEmitted SEPA Instant Credit Transfer
19Payin SCT Instant Emit RecallLearn more in the Recalls & RROs article.
20Credit Transfer ReturnedSCT Return.
21Check PayinCheck cashing
22SDDEEmitted SEPA Direct Debit
23SDDRReceived SEPA Direct Debit
24SDDR ReversalSDDR refused after effective date.
25SCTR RecallLearn more in the Recalls & RROs article.
26Check RefundRefund of a check cashing.
27SCTRReceived SEPA Credit Transfer

Structure

json
{
	"transactionId": 0,
	"walletDebitId": 0,
	"walletCreditId": 0,
	"transactionType": "string",
	"foreignId": 0,
	"name": "string",
	"description": "string",
	"valueDate": "string",
	"executionDate": "string",
	"amount": "string",
	"walletDebitBalance": "string",
	"walletCreditBalance": "string",
	"currency": "string",
	"createdDate": "string",
	"totalRows": 0
}

Retrieving transactions

The following example searches for Payin Transactions per userId.

bash
curl -X GET {baseUrl}/v1/transactions?userId={userId}&transactionType=Payin \
	--header 'Authorization: Bearer {accessToken}' \
	--header 'Content-Type: application/json'

Returns an array of Transaction objects.

json
{
    "transactions": [
        {
            "transactionId": 4823484,
            "walletDebitId": 9,
            "walletCreditId": 2540896,
            "transactionType": "Payin",
            "foreignId": "1234626",
            "name": "1234626",
            "description": "Payin bank transfer",
            "valueDate": "2023-12-21",
            "executionDate": "2023-12-21",
            "amount": "101.25",
            "walletDebitBalance": "0.00",
            "walletCreditBalance": "50203.75",
            "currency": "EUR",
            "createdDate": "2023-12-21 12:11:34",
            "totalRows": "2"
        },
        {
            "transactionId": 4823455,
            "walletDebitId": 9,
            "walletCreditId": 2540896,
            "transactionType": "Payin",
            "foreignId": "1234606",
            "name": "1234606",
            "description": "Payin bank transfer",
            "valueDate": "2023-12-21",
            "executionDate": "2023-12-21",
            "amount": "101.25",
            "walletDebitBalance": "0.00",
            "walletCreditBalance": "50102.50",
            "currency": "EUR",
            "createdDate": "2023-12-21 12:05:40",
            "totalRows": ""
        }
	]
}

Retrieving a transaction

bash
curl -X GET {baseUrl}/v1/transactions/{transactionId} \
	--header 'Authorization: Bearer {accessToken}' \
	--header 'Content-Type: application/json' \

Returns the corresponding Transaction object.

json
{
    "transactions": [
        {
            "transactionId": 4823455,
            "walletDebitId": 9,
            "walletCreditId": 2540896,
            "transactionType": "Payin",
            "foreignId": "1234606",
            "name": "1234606",
            "description": "Paiement ",
            "valueDate": "2023-12-21",
            "executionDate": "2023-12-21",
            "amount": "101.25",
            "walletDebitBalance": "0.00",
            "walletCreditBalance": "50102.50",
            "currency": "EUR",
            "createdDate": "2023-12-21 12:05:40",
            "totalRows": "1"
        }
    ]
}

Endpoints

EndpointScope
/v1/transactions
Search for transactions
read_write
/v1/transactions/{transactionId}
Retrieve a transaction
read_write