> ## 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 Clover app for OAuth

To setup your Clover app in Refold for OAuth, you will need the following credentials from your [Clover Developer account](https://www.clover.com/fusionauth/oauth2/authorize?client_id=8c4b9ac9-c55b-4ee1-b978-30ea9edbf552\&response_type=code\&redirect_uri=https%3A%2F%2Fwww.clover.com%2Fglobaldeveloperexperience%2Fcallbacks%2Fredirect-login\&scope=openid%20offline_access):

* Client ID
* Client Secret

## Pre-requisites

1. Clover Developer account. You can create one [here](https://www.clover.com/fusionauth/oauth2/register?client_id=8c4b9ac9-c55b-4ee1-b978-30ea9edbf552\&response_type=code\&redirect_uri=https%3A%2F%2Fwww.clover.com%2Fglobaldeveloperexperience%2Fcallbacks%2Fredirect-register\&scope=openid%20offline_access).

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

## Creating an app in Clover

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

1. Log in to your [Clover Developer account](https://www.clover.com/fusionauth/oauth2/authorize?client_id=8c4b9ac9-c55b-4ee1-b978-30ea9edbf552\&response_type=code\&redirect_uri=https%3A%2F%2Fwww.clover.com%2Fglobaldeveloperexperience%2Fcallbacks%2Fredirect-login\&scope=openid%20offline_access).

<Info>
  Steps Coming Soon!
</Info>

## 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/YZVVpdFwo8NtLV-a/images/Clover/clover_cobalt.png?fit=max&auto=format&n=YZVVpdFwo8NtLV-a&q=85&s=e149f2f534410dfe9415d6878255f83f" alt="Setting up application client credentials" data-path="images/Clover/clover_cobalt.png" />

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

## Publishing Clover App

Clover requires a Production level account and a Production OAuth app for use in real-time use. This requires an approval from the Clover team for the account and app.

#### 1. Submit your Production Developer account for approval

Clover must verify and approve your production developer account before starting the process to approve your app.

* Log in to the production Developer Dashboard. The Developer Dashboard appears.

* From the left navigation menu, click `Developer Settings` > `Info`. The Developer Info page appears.

* Click the edit icon in each section, enter developer information, and click `Save`.

* Click the **Developer Agreement link** to review the Clover App Market Developer Terms.

* Click `Verify Your Account`. You agree to the Clover App Market Developer Terms by submitting your details.

<Info>
  Learn more about the Production Developer Account approval process [here](https://docs.clover.com/docs/developer-account-approval).
</Info>

#### 2. Submit your app for approval

To integrate your point of sale (POS) with a production Clover device, you need to create a Clover app that merchants can install.

<Info>
  Learn more about the App Approval process [here](https://docs.clover.com/docs/developer-app-approval-archive).
</Info>

## Actions and triggers

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

<Tabs>
  <Tab title="Actions">
    <AccordionGroup>
      <Accordion title="Customers">
        1. **List Customers** - List all customers in Clover.
        2. **Create Customer** - Create a customer in Clover.
        3. **Update Customer** - Update a customer in Clover.
        4. **Delete Customer** - Delete a customer in Clover.
      </Accordion>

      <Accordion title="Merchants">
        5. **Get Merchant By Id** - Get a merchant by ID in Clover.
        6. **Update Merchant** - Updates a merchant by ID in Clover.
        7. **Get Tenders for Merchant** - Gets all merchant tenders in Clover.
      </Accordion>

      <Accordion title="Orders">
        8. **List Orders** - Gets a list of orders in Clover.
        9. **Update Order** - Update an order in Clover.
        10. **Get Order By Id** - Get a single order in Clover.
      </Accordion>

      <Accordion title="Payments">
        11. **List Payments Of Order** - List payments of an order in Clover.
        12. **Update Payment** - Update payment in Clover.
        13. **Get A Payment** - Get a single payment in Clover.
      </Accordion>

      <Accordion title="Others">
        14. **HTTP Request** - Make HTTP API calls to any Clover documented REST APIs.
      </Accordion>
    </AccordionGroup>
  </Tab>

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