> For clean Markdown of any page, append .md to the page URL.
> For a complete documentation index, see https://amer.developers.trustly.com/llms.txt.
> For full documentation content, see https://amer.developers.trustly.com/llms-full.txt.
> For AI client integration (Claude Code, Cursor, etc.), connect to the MCP server at https://amer.developers.trustly.com/_mcp/server.

# Retrieve bank and user information

After a user successfully authorizes a transaction, your application often needs to retrieve specific details to display a confirmation screen, visualize the selected bank, or pre-fill checkout forms. Trustly provides the Get Transaction and Get Account Users APIs to fetch this account and identity data.

### Transaction and bank details

To retrieve the current status of a transaction and details about the user's selected financial institution, send a `GET` request to the [Get Transaction](/api-reference/api/transactions/get-transaction) endpoint.

**Endpoint:** `/transactions/{transactionId}`

#### Request

```bash
curl -X GET https://sandbox.trustly.one/api/v1/transactions/1002548448 \
  -u "YOUR_ACCESS_ID:YOUR_ACCESS_KEY"
```

#### Response fields

The following table lists the data returned in the response object, which you can use to display the payment method to your user.

| Field                                                   | Description                                                                  |
| :------------------------------------------------------ | :--------------------------------------------------------------------------- |
| `transaction.payment.account.name`                      | The friendly name of the user's bank account. For example, Adv Plus Banking. |
| `transaction.payment.account.type`                      | The type of account selected. For example, Checking or Savings.              |
| `transaction.payment.account.accountNumber`             | The last four digits of the selected account number.                         |
| `transaction.payment.paymentProvider.name`              | The name of the financial institution.                                       |
| `transaction.payment.paymentProvider.paymentProviderId` | The unique Trustly identifier for the bank.                                  |
| `transaction.statusMessage`                             | The current status of the transaction. For example, Authorized.              |

### Display bank logos and icons

You can use the `paymentProviderId` returned in the response to dynamically generate URLs for the bank's official visual assets.

* **Bank Name:** Display the `payment.paymentProvider.name` text beside the icon or logo.
* **Visuals:** Insert the `paymentProviderId` into the following URL patterns:
  * **Bank Logo:** [https://trustly.one/start/assets/institutions/\{paymentProviderId}.png](https://trustly.one/start/assets/institutions/\{paymentProviderId}.png)
  * **Bank Icon:** [https://trustly.one/start/assets/institutions/icons/\{paymentProviderId}.png](https://trustly.one/start/assets/institutions/icons/\{paymentProviderId}.png)

The following image shows an example checkout UI displaying the retrieved bank logo and account details.

![](https://files.buildwithfern.com/trustly.docs.buildwithfern.com/3e9ccc30ea2678742019f4b9977ef116fdb88ae0dd73193d97df007335d22b0e/docs/assets/north-america/de1b8ec-Payment_Method.png)

#### Example response (abbreviated)

```json
{
  "transaction": {
    "transactionId": "1002580075",
    "payment": {
      "account": {
        "name": "Adv Plus Banking",
        "type": 1,
        "accountNumber": "3254"
      }
      "paymentProvider": {
        "paymentProviderId": "051000017",
        "name": "Bank of America"
      }
    },
    "statusMessage": "Authorized"
  }
}
```

### User identity information

**Data Ready Event Notification**

Calling any of the Account Data APIs for a new authorization transaction prior to receiving the DataReady event can result in partial data being returned. To ensure optimal performance, wait to receive the DataReady event prior to making a request to an Account Data API.

The [Get Account Users API](/api-reference/api/account-data/get-user) is not available to Electronic Gaming clients.

You can use the [Get Account Users API](/api-reference/api/account-data/get-user) to retrieve the account owner's personal information - such as the name, address, phone, and email associated with the selected bank account. This is useful for pre-filling checkout forms or validating customer input.

To fetch this data, send a `GET` request to the `Get Account Users` endpoint using the `transactionId` generated during authorization.

**Endpoint:** `/transactions/{transactionId}/payment/paymentProvider/user`

Replace `{transactionId}` with the Bank Account Authorization Transaction ID.

The following image demonstrates a checkout interface where the shipping address has been pre-filled using the identity data retrieved from the user's bank account.

![](https://files.buildwithfern.com/trustly.docs.buildwithfern.com/cb3ab80dd7691303f352a1f93edf1470552daab0f37cf3a1c0345af0c5b3fe03/docs/assets/north-america/6a42530-Shipping.png)

#### Example request

```bash
curl -X GET https://sandbox.trustly.one/api/v1/transactions/1002548448/payment/paymentProvider/user \
  -u "YOUR_ACCESS_ID:YOUR_ACCESS_KEY"
```

#### Example response (abbreviated)

```json
{
  "user": {
    "name": [
      "John Smith",
      "Mary Smith"
    ],
    "address": [
      {
        "address1": "2000 Broadway Street",
        "address2": "",
        "city": "Redwood City",
        "state": "CA",
        "zip": "94063",
        "country": "US"
      },
      {
        "address1": "105 Alternate1 Street",
        "address2": "#401",
        "city": "Redmond",
        "state": "WA",
        "zip": "98052",
        "country": "US"
      }
    ],
    "phone": [
      "2145553434"
    ],
    "email": [
      "jsmith@email.com"
    ]
  }
}
```

#### Response fields

The following table describes the user data arrays returned in the response. A single bank account may be associated with multiple values.

| Field     | Description                                        |
| :-------- | :------------------------------------------------- |
| `name`    | The name(s) associated with the bank account.      |
| `address` | The physical address(es) on file with the bank.    |
| `phone`   | The phone number(s) associated with the account.   |
| `email`   | The email address(es) associated with the account. |

### Enable Trustly Remember Me (optional)

Trustly Remember Me significantly reduces friction for returning users and increases conversion rates by enabling a seamless, one-click experience.

When the user completes the authorization, Trustly generates a secure `splitToken`. You can use this token to recognize the returning user and allow them to authenticate in the future with a single click, bypassing the bank login process entirely.

To enable this functionality, ensure you provide the user's `email`, `phone`, and `externalId` in the `customer` object of your `establishData`.

For implementation details, see [Enable Trustly Remember Me](/integrate/accept-payments/remember-me).