Retrieve Subscription Transactions for a Payment Card
This endpoint returns a list of subscription-related transactions for a given payment card, identified by its unique paymentCardId. Each transaction record includes status, timestamps, requester details, and linked financial account and card metadata. It is useful for auditing recurring payment activity or surfacing subscription history within a partner-facing application.
Endpoint
GET /subscriptions/{paymentCardId}/transactions
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 or audit the subscription transaction history tied to a specific payment card — for example, to show a cardholder their recurring charges, or to allow an admin to investigate subscription activity. It supports optional name-based filtering to narrow results to a particular subscription service or requester.
Path Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
paymentCardId | string | Yes | The unique identifier of the payment card whose subscription transactions are being retrieved. |
Query Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
filterName | string | No | Optional filter to narrow results by requester name or subscription service name. Defaults to an empty string (no filter applied). |
Response
200 OK
The response is an array of subscription transaction objects. Each object includes the following fields:
Transaction Object (carddigitalwallettokenresponse)
| Field | Type | Description |
|---|---|---|
id | string | Unique identifier for the subscription transaction. |
status | string | Current status of the transaction (e.g., Completed, Pending, Failed). |
createdAt | string (date-time) | ISO 8601 timestamp indicating when the transaction was created. |
updatedAt | string (date-time) | ISO 8601 timestamp indicating when the transaction was last updated. |
requesterName | string | Name of the entity or service that initiated the transaction. |
financialAccount | string | Identifier of the financial account associated with the subscription. |
financialName | string | Display name of the financial account linked to the subscription. |
financialNumber | string | Account number of the linked financial account (masked as XXXXXXXXXX in display contexts). |
iconUrl | string | URL of the icon representing the subscription service or requester. |
paymentCard | object | Nested object with details about the payment card used. See paymentCard fields below. |
Nested paymentCard Object
| Field | Type | Description |
|---|---|---|
id | string | Unique identifier of the payment card. |
expirationDate | string | Card expiration date. |
last4 | string | Last four digits of the card number. |
cardholder | string | Name of the primary cardholder. |
authorizedUser | string | Name of the authorized user associated with the card, if applicable. |
departament | string | Department associated with the card (business context). |
cardName | string | Custom name assigned to the card. |
partnerName | string | Name of the partner that issued the card. |
formFactor | string | Card form factor: Physical, Virtual, or Burner. |
status | string | Current status of the payment card (e.g., Active, Suspended, Closed). |
[
{
"id": "sub_txn_a1b2c3d4e5",
"status": "Completed",
"createdAt": "2025-07-15T13:42:00Z",
"updatedAt": "2025-07-15T13:45:00Z",
"requesterName": "Acme Subscriptions Inc.",
"financialAccount": "fa_9988776655",
"financialName": "Business Checking",
"financialNumber": "XXXXXXXXXX",
"iconUrl": "https://cdn.example.com/icons/acme.png",
"paymentCard": {
"id": "card_112233445566",
"expirationDate": "2027-08",
"last4": "4321",
"cardholder": "Jane Doe",
"authorizedUser": null,
"departament": "Operations",
"cardName": "Operations Card",
"partnerName": "Netevia",
"formFactor": "Virtual",
"status": "Active"
}
}
]Error Codes
| Code | When it happens |
|---|---|
| 400 | Invalid paymentCardId format or malformed query parameter |
| 401 | Token missing, expired, or invalid |
| 403 | Insufficient permissions to view subscription transactions for the specified card |
| 404 | No transactions found for the specified paymentCardId |
| 500 | Internal server error while processing the request |
Common Mistakes
- Passing an incorrect or non-existent
paymentCardId— verify the card ID exists and belongs to the authenticated customer before calling this endpoint. - Expecting
financialNumberto return a full unmasked account number — it is masked in display contexts; handle accordingly in your UI. - Omitting the
Authorizationheader or using an expired token — tokens expire after 10 minutes; refresh proactively usingPOST /api/auth/refresh. - Treating the
filterNameparameter as case-sensitive or expecting exact-match behavior — validate the filter logic in your environment before relying on it in production.
Related Endpoints
GET /subscriptions/{paymentCardId}— Retrieve subscription details for a specific payment cardGET /subscriptions— List all subscriptions for the authenticated customerGET /payment-cards/{paymentCardId}— Retrieve details of a specific payment card
Example
curl -X GET "https://api.banking.netevia.dev/subscriptions/card_112233445566/transactions?filterName=Acme" \
-H "Authorization: Bearer YOUR_TOKEN" \
-H "Content-Type: application/json"