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

# Payout integration overview

> APIs, integration flow and environments for sending payouts with Waffo. Covers 15 countries and regions and 34 payout methods (16 e-wallets, 15 bank accounts, 3 proxy accounts).

Waffo Payout sends funds from your Waffo merchant account to a payee's bank account, e-wallet or proxy account (for example PayNow or PIX) in the destination country. Some countries also support payouts to businesses (`payeeType` = `BUSINESS`); see [Payout field requirements](https://waffo.com/docs/api-reference/payout/field-requirements.md) for the supported countries and payout methods.

## Applicable scenarios

* Server-to-server payouts: send funds automatically from your own system and track the results
* Payouts to an individual payee's bank account, e-wallet or proxy account
* Payouts to a business payee (supported in some countries, `payeeType` = `BUSINESS`)

> [!NOTE]
>
> This page covers API integration. If you do not want to integrate technically, you can send payouts in bulk from the Merchant Portal instead: download the batch template, fill it in and upload it. See [Withdrawal & Batch Payout FAQ](https://waffo.com/docs/en/support/withdrawal-and-batch-payout-faq.md) for the steps.

## Integration flow

**1. Collect beneficiary field information**

Collect the payee's account details. To find out which fields are required, use either of these:

* Call [Payout beneficiary fields inquiry](https://waffo.com/docs/api-reference/payout-beneficiary-fields-inquiry/payout-beneficiary-fields-inquiry.md): returns the required fields for a country, payout method and payee type in real time, so your system can fetch them automatically.
* See [Payout field requirements](https://waffo.com/docs/api-reference/payout/field-requirements.md): lists the field requirements by country and payout method, for manual reference before you integrate.

**2. Use API Reference for field details**

Request fields, response fields, enums and signing rules follow the [API Reference](https://waffo.com/docs/api-reference/introduction.md).

**3. Create the payout**

Call [Payout create](https://waffo.com/docs/api-reference/payout-create/payout-create.md) with your own unique `payoutRequestId`. A successful response usually returns `IN_PROGRESS`.

**4. Get the result**

Get the final result mainly from the [PAYOUT\_NOTIFICATION](https://waffo.com/docs/en/developer-docs/webhook/event-types.md#payout_notification) notification. If the notification does not arrive in time, call [Payout inquiry](https://waffo.com/docs/api-reference/payout-inquiry/payout-inquiry.md) as a fallback.

**5. Handle final states**

Treat only `SUCCESS` and `FAILURE` as final. See [Payout status and idempotency](https://waffo.com/docs/en/developer-docs/payout/status-and-idempotency.md).

**6. Test in sandbox**

Test your payouts in the sandbox environment. For the URL, see [Environment information](#environment-information).

**7. Submit acceptance materials**

Fill in the executed cases in the [acceptance template](#acceptance-template) and submit them to the Waffo technical integration group.

## Environment information

| Environment | Base URL | Description |
| - | - | - |
| Sandbox | `https://api-sandbox.waffo.com` | Test environment; no real charges will be made |
| Production | `https://api.waffo.com` | Production environment |

The SDK switches via `Environment.SANDBOX` / `Environment.PRODUCTION`; there is no need to manually modify the URL.

## Request format

* Content-Type: `application/json` (UTF-8 encoding)
* All requests use HTTP POST
* Request headers must include `X-API-KEY` and `X-SIGNATURE`
* Raw HTTP requests must explicitly send `X-API-VERSION: 1.0.0`. SDKs manage this header automatically; do not set or override it.
* Key pair and public key setup: [Configure the merchant public key](https://waffo.com/docs/en/developer-docs/getting-started/public-key-configuration.md)

## Response format

```json theme={null}
{
  "code": "0",
  "msg": "Success",
  "data": { ... }
}
```

* `code` is `"0"` indicates success
* On failure, `code` is an error code (for example `"A0003"`), and `data` is empty
* Response header `X-SIGNATURE` contains the Waffo signature and **must be verified**
* Verifying Waffo's signature on responses and notifications: [Webhook - signature verification](https://waffo.com/docs/en/developer-docs/webhook/signature-verification.md)

## Core APIs

| API | Required | Description |
| - | - | - |
| [Payout beneficiary fields inquiry](https://waffo.com/docs/api-reference/payout-beneficiary-fields-inquiry/payout-beneficiary-fields-inquiry.md) | Recommended | Query the fields, formats and allowed values that the create request requires for a payout method and payee type. Read-only: it does not create a payout or deduct funds |
| [Payout create](https://waffo.com/docs/api-reference/payout-create/payout-create.md) | Required | Create a payout |
| [Payout inquiry](https://waffo.com/docs/api-reference/payout-inquiry/payout-inquiry.md) | Required | Query a payout by `payoutRequestId` or `payoutOrderId`, and confirm the result when the notification does not arrive in time |
| [PAYOUT\_NOTIFICATION](https://waffo.com/docs/en/developer-docs/webhook/event-types.md#payout_notification) | Required | Receive the final payout result and update the merchant payout state. Waffo posts it to the `notifyUrl` in the create request |

## Acceptance template

The payout acceptance template is in preparation. After you finish the integration and sandbox testing, contact the Waffo technical integration group to confirm the acceptance cases.

## Reference

* [Payout field requirements](https://waffo.com/docs/api-reference/payout/field-requirements.md)
* [Error code](https://waffo.com/docs/api-reference/payout/error-codes.md)
* [Transfer purpose code](https://waffo.com/docs/api-reference/payout/purpose-enum.md)
* [Payee name requirements](https://waffo.com/docs/api-reference/payout/payee-name-fields.md)


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