# Bank Card Password Retrieval

### POST Bank Card Password Retrieval

POST /api/mastercard/masterCardRetrievePin.html

Bank card password retrieval.

> Request Body

```
```

```json
{
  "cardId": "card123",
  "cardNo": "**** **** **** 1234",
  "randomStr": "abcdef1234567890"
}
```

#### Request Parameters

| Name      | Type   | Required | Base64 Encoding | Field Name    | Description                                             |
| --------- | ------ | -------- | --------------- | ------------- | ------------------------------------------------------- |
| cardId    | string | false    | none            | Card token    | At least one of card token and card number is required. |
| cardNo    | string | false    | none            | Card number   | At least one of card token and card number is required. |
| randomStr | string | true     | none            | Random string | 32-character random string.                             |

> Example Response
>
> 200 Response

```
```

```json
{
    "retrieveStatus": 0,
    "errMsg": "string"
}
```

#### Response Fields

| Name           | Type    | Required | Constraints | Field Name    | Description            |
| -------------- | ------- | -------- | ----------- | ------------- | ---------------------- |
| retrieveStatus | integer | true     | none        | Change status | 1: Success, 2: Failure |
| errMsg         | string  | true     | none        | Description   | none                   |


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://prepaidify.gitbook.io/docs/physical-card/api-integration/bank-card-password-retrieval.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
