> ## 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.

# Act on your merchants

> Use one partner key to manage your merchants and to call the Business API on their behalf

## One key for all your merchants

The key you create in your Sales Partner dashboard (**Configuraciones** > **Desarrollador**, see [Authentication](https://docs.compago.com/sales-partner/authentication.md)) is the only credential you need. You never ask a merchant for its own key, and Compago never e-mails keys.

It works in two places, and each one has its own host:

| API | Host | What it acts on |
| - | - | - |
| Sales Partner API | `https://api-honor.compago.com/api/developer` | You, the partner: [your merchants and their onboarding](https://docs.compago.com/sales-partner/onboarding.md) (`/v1/account`, `/v1/onboarding`) and [payments](https://docs.compago.com/sales-partner/api-reference/payment/list.md) across all of them |
| Business API | `https://api-harmony.compago.com/api/developer/v1` | One of your merchants, named in the `Compago-Account` header |

Partner endpoints are only on the Sales Partner API, and merchant endpoints only on the Business API, so a merchant integration and a partner integration never share a path.

## Acting as a merchant

To call a Business API endpoint (`/payment`, `/one-time-payment`, `/organization`, ...) for one of your merchants, send your partner key and the merchant's id in the `Compago-Account` header. The request then behaves exactly as if that merchant had called it with its own key.

> [!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 https://api-harmony.compago.com/api/developer/v1/payment?limit=10 \
  -H "x-api-key: $COMPAGO_PARTNER_KEY" \
  -H "Compago-Account: 6f1c2d9e-3b4a-4c5d-8e7f-90a1b2c3d4e5"
```

The merchant ids are the `id` of each [account](https://docs.compago.com/sales-partner/onboarding.md#your-merchants), and the `account` of a completed [onboarding](https://docs.compago.com/sales-partner/onboarding.md#hosted-onboarding).

You reach only the merchants you brought to Compago. A merchant of another partner answers `404`, the same as an id nobody uses, so a response never tells you whether somebody else's merchant exists.

## Errors on the Business API

| Status | `code` | When |
| - | - | - |
| `400` | `ACCOUNT_REQUIRED` | A partner key called an endpoint without `Compago-Account` |
| `400` | `ACCOUNT_HEADER_NOT_ALLOWED` | `Compago-Account` was sent with a merchant's own key |
| `404` | `NOT_FOUND` | The merchant in `Compago-Account` is not yours, was removed or does not exist |
| `503` | `SERVICE_UNAVAILABLE` | Your key could not be checked for a moment. Retry with backoff |

> [!NOTE]
>
> Deleting a key in your dashboard stops it on both APIs within a minute.


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