---
title: "AccountResource"
canonical: "https://openfinanceguide.com/en/stet/1.6.3/resources/account-resource"
edition: "STET PSD2 API 1.6.3.1"
source: "https://openfinanceguide.com/docs/stet/1.6.3/pdf/api-dsp2-stet-v1.6.3.2-openapi.yaml"
pdf: "https://openfinanceguide.com/docs/stet/1.6.3/pdf/api-dsp2-stet-v1.6.3.1-part-2-functional-model.pdf"
language: "en"
normative: "The normative text is the English PDF and OpenAPI file published by STET. This Markdown reproduces it for reading; where they differ, the PDF prevails."
license: "CC BY 3.0 FR (https://creativecommons.org/licenses/by/3.0/fr/), STET. Converted to Markdown by Open Finance Guide."
---

# AccountResource

Type: `object` · Kind: Resources

PSU account that is made available to the TPP.
The ASPSP is able to set up specific accounts in order to provide card transactions with a delayed debit.
This account must be specific to a given card. Consequently, when the card is renewed, a new account will be set up.
ASPSP might also set-up different accounts for one given card but with different imputation dates. The remanence of these accounts is up to the ASPSP but must be equal or greater than the one which is provided through the Web-Banking interface.
Case a payment card is blocked, any relevant information (balances, transactions...) that is available through the ASPSP PSU-interfaces must also be available through the API till the end of remanence period.

Fields:

- `workspace`, [`Workspace`](https://openfinanceguide.com/raw/stet/1.6.3/en/resources/workspace.md)
- `resourceId`, [`ResourceId`](https://openfinanceguide.com/raw/stet/1.6.3/en/resources/resource-id.md)
- `bicFi`, `string` — ISO20022: Code allocated to a financial institution by the ISO 9362 Registration Authority as described in ISO 9362 "Banking - Banking telecommunication messages - Business identification code (BIC)".
  Constraints: pattern `^[A-Z]{6,6}[A-Z2-9][A-NP-Z0-9]([A-Z0-9]{3,3}){0,1}$`.
- `accountId`, [`AccountIdentification`](https://openfinanceguide.com/raw/stet/1.6.3/en/resources/account-identification.md)
- `name`, `string`, required — Label of the PSU account
  In case of a delayed debit card transaction set, the name shall specify the holder name and can also provide the imputation date
  Constraints: maxLength 70.
- `details`, `string` — Specifications that might be provided by the ASPSP
  - characteristics of the account
  - characteristics of the relevant card
  Constraints: maxLength 140.
- `linkedAccount`, `string` — Case of a set of pending card transactions, the ASPSP will provide the relevant cash account the card is set up on.
  When used, this field must be valued with the resourceId of the relevant cash account.
  Constraints: maxLength 70.
- `usage`, `string` — Specifies the usage of the account
  Case of a set of pending card transactions, this field does not have to be set since the usage is inherited from the linked account.
  Values:
  - `PRIV` — Private personal account
  - `ORGA` — Professional account
- `cashAccountType`, `string`, required — Specifies the type of the account
  Values:
  - `CACC` — Cash account
  - `CARD` — List of card based transactions
- `product`, `string` — Product Name of the Bank for this account, proprietary definition
  Constraints: maxLength 35.
- `balances`, array of [`BalanceResource`](https://openfinanceguide.com/raw/stet/1.6.3/en/resources/balance-resource.md) — list of balances provided by the ASPSP
- `psuStatus`, [`PsuStatusType`](https://openfinanceguide.com/raw/stet/1.6.3/en/resources/psu-status-type.md)
- `_links`, [`AccountLinks`](https://openfinanceguide.com/raw/stet/1.6.3/en/resources/account-links.md), required

## Example

```json
{
  "resourceId": "Alias1",
  "bicFi": "BNKAFRPPXXX",
  "accountId": {
    "iban": "YY64COJH41059545330222956960771321",
    "currency": "EUR"
  },
  "name": "Compte de Mr et Mme Dupont",
  "usage": "PRIV",
  "cashAccountType": "CACC",
  "psuStatus": "Co-account Holder",
  "_links": {
    "balances": {
      "href": "/v1/accounts/Alias1/balances"
    },
    "transactions": {
      "href": "/v1/accounts/Alias1/transactions"
    },
    "overdrafts": {
      "href": "/v1/accounts/Alias1/overdrafts"
    }
  }
}
```

## Used by

- `GET /accounts` (accountsGet)
