Set nickname for the payment card

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

FieldTypeRequiredDescription
paymentCardIdstringYesUnique identifier of the payment card to update. Minimum length: 1 character.
nickNamestringNoFriendly 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

FieldTypeDescription
paymentCardIdstringInternal Netevia payment card identifier.
userProfileIdintegerID of the user profile that owns this card.
paymentCardNamestringThe updated nickname assigned to the card.
maxTotalSpendinginteger (int64)Optional maximum cumulative spend limit set on the card, in cents.
maxTransactionsCountinteger (int32)Optional maximum number of transactions allowed.
totalSpendinginteger (int64)Cumulative amount spent on this card to date, in cents.
totalTransactionsCountinteger (int32)Total number of transactions processed on this card.
typeintegerCard type: 0 = Unknown, 1 = Physical, 2 = Virtual, 3 = Burner, 4 = Other.
expirationDatestring (date-time)Card expiration date and time in ISO 8601 format.
activebooleanWhether the card is currently active.
last4stringLast four digits of the card number.
binstringBank Identification Number (first 6 digits) of the card.
networkstringPayment network (e.g., Visa, Mastercard).
formFactorstringPhysical form of the card (e.g., PHYSICAL_MSR, VIRTUAL).
statusintegerCard status: 0 = Unknown, 1 = Active, 2 = Suspended, 3 = Closed.
partnerIdintegerID of the partner that issued the card.
authorizationControlsarrayList of authorization control rules applied to the card (spend limits, merchant category rules, etc.).
cardProfileSetIdstringID of the card profile set associated with this card.
financialAccountIdstringID of the financial account this card is linked to.
cardProfileSetobjectCard profile set details including design images and product settings.
syncSubDatestring (date-time)Timestamp of the last card subscription sync.
reissuedCardIdstringID 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

CodeWhen it happens
400Missing required paymentCardId, invalid field values, or nickName exceeds 18 characters
401Token missing, expired, or invalid
403Authenticated user does not have permission to modify this card
404Payment card with the specified paymentCardId not found
500Internal server error

Common Mistakes

  • Submitting a nickName longer than 18 characters — the API will reject the request with a 400 error; truncate the value on the client side before sending.
  • Omitting paymentCardId from 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 paymentCardName to confirm the updated value.
  • Attempting to set a nickname on a closed or reissued card — check the status field (value 3 = 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 user
  • POST /api/paymentCards/status — Activate, suspend, or close a payment card
  • POST /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"
  }'
Body Params
string | null
string
required
length ≥ 1
Headers
string
enum
Defaults to application/json

Generated from available response content types

Allowed:
string
enum
Defaults to application/json

Generated from available request 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