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

# Get card pin

Retrieves card Pin code using the action confirmation token generated using the **Confirmation** flow

# OpenAPI definition

```json
{
  "components": {
    "schemas": {
      "request.CardDetailsGetPinRequestBody": {
        "properties": {
          "action_token": {
            "description": "Action token retrieved using action confirmation flow",
            "example": "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJLaXdpIjoiV293LCBkaWRuJ3QgdGhpbmsgc29tZW9uZSB3b3VsZCBhY3R1YWxseSBkZWNvZGUgdGhpcy4gUHJvcHMgZm9yIGN1cmlvc2l0eSBtYXRlIiwiaWF0IjoxNzQ0MDAzNjE5fQ.9dtAkgB2NCP5xnAF0xhfqazoL5UOBBw5xji0r-PzGEU",
            "type": "string"
          }
        },
        "required": [
          "action_token"
        ],
        "type": "object"
      },
      "response.CardDetailsPinResponse": {
        "properties": {
          "pin": {
            "description": "Pin code for the card",
            "example": "1234",
            "type": "string"
          }
        },
        "required": [
          "pin"
        ],
        "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}/pin": {
      "post": {
        "description": "Retrieves card Pin code using the action confirmation token generated using the **Confirmation** flow",
        "parameters": [
          {
            "description": "Id of the card on which the action should be performed",
            "in": "path",
            "name": "cardId",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "*/*": {
              "schema": {
                "$ref": "#/components/schemas/request.CardDetailsGetPinRequestBody"
              }
            }
          },
          "description": "Body data",
          "required": true,
          "x-originalParamName": "bodyData"
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/response.CardDetailsPinResponse"
                }
              }
            },
            "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": "Get card pin",
        "tags": [
          "Cards/Details"
        ]
      }
    }
  },
  "servers": [
    {
      "url": "https://api-baas.wirexapp.com"
    },
    {
      "url": "https://api-baas.wirexapp.tech"
    }
  ],
  "tags": [
    {
      "description": "The **Card Details APIs** enable secure access to sensitive card information, including full PAN, CVV, expiry date, and PIN.  \nAccess is strictly controlled, audited, and permitted only through secure, authorized channels in full compliance with PCI DSS standards.\n\n> **Note:** To obtain card details, each request must include a valid **action token** generated through\n> the [Confirmation](#tag/Confirmation) process.  \n> This mechanism ensures the cardholder has explicitly authorized the operation using their private key.",
      "name": "Cards/Details"
    }
  ],
  "x-readme": {}
}
```