Activate Payment Card
The Activate Payment Card endpoint restores a suspended payment card to active status, enabling it to be used again for transactions and payment activities. This endpoint is intended exclusively for cards that have been suspended — it does not activate newly issued cards. Once successfully reactivated, the card behaves like any other active card on the account.
Endpoint
POST /api/paymentCards/activatePaymentCard
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's payment card has been placed in a suspended state and needs to be restored. Common scenarios include lifting a temporary freeze placed by the customer, reversing an administrative suspension after a review, or reactivating a card that was paused due to suspected fraud that has since been resolved. Only suspended cards can be activated through this endpoint — cards in other states (e.g., closed, expired) are not eligible.
Request Body
The request body accepts a paymentCardId as the required base field. Depending on context, additional optional fields may be included.
| Field | Type | Required | Description |
|---|---|---|---|
paymentCardId | string | Yes | The unique identifier of the suspended payment card to reactivate. |
{
"paymentCardId": "card_01HXYZ1234ABCDEF567890"
}Response
200 OK
| Field | Type | Description |
|---|---|---|
paymentCard | object | Details of the reactivated payment card. |
paymentCard.id | string | Unique identifier of the payment card. |
paymentCard.last4 | string | Last four digits of the card number. |
paymentCard.bin | string | Bank Identification Number (first six digits) of the card. |
paymentCard.status | string | Current status of the card (e.g., ACTIVE). |
paymentCard.formFactor | string | Card form factor: PHYSICAL, VIRTUAL, or BURNER. |
paymentCard.network | string | Payment network (e.g., VISA, MASTERCARD). |
paymentCard.expirationDate | string (date-time) | Card expiration date in ISO 8601 format. |
paymentCard.subProfileId | integer | ID of the subprofile (authorized user) associated with the card, if applicable. |
paymentCard.name | string | Display name or nickname assigned to the card. |
paymentCard.errors | array | List of error objects if the mutation encountered issues; empty on success. |
mutationResult | object | Top-level mutation result wrapper. |
mutationResult.errors | array | List of top-level error objects; empty on success. |
{
"paymentCard": {
"id": "card_01HXYZ1234ABCDEF567890",
"last4": "4242",
"bin": "411111",
"status": "ACTIVE",
"formFactor": "PHYSICAL",
"network": "VISA",
"expirationDate": "2027-06-30T00:00:00Z",
"subProfileId": null,
"name": "Business Travel Card",
"errors": []
},
"mutationResult": {
"errors": []
}
}Error Codes
| Code | When it happens |
|---|---|
| 400 | Missing required paymentCardId, malformed request body, or card is not in a suspended state |
| 401 | Token missing, expired, or invalid |
| 403 | Caller does not have permission to activate the specified card |
| 404 | Payment card not found for the provided paymentCardId |
| 500 | Internal server error |
Common Mistakes
- Attempting to activate a card that is not in a
SUSPENDEDstate — this endpoint only works on suspended cards; cards inCLOSEDorEXPIREDstates cannot be reactivated. - Omitting
paymentCardIdfrom the request body — this field is required and the request will fail without it. - Using an expired or invalid Bearer token — tokens have a 10-minute lifetime and must be refreshed via
POST /api/auth/refreshbefore expiry. - Confusing card activation (for newly issued cards) with card reactivation (for suspended cards) — this endpoint is for reactivation only.
Related Endpoints
POST /api/paymentCards/suspendPaymentCard— Suspends an active payment card, which can later be reactivated using this endpoint.POST /api/paymentCards/closePaymentCard— Permanently closes a payment card; closed cards cannot be reactivated.POST /api/paymentCards/getPaymentCards— Retrieves a list of payment cards for a customer, including their current status.POST /api/paymentCards/issuePaymentCard— Issues a new payment card for a customer or subprofile.
Example
curl -X POST https://api.banking.netevia.dev/api/paymentCards/activatePaymentCard \
-H "Authorization: Bearer YOUR_TOKEN" \
-H "Content-Type: application/json" \
-d '{
"paymentCardId": "card_01HXYZ1234ABCDEF567890"
}'