# 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                   |
