# Broken API method Capabilities of Virtual Accounts?

**URL:** <https://community.rapyd.net/t/broken-api-method-capabilities-of-virtual-accounts/24117>\
**Category:** 🙋🏽‍♀️🙋🏽‍♂️ Ask Questions\
**Tags:** virtual-accounts\
**Created:** [July 15, 2022, 10:06am UTC](https://community.rapyd.net/t/broken-api-method-capabilities-of-virtual-accounts/24117 "2022-07-15T10:06:58Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![dlupo](https://sea2.discourse-cdn.com/flex016/user_avatar/community.rapyd.net/dlupo/32/901_2.png) [@dlupo](https://community.rapyd.net/u/dlupo)\
**Post date:** [July 15, 2022, 10:06am UTC](https://community.rapyd.net/t/broken-api-method-capabilities-of-virtual-accounts/24117/1 "2022-07-15T10:06:58Z")

</div>

Hello, I’m having issues whit this [method](https://docs.rapyd.net/build-with-rapyd/reference/virtual-account-number-object#list-capabilities-of-virtual-accounts-per-country)

If I make the call with exactly the example data:  
**/v1/issuing/bankaccounts/capabilities/?country=sg&currency=sgd**

I get this error:

```auto
  status: {
    error_code: 'ERROR_GET_ISSUING',
    status: 'ERROR',
    message: "The request tried to retrieve a virtual account number issued to a wallet, but the ID of the object was not recognized. The request was rejected. Corrective action: Provide the ID of a valid Virtual Account Number object, a string starting with 'issuing_'.",
    response_code: 'ERROR_GET_ISSUING',
    operation_id: 'd3d7d8c1-71c4-4288-8cd2-194785d3085d'
  }

```

Wich doesn’t make any sense to me. Am I doing something wrong?

BTW there is a mistake in the example of this method, there is a missing question mark in the URL right before the query params:  
`// Request URL: GET https://sandboxapi.rapyd.net/v1/issuing/bankaccounts/capabilities/country=sg&currency=sgd`

Could be this also due to this note?:  
**Note:** To use this feature, contact **[Rapyd Client Support](https://support.rapyd.net/)**.

I’m in Sandbox BTW

---

<div class="post-metadata">

**Author:** ![flashjon](https://avatars.discourse-cdn.com/v4/letter/f/71e660/32.png) [@flashjon](https://community.rapyd.net/u/flashjon)\
**Post date:** [July 19, 2022, 3:01pm UTC](https://community.rapyd.net/t/broken-api-method-capabilities-of-virtual-accounts/24117/2 "2022-07-19T15:01:09Z")

</div>

remove a ‘/’ so you get `/capabilities?countr...` instead of `/capabilities/?countr...`

---

<div class="post-metadata">

**Author:** ![dlupo](https://sea2.discourse-cdn.com/flex016/user_avatar/community.rapyd.net/dlupo/32/901_2.png) [@dlupo](https://community.rapyd.net/u/dlupo)\
**Post date:** [July 20, 2022, 9:14am UTC](https://community.rapyd.net/t/broken-api-method-capabilities-of-virtual-accounts/24117/3 "2022-07-20T09:14:05Z")

</div>

Already tried that before posting 🙂

same error

---

<div class="post-metadata">

**Author:** ![Community\_Team](https://avatars.discourse-cdn.com/v4/letter/c/46a35a/32.png) [@Community\_Team](https://community.rapyd.net/u/Community_Team)\
**Post date:** [July 20, 2022, 6:03pm UTC](https://community.rapyd.net/t/broken-api-method-capabilities-of-virtual-accounts/24117/4 "2022-07-20T18:03:27Z")

</div>

HI @dlupo

In fact, the endpoint needs the country as a path like this (and does not need the currency):

`/v1/issuing/bankaccounts/capabilities/sg`

The endpoint will return the list of supported currencies for that country.

We have asked our team to update the documentation. Thanks for pointing this out! 🙂

---

<div class="post-metadata">

**Author:** ![dlupo](https://sea2.discourse-cdn.com/flex016/user_avatar/community.rapyd.net/dlupo/32/901_2.png) [@dlupo](https://community.rapyd.net/u/dlupo)\
**Post date:** [July 21, 2022, 12:07pm UTC](https://community.rapyd.net/t/broken-api-method-capabilities-of-virtual-accounts/24117/5 "2022-07-21T12:07:48Z")

</div>

Thank you, it works now! (I also updated my [Node SDK](https://github.com/domingosl/rapyd-node-sdk) with the correct URL if somebody needs it)

BTW, if you use the method with an unsupported country, you get an error like this:

```auto
{
  status: {
    error_code: 'ERROR_GET_GATEWAY_CAPABILITY',
    status: 'ERROR',
    message: '',
    response_code: 'ERROR_GET_GATEWAY_CAPABILITY',
    operation_id: '50b6e20d-3011-483b-8aca-b7fe14c154b7'
  }
}

```

Is this the expected behavior?  
For my hackathon entry, I took the result from Rapyd dashboard endpoint (`https://dashboard.rapyd.net/v1/merchants-portal/issuing/bankaccounts/get-iban-supported-countries`) and created my own mockup version, using those countries, since with them the `capabilities` endpoint works with no issues, hope that’s ok.
