Set Payment Card Nickname
The Set Payment Card Nickname endpoint allows users to assign or update a custom display name for any of their payment cards. This enables better organization and identification when a cardholder holds multiple cards across different accounts or purposes. Upon successful update, the endpoint returns the full updated card record reflecting the new nickname.
Endpoint
POST /api/paymentCards/nickName
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 cardholder wants to label a card with a personalized name such as "Travel Card", "Business Expenses", or "Online Shopping". This is especially useful for users who hold multiple Physical, Virtual, or Burner cards and need to distinguish between them in a mobile or web interface. Nicknames appear in the card record and can be updated at any time.
Request Body
| Field | Type | Required | Description |
|---|---|---|---|
paymentCardId | string | Yes | Unique identifier of the payment card to update. Minimum length: 1 character. |
nickName | string | No | Friendly display name for the card. Maximum length: 18 characters. Send null to clear an existing nickname. |
{
"paymentCardId": "card_8f3a21bc4d7e9012",
"nickName": "Travel Expenses"
}Response
200 OK
| Field | Type | Description |
|---|---|---|
paymentCardId | string | Internal Netevia payment card identifier. |
userProfileId | integer | ID of the user profile that owns this card. |
paymentCardName | string | The updated nickname assigned to the card. |
maxTotalSpending | integer (int64) | Optional maximum cumulative spend limit set on the card, in cents. |
maxTransactionsCount | integer (int32) | Optional maximum number of transactions allowed. |
totalSpending | integer (int64) | Cumulative amount spent on this card to date, in cents. |
totalTransactionsCount | integer (int32) | Total number of transactions processed on this card. |
type | integer | Card type: 0 = Unknown, 1 = Physical, 2 = Virtual, 3 = Burner, 4 = Other. |
expirationDate | string (date-time) | Card expiration date and time in ISO 8601 format. |
active | boolean | Whether the card is currently active. |
last4 | string | Last four digits of the card number. |
bin | string | Bank Identification Number (first 6 digits) of the card. |
network | string | Payment network (e.g., Visa, Mastercard). |
formFactor | string | Physical form of the card (e.g., PHYSICAL_MSR, VIRTUAL). |
status | integer | Card status: 0 = Unknown, 1 = Active, 2 = Suspended, 3 = Closed. |
partnerId | integer | ID of the partner that issued the card. |
authorizationControls | array | List of authorization control rules applied to the card (spend limits, merchant category rules, etc.). |
cardProfileSetId | string | ID of the card profile set associated with this card. |
financialAccountId | string | ID of the financial account this card is linked to. |
cardProfileSet | object | Card profile set details including design images and product settings. |
syncSubDate | string (date-time) | Timestamp of the last card subscription sync. |
reissuedCardId | string | ID of the replacement card if this card was reissued. |
{
"paymentCardId": "card_8f3a21bc4d7e9012",
"userProfileId": 10042,
"paymentCardName": "Travel Expenses",
"maxTotalSpending": null,
"maxTransactionsCount": null,
"totalSpending": 245000,
"totalTransactionsCount": 17,
"type": 2,
"expirationDate": "2027-06-30T23:59:59Z",
"active": true,
"last4": "4321",
"bin": "411111",
"network": "Visa",
"formFactor": "VIRTUAL",
"status": 1,
"partnerId": 5,
"authorizationControls": [],
"cardProfileSetId": "cps_b2d4f6a8c0e2",
"financialAccountId": "fa_1a2b3c4d5e6f",
"cardProfileSet": null,
"syncSubDate": "2026-06-01T12:00:00Z",
"reissuedCardId": null
}Error Codes
| Code | When it happens |
|---|---|
| 400 | Missing required paymentCardId, invalid field values, or nickName exceeds 18 characters |
| 401 | Token missing, expired, or invalid |
| 403 | Authenticated user does not have permission to modify this card |
| 404 | Payment card with the specified paymentCardId not found |
| 500 | Internal server error |
Common Mistakes
- Submitting a
nickNamelonger than 18 characters — the API will reject the request with a 400 error; truncate the value on the client side before sending. - Omitting
paymentCardIdfrom the request body — this field is required and has a minimum length of 1; requests without it will fail validation. - Assuming the response only returns the nickname field — the full card object is returned; parse
paymentCardNameto confirm the updated value. - Attempting to set a nickname on a closed or reissued card — check the
statusfield (value3= Closed) before calling this endpoint to avoid unnecessary requests.
Related Endpoints
POST /api/paymentCards— Issue a new payment card (Physical, Virtual, or Burner)GET /api/paymentCards— Retrieve all payment cards for the authenticated userPOST /api/paymentCards/status— Activate, suspend, or close a payment cardPOST /api/paymentCards/authorizationControls— Set spending limits and merchant restrictions on a card
Example
curl -X POST https://api.banking.netevia.dev/api/paymentCards/nickName \
-H "Authorization: Bearer YOUR_TOKEN" \
-H "Content-Type: application/json" \
-d '{
"paymentCardId": "card_8f3a21bc4d7e9012",
"nickName": "Travel Expenses"
}'