Download Bank letter as PDF

Download Bank Letter as PDF

The Download Bank Letter endpoint retrieves an official bank letter in PDF format containing a customer's essential banking details, including account numbers and bank name. This document is suitable for sharing banking details with third parties, satisfying KYC or compliance requirements, or maintaining personal records. Proper authentication is required to ensure secure access to sensitive account information.

Endpoint

GET /netevia/bankingrequisites

Authentication

Bearer token required. Obtain via:

POST https://api.banking.netevia.dev/api/auth/v2

Include in header: Authorization: Bearer {token}
Token lifetime: 10 minutes. Refresh via POST /api/auth/refresh.

When to use

Use this endpoint when a customer needs an official bank letter document — for example, to provide proof of banking details to a payroll provider, a landlord, or another financial institution. It is also useful for generating on-demand documentation within a partner application whenever a customer needs to download or share their banking requisites.

Query Parameters

ParameterTypeRequiredDescription
profileIdinteger (int32)NoThe numeric identifier of the customer profile whose bank letter is to be retrieved.
financialAccountIdstringNoThe identifier of the specific financial account for which the bank letter should be generated.

Response

200 OK

FieldTypeDescription
namestring (nullable)The filename of the returned document (e.g., "bank_letter.pdf").
contentstring (nullable)The Base64-encoded content of the PDF file.
contentTypestring (nullable)The MIME type of the returned file (e.g., "application/pdf").
{
  "name": "bank_letter.pdf",
  "content": "JVBERi0xLjQKJeLjz9MKMSAwIG9iago8PC9UeXBlL0NhdGFsb2cvUGFnZXMgMiAwIFI+PgplbmRvYmoK...",
  "contentType": "application/pdf"
}

Error Codes

CodeWhen it happens
400Missing or invalid profileId or financialAccountId parameter format
401Token missing, expired, or invalid
403Insufficient permissions to access the specified profile or financial account
404Profile or financial account not found
500Internal server error

Common Mistakes

  • The content field in the response is Base64-encoded. You must decode it before writing it to a file or displaying it as a PDF.
  • Omitting both profileId and financialAccountId may result in an ambiguous request; always supply at least the profileId to identify the correct customer.
  • Ensure the Bearer token is still valid (tokens expire after 10 minutes) before making this request — an expired token will return a 401 error.

Related Endpoints

  • GET /netevia/statement — Download a financial account statement as a PDF
  • GET /netevia/profile/{profileId} — Retrieve customer profile details
  • GET /netevia/financialaccounts — List all financial accounts for a customer

Example

curl -X GET "https://api.banking.netevia.dev/netevia/bankingrequisites?profileId=12345&financialAccountId=XXXXXXXXXX" \
  -H "Authorization: Bearer YOUR_TOKEN" \
  -H "Accept: application/json"
Query Params
int32
string
Headers
string
enum
Defaults to application/json

Generated from available response content types

Allowed:
Response

Language
Credentials
Bearer
JWT
LoadingLoading…
Response
Click Try It! to start a request and see the response here! Or choose an example:
text/plain
application/json
text/json