Account Details
Account Details are similar to Bank Details (known as RIB in French).
Treezor provides Account Details in 2 formats:
As PDF
To retrieve an Account Details as PDF you can use the following request
bash
curl -X GET {baseUrl}/core-connect/account-details/{walletId}/computed' \
--header 'Authorization: Bearer {accessToken}' \
--header 'Content-Type: application/json'
Returns an object containing a URL to download the PDF.
json
{
"link": "https://dev-connect-files.s3.eu-west-3.amazonaws.com/tmp/xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxxx.pdf",
"expireIn": 300
}
The PDF uses the configured template for its rendering and is named after a concatenation of the Wallet name and id.
The PDF must be downloaded within 5 minutes, after which it expires.
As JSON
To retrieve an Account Details as JSON you can use the following request
bash
curl -X GET {baseUrl}/core-connect/account-details/{walletId}/raw' \
--header 'Authorization: Bearer {accessToken}' \
--header 'Content-Type: application/json'
Returns the Account Details in JSON.
json
{
"bic": "TRZOFR21XXX",
"iban": "FR7616798000010000XXXXXXXXX",
"title": "",
"firstname": "Alex",
"lastname": "Willow",
"postcode": "75000",
"city": "Paris",
"address1": "15 Hazel road",
"address2": "",
"countryName": "Allemagne",
"treezorAddress": {
"name": "Treezor SAS",
"address1": "33, av de Wagram",
"address2": null,
"postcode": "75017",
"city": "Paris"
}
}
Endpoints
Endpoint | Scope |
---|---|
/core‑connect/account‑details/{walletId}/computed Request a PDF account details for a given Wallet | read_only |
/core‑connect/account‑details/{walletId}/raw Retrieve a JSON account details for a given Wallet | read_only |