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

# Onboard merchants

> Bring merchants to Compago from your own system, with a hosted link or entirely by API

## Two ways in

| | Hosted onboarding | Create by API |
| - | - | - |
| You send | The owner's e-mail | Every detail: owner, business, bank account |
| The merchant | Fills in Compago's signup on your brand | Does nothing; signs in when they want to |
| Use it when | You do not hold all the data, or prefer Compago's screens | You already collected everything in your own flow |

Both are endpoints of the Sales Partner API (`https://api-honor.compago.com/api/developer`), called with your partner key (see [Act on your merchants](https://docs.compago.com/sales-partner/partner-api.md)). Either way the merchant is yours from the first moment.

## Hosted onboarding

> [!NOTE]
>
> These examples call the production host. While you build, replace `https://api-harmony.compago.com` with `https://demo-api-harmony.compago.com` and use a key from the Demo dashboard. See [Environments](https://docs.compago.com/get-started/environments.md).

```bash theme={null}
curl -X POST https://api-honor.compago.com/api/developer/v1/onboarding \
  -H "x-api-key: $COMPAGO_PARTNER_KEY" \
  -H "Content-Type: application/json" \
  -d '{ "email": "duena@cafecentral.mx" }'
```

```json theme={null}
{
  "id": "0d8f6a2e-71c4-4b9a-a0d3-5e6f7a8b9c0d",
  "email": "duena@cafecentral.mx",
  "status": "PENDING",
  "url": "https://app.compago.com/auth/invite/member/0d8f6a2e-71c4-4b9a-a0d3-5e6f7a8b9c0d",
  "expiresAt": "2026-11-13T15:00:00.000Z",
  "account": null,
  "createdAt": "2026-11-06T15:00:00.000Z"
}
```

Show the `url` to the merchant or send it yourself: Compago does not e-mail it. The owner signs up with that e-mail address and goes through the signup.

* **Asking again is safe.** While your onboarding for an e-mail is open, the same one comes back (`200`) with its expiry renewed to 7 days. Ask every time your merchant presses a button.
* **Following it up.** `GET /v1/onboarding/{id}` reports `COMPLETED` once the merchant finished, with the merchant's id in `account`. `EXPIRED` means the link went 7 days unused: create it again.
* **Already a Compago user.** An e-mail that already has an account answers `409 EMAIL_IN_USE`.

## Create by API

When you already hold every detail, create the merchant in one call.

```bash theme={null}
curl -X POST https://api-honor.compago.com/api/developer/v1/account \
  -H "x-api-key: $COMPAGO_PARTNER_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "owner": { "name": "Ana López", "email": "duena@cafecentral.mx" },
    "business": {
      "name": "Café Central",
      "legalName": "Café Central SA de CV",
      "rfc": "CCE200101A02",
      "category": "RESTAURANTS_AND_BARS",
      "bankSoftDescriptor": "CAFECENTRO",
      "address": {
        "addressLine": "Av. Reforma 222",
        "colony": "Juárez",
        "municipality": "Cuauhtémoc",
        "city": "Ciudad de México",
        "state": "CMX",
        "zip": "06600"
      }
    },
    "bankAccount": { "clabe": "012180001234567899", "accountHolder": "Café Central SA de CV" }
  }'
```

The answer (`201`) is the new [account](#your-merchants). The owner receives a welcome e-mail on your brand and signs in with Google or an e-mailed code; they have no password until they set one. The CLABE is never returned by the API.

* `bankSoftDescriptor` is what the cardholder's statement shows: 3 to 10 letters, digits or spaces, without accents.
* The RFC must have a valid check digit and the CLABE a valid control digit, or the request answers `400` and nothing is created.
* An owner e-mail that already has an account answers `409 EMAIL_IN_USE`. Use a hosted onboarding for that person instead.

## Your merchants

`GET /v1/account` lists every merchant you brought, newest first and [paginated](https://docs.compago.com/core-concepts/pagination.md). `GET /v1/account/{id}` reads one.

```json theme={null}
{
  "id": "6f1c2d9e-3b4a-4c5d-8e7f-90a1b2c3d4e5",
  "name": "Café Central",
  "legalName": "Café Central SA de CV",
  "rfc": "CCE200101A02",
  "category": "RESTAURANTS_AND_BARS",
  "address": { "addressLine": "Av. Reforma 222", "colony": "Juárez", "municipality": "Cuauhtémoc", "city": "Ciudad de México", "state": "CMX", "zip": "06600" },
  "owner": { "name": "Ana López", "email": "duena@cafecentral.mx" },
  "termsAcceptedAt": null,
  "requirements": {
    "currentlyDue": ["termsAcceptance"],
    "detailsSubmitted": false
  },
  "createdAt": "2026-11-06T15:00:00.000Z"
}
```

`requirements.currentlyDue` is what the merchant's onboarding still needs. Drive your own screens from it, and expect new values to appear over time:

| Requirement | How to satisfy it |
| - | - |
| `business.legalName` | The merchant fills in their razón social (hosted onboarding or their dashboard) |
| `bankAccount` | The merchant adds the account they are paid in |
| `termsAcceptance` | Record the merchant's acceptance of Compago's contract |

## Documents

Documents are optional: no document is ever a requirement. If you already collect your merchants' papers, you can keep them on file with Compago, where they show on the merchant's detail in your Sales Partner dashboard.

| `type` | Document |
| - | - |
| `IDENTIFICATION_FRONT`, `IDENTIFICATION_BACK` | INE or passport, front and back |
| `PROOF_OF_ADDRESS` | Comprobante de domicilio |
| `TAX_CERTIFICATE` | Constancia de situación fiscal |
| `BANK_STATEMENT` | Estado de cuenta |

Upload one document per call as `multipart/form-data`, with the `type` and the `file` (PDF, JPEG or PNG, up to 10 MB).

```bash theme={null}
curl -X POST https://api-honor.compago.com/api/developer/v1/account/6f1c2d9e-3b4a-4c5d-8e7f-90a1b2c3d4e5/document \
  -H "x-api-key: $COMPAGO_PARTNER_KEY" \
  -F "type=IDENTIFICATION_FRONT" \
  -F "file=@ine-frente.jpg;type=image/jpeg"
```

Uploading the same type again replaces it as the current one; the earlier one stays on file. `GET .../document` lists what is on file. Documents are stored privately and the API never returns a link to download them.

## Contract acceptance

When the merchant accepts Compago's merchant contract on your screens, record it with the evidence of that moment:

```bash theme={null}
curl -X POST https://api-honor.compago.com/api/developer/v1/account/6f1c2d9e-3b4a-4c5d-8e7f-90a1b2c3d4e5/terms-acceptance \
  -H "x-api-key: $COMPAGO_PARTNER_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "acceptedAt": "2026-11-06T15:04:12-06:00",
    "ipAddress": "201.141.10.5",
    "userAgent": "Mozilla/5.0 (iPhone; CPU iPhone OS 18_1 like Mac OS X) ...",
    "acceptedBy": { "name": "Ana López", "email": "duena@cafecentral.mx" }
  }'
```

`acceptedAt` is when the merchant accepted, not when you call, and cannot be in the future. The answer carries the contract `version` that was accepted. When Compago publishes a new contract, `termsAcceptance` returns to every merchant's requirements.

> [!NOTE]
>
> Everything you do on a merchant's account (creating it, uploading a document, recording an acceptance) appears in that merchant's activity log under your name and your key's name.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.