---
updatedAt: 2026-06-20T07:34:07.000Z
agentTools:
  projectIndex: https://docs.wirexapp.com/llms.txt
---

# Close card

Closes the card. This action cannot be undone and the card will be permanently closed.

# OpenAPI definition

```json
{
  "components": {
    "schemas": {
      "response.EmptyResponse": {
        "type": "object"
      },
      "response.ErrorCategory": {
        "properties": {
          "category": {
            "type": "string"
          },
          "grpc_status_code": {
            "type": "integer"
          },
          "http_status_code": {
            "type": "integer"
          }
        },
        "type": "object"
      },
      "response.ErrorDetails": {
        "properties": {
          "details": {
            "type": "string"
          },
          "key": {
            "type": "string"
          }
        },
        "type": "object"
      },
      "response.ErrorResponse": {
        "properties": {
          "error_category": {
            "$ref": "#/components/schemas/response.ErrorCategory"
          },
          "error_description": {
            "type": "string"
          },
          "error_details": {
            "items": {
              "$ref": "#/components/schemas/response.ErrorDetails"
            },
            "type": "array"
          },
          "error_reason": {
            "example": "ErrorInvalidField",
            "type": "string"
          }
        },
        "type": "object"
      }
    },
    "securitySchemes": {
      "ChainId": {
        "description": "EIP-155 id of the chain that the request should be executed for (e.g. 1001996)",
        "in": "header",
        "name": "X-Chain-Id",
        "type": "apiKey"
      },
      "UserAddress": {
        "description": "Address of the crypto wallet associated with the user for whom the request should be executed.",
        "in": "header",
        "name": "X-User-Wallet",
        "type": "apiKey"
      },
      "WirexPartnerToken": {
        "description": "Token obtained using Wirex Partner Credentials grant flow. Please see [Authentication](doc:authentication) Server-to-Server Authentication section",
        "in": "header",
        "name": "Authorization",
        "type": "apiKey"
      },
      "WirexUserToken": {
        "description": "Wirex issued JWT token that can be obtained by following [Authentication](doc:authentication) User Token Issuance section",
        "in": "header",
        "name": "Authorization",
        "type": "apiKey"
      }
    }
  },
  "info": {
    "contact": {
      "email": "company@wirexpaychain.com",
      "name": "API Support Team"
    },
    "description": "The **Wirex BaaS API** enables partners to deliver non-custodial financial services directly to their retail users. Through a single integration, partners can onboard users, verify identities, issue smart wallet–linked cards, and enable crypto-backed bank transfers—without ever handling fiat or taking custody of user funds.</br>All transactions are powered by **user-owned smart wallets**, ensuring security, transparency, and full user control. Wirex acts as the infrastructure provider, so you can focus on building exceptional user experiences while we handle the heavy lifting.",
    "title": "Wirex Retail BaaS API",
    "version": "1.0"
  },
  "openapi": "3.0.3",
  "paths": {
    "/api/v1/cards/{cardId}/close": {
      "put": {
        "description": "Closes the card. This action cannot be undone and the card will be permanently closed.",
        "parameters": [
          {
            "description": "Id of the card on which the action should be performed",
            "in": "path",
            "name": "cardId",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/response.EmptyResponse"
                }
              }
            },
            "description": "OK"
          },
          "400": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/response.ErrorResponse"
                }
              }
            },
            "description": "Bad Request"
          },
          "500": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/response.ErrorResponse"
                }
              }
            },
            "description": "Internal Server Error"
          }
        },
        "security": [
          {
            "WirexUserToken": []
          },
          {
            "ChainId": [],
            "UserAddress": [],
            "WirexPartnerToken": []
          }
        ],
        "summary": "Close card",
        "tags": [
          "Cards/Management"
        ]
      }
    }
  },
  "servers": [
    {
      "url": "https://api-baas.wirexapp.com"
    },
    {
      "url": "https://api-baas.wirexapp.tech"
    }
  ],
  "tags": [
    {
      "description": "The **Card Management APIs** facilitate key card lifecycle operations, including blocking and unblocking cards, closing cards, renaming cards, and managing spending limits.",
      "name": "Cards/Management"
    }
  ],
  "x-readme": {}
}
```