# Delete card validity period Delete a card's previously scheduled validity period. The card's validity period can be removed when a virtual or plastic card has a `valid_until` value in effect. If the card's status is `NORMAL`, `REISSUED`, `BLOCKED`, `PENDING`, or `WARNING`, the `valid_until` value is removed and the card's status remains the same. When authorizing a card with a `valid_until` value in effect, this date and the card's `expiration date` are both taken into account. Otherwise, only the `expiration_date` is taken into account. This endpoint generates a [Card updated](https://developers.pismo.io/events/docs/cards-update-1) event with `operation_type` = `CARD_VALIDITY_CANCEL`. **Notes:** * This endpoint requires an account token - an access token encoded with a Pismo account ID. * This is a PCI endpoint, use the https://gw-pci.pismolabs.io environment. # OpenAPI definition ```json { "openapi": "3.0.1", "info": { "title": "Card issuing - Cards", "version": "1.4.6", "description": "Card endpoints API", "contact": { "name": "API Support", "url": "https://developers.pismo.io/support/" }, "license": { "name": "Copyright Pismo" } }, "servers": [ { "url": "https://sandbox.pismolabs.io", "description": "Sandbox API server for testing." }, { "url": "https://gw-pci.pismolabs.io", "description": "Sandbox PCI API server for testing" } ], "security": [ { "BearerAuth": [] } ], "tags": [ { "name": "Card validity", "description": "Endpoints to manage card validity period." } ], "components": { "parameters": { "cardId": { "in": "path", "name": "cardId", "schema": { "type": "string" }, "description": "Pismo card ID", "required": true } }, "securitySchemes": { "BearerAuth": { "type": "http", "scheme": "bearer", "description": "Account token - an access token encoded with a Pismo account ID. Tokens can expire quickly, which can result in an \"Unauthorized\" error.", "bearerFormat": "JWT" } }, "responses": { "401Unauthorized": { "description": "Access token is missing or invalid" }, "403Forbidden": { "description": "You don't have permission to access this resource" }, "500InternalServer": { "description": "Internal server error" } } }, "paths": { "/wallet/v2/cards/{cardId}/validity": { "delete": { "operationId": "delete-v2-card-validity", "summary": "Delete card validity period", "description": "Delete a card's previously scheduled validity period. \n\nThe card's validity period can be removed when a virtual or plastic card has a `valid_until` value in effect.\n\nIf the card's status is `NORMAL`, `REISSUED`, `BLOCKED`, `PENDING`, or `WARNING`, the `valid_until` value is removed and the card's status remains the same.\n\nWhen authorizing a card with a `valid_until` value in effect, this date and the card's `expiration date` are both taken into account. Otherwise, only the `expiration_date` is taken into account.\n\nThis endpoint generates a [Card updated](https://developers.pismo.io/events/docs/cards-update-1) event with `operation_type` = `CARD_VALIDITY_CANCEL`.\n\n**Notes:** \n\n * This endpoint requires an account token - an access token encoded with a Pismo account ID. \n\n * This is a PCI endpoint, use the https://gw-pci.pismolabs.io environment.\n", "tags": [ "Card validity" ], "parameters": [ { "$ref": "#/components/parameters/cardId" } ], "responses": { "204": { "description": "No content." }, "401": { "$ref": "#/components/responses/401Unauthorized" }, "403": { "$ref": "#/components/responses/403Forbidden" }, "500": { "$ref": "#/components/responses/500InternalServer" } } } } } } ```