# Get Available Assignable Virtual Account

<mark style="color:green;">`POST`</mark> `https://exchanger-api.fuspay.finance/api/v1/no-auth/PartnerP2P/GetCollectionPoolAccounts?choose_bank=All/`

This gives you ability to assign virtual account number to a collection order.&#x20;

Virtual Account Number are used once until an order is fulfilled or timeout

This endpoint also gives you the ability to decide the bank generating the virtual account. if choose\_bank=All virtual accounts from all bank partners (GTB, Globus) would be returned; However if set to GTB,  only VAs from GTB would be returned.&#x20;

#### Query Parameters

| Name         | Type   | Description                                                                                                             |
| ------------ | ------ | ----------------------------------------------------------------------------------------------------------------------- |
| choose\_bank | String | to select the bank providing the virtual account eg choose\_bank =GTB. This would return virtual accounts from GTB only |

#### Headers

| Name                                            | Type   | Description                   |
| ----------------------------------------------- | ------ | ----------------------------- |
| Authorization<mark style="color:red;">\*</mark> | String | ***Bearer*** pk\_partner\_xxx |
| Content-Type<mark style="color:red;">\*</mark>  | String | application/json              |

#### Request Body

| Name                                                     | Type   | Description                                                                                                     |
| -------------------------------------------------------- | ------ | --------------------------------------------------------------------------------------------------------------- |
| intrapay\_merchant\_id<mark style="color:red;">\*</mark> | Number | merchant id on Intrapay (this is different per account)                                                         |
| signature<mark style="color:red;">\*</mark>              | String | SHA-512 of request payload signed with both merchant and partner secret key(SK\_merchant\_xxx+SK\_partner\_xxx) |
| partner\_id                                              | String | the partners id from partner onbaording endpoint                                                                |

{% tabs %}
{% tab title="200: OK successful response" %}

```javascript
Response {
	"success": true,
	"message": "Collection Pool Accounts",
	"data": [
		{
			"virtual_account_id": xxx,
			"account_name": "xxxxx",
			"account_number": "xxxxxx",
			"status": "ACTIVE"
		},
        ....
    ]
}


//Active means account is not being used and is available for use 
```

{% endtab %}

{% tab title="400: Bad Request failed responses" %}

{% endtab %}
{% endtabs %}

#### Example Request- Code&#x20;
