Get Authorized user information from card ID

Get Authorized User Information from Card ID

The GET /api/subProfiles/byPaymentCard endpoint retrieves information about the authorized user linked to a specified payment card. By providing a payment card ID as a query parameter, you receive a detailed profile of the authorized user associated with that card. This is useful for managing and auditing authorized user access within the banking application.

Endpoint

GET /api/subProfiles/byPaymentCard

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 look up the authorized user (subprofile) tied to a specific payment card — for example, to verify who has access to a given card, to display authorized user details in a card management interface, or to audit card-to-user associations for business accounts.

Query Parameters

ParameterTypeRequiredDescription
paymentCardIdstringYesThe unique identifier of the payment card whose associated authorized user should be retrieved.

Response

200 OK

FieldTypeDescription
givenNamestring (nullable)First name of the authorized user.
familyNamestring (nullable)Last name of the authorized user.
subProfileIdinteger (int32)Unique identifier of the subprofile (authorized user record).
emailstring (nullable)Email address of the authorized user.
departmentstring (nullable)Department the authorized user belongs to within the business.
nickNamestring (nullable)Nickname or display name assigned to the authorized user.
{
  "givenName": "Jane",
  "familyName": "Smith",
  "subProfileId": 10042,
  "email": "[email protected]",
  "department": "Finance",
  "nickName": "J.Smith"
}

Error Codes

CodeWhen it happens
400The paymentCardId is missing, empty, or in an invalid format.
401Token missing, expired, or invalid.
403The authenticated user does not have permission to view the subprofile for this card.
404No authorized user or payment card found matching the provided paymentCardId.
500Internal server error.

Common Mistakes

  • Omitting the paymentCardId query parameter entirely — the endpoint requires it to identify which card's authorized user to return.
  • Passing a card ID belonging to a card not assigned to any subprofile — this will result in a 404 response.
  • Using a token issued for a personal customer account; subprofiles are available for business customers only.
  • Passing a physical or virtual card ID that belongs to the main account holder rather than an authorized user — only cards explicitly linked to a subprofile will return subprofile data.

Related Endpoints

  • GET /api/subProfiles — List all authorized users (subprofiles) for the authenticated business account.
  • POST /api/subProfiles — Create a new authorized user for a business account.
  • GET /api/subProfiles/{subProfileId} — Retrieve a specific authorized user by their subprofile ID.
  • DELETE /api/subProfiles/{subProfileId} — Remove an authorized user from a business account.

Example

curl -X GET "https://api.banking.netevia.dev/api/subProfiles/byPaymentCard?paymentCardId=XXXX-XXXX-XXXX-XXXX" \
  -H "Authorization: Bearer YOUR_TOKEN" \
  -H "Content-Type: application/json"
Query Params
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