# Business Data

- List all contacts in a specified business.
- List all brands in a specified business.
- Check whether fund Tbar records exist.
- Load fund reference data into a business; the fund will be created if it does not yet exist.
- Load fund Tbar history.

ServersPartner Integration Environment (Sandbox)https://api.class-pie.com.au/api/1.0Production Environmenthttps://api.class.com.au/api/1.0

Version: 1.0

Metadata:
  - tags: ["Class Partner"]

## Servers

Partner Integration Environment (Sandbox)
```
https://api.class-pie.com.au/api/1.0
```

Production Environment
```
https://api.class.com.au/api/1.0
```

## Security

### Class_oAuth

Class uses oAuth2 and OpenID for authentication and authorisation

Type: oauth2
Authorization URL: https://app.class-pie.com.au/connect/authorize
Token URL: https://app.class-pie.com.au/connect/token
Scopes:
- `business.details.read`: View basic business details
- `business.fund.list`: List summarised data of funds in the business
- `business.fund.create`: Create new funds in the business
- `fund.details.read`: View basic fund details
- `fund.details.maintain`: View and maintain basic fund details
- `fund.member.read`: View member details
- `fund.member.maintain`: View and maintain member details
- `fund.read`: View all fund information
- `fund.maintain`: View and maintain all fund information

## Download OpenAPI description

 - [Business Data](https://nonprod.developer.myhub.com.au/_bundle/products/class/apis/partner/business-data-final.yaml)

## Business

 - [GET /b/{businessCode}/business-contacts/business-contact-details](https://nonprod.developer.myhub.com.au/products/class/apis/partner/business-data-final/business/businesscontacts.md): Returns the contact details for a specific business. **To access this Business Contacts endpoint the authorised user must have the Access Controller role in Class for the specified business.**
 - [GET /b/{businessCode}/business-data/brand-list](https://nonprod.developer.myhub.com.au/products/class/apis/partner/business-data-final/business/brandlist.md): List all Brands in the specified Business
 - [GET /b/{businessCode}/business-data/business-detail](https://nonprod.developer.myhub.com.au/products/class/apis/partner/business-data-final/business/businessdetail.md): Returns the details of a specific business.
 - [POST /b/{businessCode}/business-data/upload-fund-reference-data](https://nonprod.developer.myhub.com.au/products/class/apis/partner/business-data-final/business/uploadfundreferencedata.md): Creates a new fund and loads its reference data. This is a one-time create operation for the fund itself. If a fund with the supplied code already exists the request returns a 400 error and the fund's
## Fund

 - [GET /f/{businessCode}/{fundCode}/business-data/fund-tbar-records-exist](https://nonprod.developer.myhub.com.au/products/class/apis/partner/business-data-final/fund/fundtbarrecordsexist.md): Check whether fund Tbar records exist.
 - [POST /f/{businessCode}/{fundCode}/business-data/upload-fund-opening-position](https://nonprod.developer.myhub.com.au/products/class/apis/partner/business-data-final/fund/uploadfundopeningposition.md): Loads a fund's opening balances at a books-closed date, including asset positions, member balances, tax position and prior-year data. The fund must already exist (created via the Upload fund reference
 - [POST /f/{businessCode}/{fundCode}/business-data/upload-fund-tbar-history](https://nonprod.developer.myhub.com.au/products/class/apis/partner/business-data-final/fund/uploadfundtbarhistory.md): Loads fund Tbar history.
