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

# Partners API

> Onboard merchants onto Wava, receive them by webhook, and operate on their behalf.

# Partners API

A **partner** is a platform that brings its own merchants to Wava — a POS, a CRM, a marketplace, a vertical SaaS. Instead of every merchant integrating Wava separately, the partner integrates once and each merchant onboarded through the partner's link becomes a Wava store automatically linked to the partner.

Wava tells the partner about each of those merchants through the `store_onboarded` webhook, which carries the merchant's `merchant_key`. That key is what the partner uses to process payments for that merchant.

## The lifecycle at a glance

**1. Wava creates your partner account**

We register your partner name and issue your `X-API-Key`, `X-API-Secret`, webhook signing key and onboarding link.

**2. You share your onboarding link with your merchants**

The link carries your partner name: `https://app.wava.co/signup?platform=YourPartnerName`.

**3. The integration is created automatically**

When the merchant finishes onboarding, Wava resolves the `platform` value from the link and creates a partner integration on their store pointing back at you — no manual step for the merchant.

**4. You receive `store_onboarded`**

Wava POSTs to your webhook URL with the new store's `id_store`, `store_name`, country, currency and — most importantly — its `merchant_key`.

**5. You process payments for that merchant**

Store the `merchant_key` and use it to create orders and payment links for that merchant. Payments emit `order_payment` to your webhook URL.

Full walkthrough with payloads: [Onboarding Merchants](https://docs.wava.co/partners/onboarding.md).

## What you get as a partner

| Credential | Header | Used for |
| - | - | - |
| API Key | `X-API-Key` | Identifies your partner platform |
| API Secret | `X-API-Secret` | Authenticates your platform |
| Signing key | — | Verifying the `X-Wava-Signature` on webhooks we send you |
| Onboarding link | — | `https://app.wava.co/signup?platform=YourPartnerName` — share with merchants so they connect to you automatically |

> [!WARNING]
>
> The API secret and signing key are shown **once**, when your partner account is created. Store them securely — they cannot be retrieved again.

## Capabilities

### Partner platform endpoints

Authenticated with `X-API-Key` + `X-API-Secret` only. See [Managing Merchants](https://docs.wava.co/partners/managing-merchants.md).

| Action | Endpoint |
| - | - |
| List your connected merchants | `GET /v1/partners/stores` |
| Disconnect a merchant | `POST /v1/partners/stores/{storeId}/deactivate` |
| Read your webhook config | `GET /v1/partners/webhook` |
| Update your webhook config | `PATCH /v1/partners/webhook` |
| Send a test webhook | `POST /v1/partners/webhook/test` |
| List subscribable events | `GET /v1/partners/events` |
| Analytics across your merchants | `GET /v1/partners/analytics/*` |

### Operating on behalf of a merchant

Authenticated with the merchant's `merchant-key`, which you receive in the `store_onboarded` webhook.

| Action | Endpoint |
| - | - |
| Create an order | `POST /v1/orders` |
| Create a payment link | `POST /v1/links` |
| Check order status | `GET /v1/orders/{orderId}` |

> [!NOTE]
>
> Payment endpoints are authorized by the **merchant key**, not by your partner credentials — the merchant key is what decides which store the order or link belongs to. See [Partner Authentication](https://docs.wava.co/partners/authentication.md) for exactly which headers go on which request.

## Webhooks

Your webhook URL receives both merchant-lifecycle events (`store_onboarded`) and payment events (`order_payment`, `link_paid`) for every merchant connected to you — you do not configure a webhook per merchant. See [Partner Webhooks](https://docs.wava.co/partners/webhooks.md).

## Becoming a partner

Partner access is granted case by case. Contact [sales@wava.co](mailto:sales@wava.co) with details about your platform and expected transaction volume.


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