# Onboarding Lifecycle

The onboarding lifecycle outlines the required steps for successfully onboarding a merchant into the system. Each step can be performed either through the [**Partners Platform**](https://partners.service.cedar.money/) or via the **API**.

## Step 1: Create Merchant
Merchants represent a business or organization within the system.

- **API Method:** [Create Merchant](https://docs.service.cedar.money/create-merchant)
- **Partners Platform:** Navigate to [**Merchants**](https://partners.service.cedar.money/app/crud/Business/table) > **Add New**

## Step 2: Accept Legal Agreements
Before proceeding with onboarding, the merchant must accept the **Terms of Use** and **Privacy Policy**.

- **API Methods:** 
    - [Get Legal Agreements](https://docs.service.cedar.money/get-legal-agreements) - Get all the legal agreements details including version and URL.
    - [Accept Legal Agreements](https://docs.service.cedar.money/accept-legal-agreements) - Accept all the legal agreements for the merchant.
- **Partners Platform:** Accessible under **Merchant Details** > **Complete Onboarding**. Accepting the legal agreements is the first step of the onboarding wizard.

## Step 3: Submit Onboarding Form
Fill in all required onboarding fields and submit the form.

- **API Method:** [Submit Merchant Onboarding](https://docs.service.cedar.money/submit-merchant-onboarding)
- **Partners Platform:** Accessible under **Merchant Details** > **Complete Onboarding**.

Once submitted, the merchant’s KYC status transitions to `Pending Review`.

> **Note:** After submission, onboarding details **cannot be updated** until the data is reviewed and the status changes.

---

## Onboarding Statuses

| Status Name       | Code             | Description                                                                 |
|-------------------|------------------|-----------------------------------------------------------------------------|
| Pending           | `PENDING`        | Initial state. To resubmit the onboarding data, contact support to change the status back to Pending.                     |
| Pending Review    | `PENDING_REVIEW` | Onboarding form submitted, awaiting compliance review.                     |
| Under Review      | `UNDER_REVIEW`   | Compliance team is currently reviewing the onboarding data.               |
| Action Needed     | `ACTION_NEEDED`  | Additional information is required.   |
| Approved          | `VALID`          | Onboarding approved — the merchant can now transact!                      |
| Rejected          | `FLAGGED`        | Onboarding was rejected due to compliance issues.                         |

## Summary
- Each onboarding step is supported via **API** and **Partners Platform**.
- After submitting onboarding, the data is locked until compliance review.
- Status transitions inform you of what action (if any) is needed next.
- Reach out to support if you need to **reset onboarding** to the `Pending` state.
