> ## Documentation Index
> Fetch the complete documentation index at: https://docs.refold.ai/llms.txt
> Use this file to discover all available pages before exploring further.

# Setup

> Connect to your MyOB app for OAuth.

To setup your MyOB app in Refold for OAuth, you will need the following credentials from your [MyOB Developer account](https://my.myob.com.au/Pages/Default.aspx):

* Client ID
* Client Secret
* Scopes

### Pre-requisites

1. MyOB Developer account. You can request access [here](https://apisupport.myob.com/hc/en-us/requests/new).

### Required Settings

* **Mandatory Scopes**

1. CompanyFile

<Info>If you haven't already created an app in MyOB, you'd need to create one.</Info>

### Creating an app in MyOB

To create a MyOB app and acquire the above mentioned credentials, please follow the steps mentioned below:

1. Log in to your [MyOB Developer account](https://my.myob.com.au/Pages/Default.aspx).
2. Click on the `Developer` option in the top nav bar.

<img height="200" src="https://mintcdn.com/cobalt-55/rCTCKBbhiwGPdeWb/images/myob/myob_navigation.png?fit=max&auto=format&n=rCTCKBbhiwGPdeWb&q=85&s=ad87b68cfc1639cb8601edca3a6ede50" alt="Navigation for App setup" data-path="images/myob/myob_navigation.png" />

3. Click on `Register App` button in the right.
4. Go to your [`Apps catalog`](https://app.gocobalt.io/apps) in **Refold** > Search for `My OB` > `Settings` > `Use your credentials` > `Callback Url` > Copy it.
5. Enter the `App Name` for your application and paste the Callback Url under `Redirect Uri` and click on `Register App` button.
6. In the `Developer Dashboard`, copy the **Client ID** under `Key` and **Client Secret** under the `Secret` field.

<img height="200" src="https://mintcdn.com/cobalt-55/rCTCKBbhiwGPdeWb/images/myob/myob_credentials.png?fit=max&auto=format&n=rCTCKBbhiwGPdeWb&q=85&s=2db5517d3d506e4bee2fb61d40b07b83" alt="Getting Credentials" data-path="images/myob/myob_credentials.png" />

#### Configuring credentials in Refold

App settings page lets you configure the authentication settings for an `OAuth 2.0` based application. For your customers to provide you authorization to access their data,
they would first need to install your application. This page lets you set up your application credentials.

<img height="200" src="https://mintcdn.com/cobalt-55/rCTCKBbhiwGPdeWb/images/myob/myob_cobalt.png?fit=max&auto=format&n=rCTCKBbhiwGPdeWb&q=85&s=2f3906114f7888ee81151b1c785c0aa1" alt="Setting up application client credentials" data-path="images/myob/myob_cobalt.png" />

Provide the acquired Client ID and Client Secret under Settings of the app and save it.

#### Actions and triggers

Once the above setup is completed, you can create orchestrations of your use-cases using MyOB actions. Following are the set of MyOB actions
supported by Refold.

<Tabs>
  <Tab title="Actions">
    <AccordionGroup>
      <Accordion title="Bills">
        1. **Get Bills** - Get all bills in MyOB.
      </Accordion>

      <Accordion title="Item">
        2. **Create Item** - Create an item in MyOB.
        3. **Update Item** - Update an item in MyOB.
        4. **Delete Item** - Delete an item in MyOB.
      </Accordion>

      <Accordion title="Ledger Account">
        5. **Create Account** - Create an account in MyOB.
        6. **Update Account** - Update an account in MyOB.
        7. **Delete Account** - Delete an account in MyOB.
        8. **Get Accounts** - Get all accounts in MyOB.
      </Accordion>

      <Accordion title="Others">
        9. **HTTP Request** - Make HTTP API calls to any MyOB documented REST APIs.
        10. **Get Invoices** - Get all invoices in MyOB.
      </Accordion>
    </AccordionGroup>
  </Tab>

  <Tab title="Triggers">
    There are no triggers in this application.
  </Tab>
</Tabs>
