Get transaction image

Get Transaction Image

The Get Transaction Image endpoint retrieves an image that was uploaded and linked to a specific transaction. The image is returned as a base64-encoded string along with its content type (e.g., image/jpeg), allowing client applications to decode and render the image directly. This is useful for displaying transaction-related visuals in banking dashboards or transaction management interfaces.

Endpoint

GET /Files/transactionIcon

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 you need to display an image associated with a transaction — for example, showing a merchant logo, receipt image, or other transaction-linked visual in a banking or financial management application. This endpoint is particularly valuable when building transaction detail views that require visual context to enhance transparency and clarity for end users.

Query Parameters

ParameterTypeRequiredDescription
transactionIdstringYesThe unique identifier of the transaction whose associated image you want to retrieve.

Response

200 OK

FieldTypeDescription
ContentstringThe transaction image encoded as a base64 string. Decode this value to render the image.
ContentTypestringThe MIME type of the image (e.g., image/jpeg, image/png). Use this to correctly interpret and display the image data.
{
  "Content": "/9j/4AAQSkZJRgABAQEASABIAAD/2wBDAAgGBgcGBQgHBwcJCQgKDBQNDAsLDBkSEw8U...",
  "ContentType": "image/jpeg"
}

Error Codes

CodeWhen it happens
400The transactionId query parameter is missing or malformed.
401Token missing, expired, or invalid.
403Insufficient permissions to access the specified transaction's image.
404No image is linked to the provided transactionId.
500Internal server error.

Common Mistakes

  • Omitting the transactionId query parameter entirely — this is a required parameter and the request will fail without it.
  • Not specifying the correct transactionId — ensure you are passing the transaction's unique identifier, not a payment ID or account ID.
  • Forgetting to base64-decode the Content field before attempting to display the image — the returned string is encoded and must be decoded first.
  • Ignoring the ContentType field — always use the returned MIME type to correctly handle and render the image in your UI.

Related Endpoints

  • POST /Files/transactionIcon — Upload or associate an image with a specific transaction.
  • GET /Files/profileIcon/{profileId} — Retrieve the profile image for a customer.

Example

curl -X GET "https://api.banking.netevia.dev/Files/transactionIcon?transactionId=txn_abc123456789" \
  -H "Authorization: Bearer YOUR_TOKEN" \
  -H "Accept: application/json"
Query Params
string
required
Headers
string
enum
Defaults to application/json

Generated from available response content types

Allowed:
Responses
200

return content of your image

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