# Feeds

A **feed** (in Class, a *fund holding reference*) links a bank account, or a broker or
platform account and the holdings within it, in a Class fund to the source of its
transaction data: usually an automated feed from the provider, or manual import where
no feed is available.
**Why set up a data feed?**
Class receives electronic data directly from more than 220 banks, stockbrokers and
wrap providers, as well as employer contributions. Linking a feed to a fund replaces
manual transaction and holding entry. Once the feed is authorised and the provider has
activated it, data updates overnight.
Authority to share that data is granted in one of two ways:
- **By the account holder**
, who either signs an authority form that is uploaded to

Class, or activates the feed online with the provider.
- **By a third party (adviser)**
, whose credentials are recorded in Class for each

provider, and who is linked to each feed that data should flow to.

For the full product explanation, see
[Introduction to Data Feeds](https://support.class.com.au/hc/en-au/articles/360001383056-Introduction-to-Data-Feeds).
**Creating a feed, in this order**
1. **Feed products**
 — list the products available for a feed type (
`Cash`
,
`Broker`

or
`Platform`
) and read their authorisation, managed-account and linked-holding

capabilities. For cash, supply a
`bsb`
 to resolve the financial institution and its

bank products. Each product lists the authorisation types its provider supports,

and only those can be used.
2. **New feed**
 — create the feed against the chosen product. Supply exactly one of

the
`Cash`
,
`Broker`
 or
`Platform`
 blocks, matching
`FeedType`
, and choose an

`AuthorisationType`
 from the product's
`SupportedAuthorisationTypes`
.
3. **Complete authorisation**
, depending on the authorisation type:
  - `AccountHolder`
 — generate the prefilled form with
**Generate authority form**
,

have the account holder sign it, then upload it with
**Upload authority form**
.

These feeds start at
`AuthorityNotRequested`
 and do not progress until a signed

form is supplied.
  - `AdviserOrDealer`
 — supply the adviser's
`AuthorityId`
 when creating the feed.

Without it, the feed is created on
`NoAuthoritySet`
 and receives no data.
  - `Online`
 — the account holder activates the feed online with the provider. Where

the provider uses token activation,
**New feed**
 returns an

`AuthorityActivationNumber`
 for the account holder to enter. Confirm that your

business is authorised either by sending
`AuthorisationVerified: true`
 on

**New feed**
, or later with
**Update feed status**
, moving the feed to

`WaitingOnProvider`
.
4. **Feeds**
 and
**Feed detail**
 — read the feed and track its status until the

provider activates it and data begins to load.

**Changing a feed**
- **Update feed**
 replaces a feed's configuration. It is a full replacement, so read

the feed with
**Feed detail**
 first and send everything you want to keep.
- **Update feed status**
 requests a status transition, such as confirming

authorisation on an online feed.

Deleting a feed is not currently supported through this API.


---

**A `200` does not always mean nothing needs your attention.** Four operations return `200`
alongside a populated `Warnings` array, and the meaning is different in each:
| Operation | What a warning means | Warning shape |
|  --- | --- | --- |
| **New feed** | The feed **was** created. `FeedId` is returned as normal and the warning is advisory. | `{ Code, Message }` objects |
| **Update feed** | The feed **was** updated. Warnings can report authority changes or a missing adviser authority. | `{ Code, Message }` objects |
| **Update feed status** | The request was processed. The effective status may differ from the requested status, or confirming authorisation may produce a warning. | `{ Code, Message }` objects |
| **Upload authority form** | The file was stored but **was not recognised**. The feed will not progress until the form is verified. | Plain strings |

Always inspect `Warnings`, not just the status code. See **Errors and warnings** for the
full reference.
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. The resource owner password credentials and authorization code flows are supported.

Type: oauth2
Token URL: https://app.class-pie.com.au/connect/token
Scopes:
- `fund.details.read`: View basic fund details
- `fund.maintain`: View and maintain all fund information

## Download OpenAPI description

 - [Feeds](https://developer.myhub.com.au/_bundle/products/class/apis/partner/feeds.yaml)

## Fund

 - [POST /f/{businessCode}/{fundCode}/feeds](https://developer.myhub.com.au/products/class/apis/partner/feeds/fund/createfeed.md): Creates a new feed within a fund. Supply exactly one of the `Cash`, `Broker` or `Platform` blocks, matching `FeedType`. The fund must be Active and must not be a Consolidated entity. The created feed
 - [GET /f/{businessCode}/{fundCode}/feeds](https://developer.myhub.com.au/products/class/apis/partner/feeds/fund/getallfeeds.md): Returns the feeds within a fund, optionally including the holding accounts linked to each feed. The response is unpaginated. **What is left out.** The list mirrors the fund's feeds console and exclude
 - [GET /f/{businessCode}/{fundCode}/feeds/{feedId}](https://developer.myhub.com.au/products/class/apis/partner/feeds/fund/getfeedbyid.md): Returns a single feed. The response echoes the feed configuration (`FeedType`, `DataSource`, and the matching `Cash`/`Broker`/`Platform` block) plus an `ExtendedFeedInfo` object with product, authoris
 - [PUT /f/{businessCode}/{fundCode}/feeds/{feedId}](https://developer.myhub.com.au/products/class/apis/partner/feeds/fund/updatefeed.md): Fully replaces an existing Cash, Broker or Platform feed with the configuration supplied in the request. Omitted optional values are reset to their defaults; for example, omitting `Cash.DefaultAccount
 - [PUT /f/{businessCode}/{fundCode}/feeds/{feedId}/status](https://developer.myhub.com.au/products/class/apis/partner/feeds/fund/updatefeedstatus.md): Requests a status transition for a feed, such as confirming that your business is authorised to receive data for an online feed. Send a status **code**, not the label returned by **Feeds** and **Feed
 - [POST /f/{businessCode}/{fundCode}/feeds/{feedId}/generate-authority-form](https://developer.myhub.com.au/products/class/apis/partner/feeds/fund/generateauthorityform.md): Returns a prefilled authority form, as a PDF, for a feed that uses `AccountHolder` authorisation. The account holder signs the form, and you upload it with **Upload authority form**. **Send a `Content
 - [POST /f/{businessCode}/{fundCode}/feeds/{feedId}/upload-authority-form](https://developer.myhub.com.au/products/class/apis/partner/feeds/fund/uploadauthorityform.md): Uploads a signed authority form for a feed that uses `AccountHolder` authorisation. A feed created with that authorisation type starts at `AuthorityNotRequested` (`Authority not sent` on read) and doe
## Business

 - [GET /b/{businessCode}/feeds/products](https://developer.myhub.com.au/products/class/apis/partner/feeds/business/getfeedproducts.md): Returns the products available for a feed type, along with per-product authorisation, managed-account and linked-holding capabilities. Call this before **New feed**. For cash, supply a `bsb` to resolv
## Errors and warnings

## Classification codes

