Get bankAccounts
Retrieve the properties and relationships of a bankAccount object for Business Central.
HTTP request
Replace the URL prefix for Business Central depending on environment following the guideline.
GET businesscentralPrefix/companies({id})/bankAccounts({id})
Request headers
Header | Value |
---|---|
Authorization | Bearer {token}. Required. |
Request body
Do not supply a request body for this method.
Response
If successful, this method returns a 200 OK
response code and an bankAccounts object in the response body.
Example
Request
Here is an example of the request.
GET https://{businesscentralPrefix}/api/v2.0/companies({id})/bankAccounts({id})
Response
Here is an example of the response.
{
"id": "26049aad-bde4-ea11-bbf2-00155df3a615",
"number": "NBL",
"displayName": "New Bank of London"
}
Related information
Tips for working with the APIs
bankaccount
Delete bankaccount
Create bankaccount
Update bankaccount