---
description: Gửi số tài khoản ngân hàng
---

# sendBankCard

## api.sendBankCard(payload, threadId\[, type])

### Parameters

* payload `SendBankCardPayload`
* threadId `string`
* type `ThreadType?`
  * mặc định `ThreadType.User`

### Return

`Promise<SendBankCardResponse>`

### Types

```typescript
export type SendBankCardPayload = {
    binBank: BinBankCard;
    numAccBank: string;
    nameAccBank?: string;
};

export type SendBankCardResponse = "";
```

### Examples

```typescript
import { ThreadType, BinBankCard } from "zca-js";

const groupId = "000000000000000";

api
    .sendBankCard(
        {
            binBank: BinBankCard.Techcombank,
            numAccBank: "19038393966015",
            nameAccBank: "TO CHAU TRI DUNG"
        },
        groupId,
        ThreadType.Group
    )
    .then(console.log).catch(console.error);
```

### Related

* [ThreadType, BinBankCard](../models/enum)
