# Customer payouts (beta)

The MONEI customer payouts API allows you to send money to individuals via Bizum or Cards. For an overview of how customer payouts work, the prefunded-balance model, and how to get access, see [Pay out to customers](https://docs.monei.com/payments/payouts-to-customers.md).

A customer payout is a payment created with the transaction type `PAYOUT`. It completes with the status `PAID_OUT` and sends the `charge.paid_out` webhook. It is not a [merchant payout](https://docs.monei.com/manage-account/payouts-and-settlements.md), the settlement MONEI transfers to your bank account.

warning

The customer payouts API is currently in closed beta. To request access, please contact our [Support Team](https://docs.monei.com/contact-support.md). Please note that the customer payouts API is not available in the test environment.

## Before you begin[​](#before-you-begin "Direct link to Before you begin")

To enable MONEI customer payouts, it is essential to maintain a positive balance in the merchant account at all times. Additionally, a minimum initial top-up of €5,000 to the merchant account balance is required to fully activate customer payouts.

## Pay out to a Bizum number[​](#payouts-with-bizum "Direct link to Pay out to a Bizum number")

Before you start, you need to make sure that you have Bizum enabled in [MONEI Dashboard → Settings → Payment methods → Bizum](https://dashboard.monei.com/settings/payment-methods/bizum). If you don't have Bizum configured, please contact our [Support Team](https://docs.monei.com/contact-support.md).

![Payment methods page in the MONEI Dashboard settings, with Bizum listed as enabled](/img/dashboard/en/settings-payment-methods.png)

Payment methods page in the MONEI Dashboard settings, with Bizum listed as enabled

Before you pay out to a Bizum number:

You can use the [MONEI API endpoint](https://docs.monei.com/apis/rest/bizum.md) to verify if the phone number is registered with Bizum before sending the money to the end user.

A customer payout by Bizum does not require the customer's confirmation. You only need to know their phone number.

### 1. Create a new payment on your server.[​](#1-create-a-new-payment-on-your-server "Direct link to 1. Create a new payment on your server.")

<!-- -->

* cURL
* Node.js
* PHP

POST https\://api.monei.com/v1/payments

```
curl --request POST 'https://api.monei.com/v1/payments' \

--header 'Authorization: pk_test_3c140607778e1217f56ccb8b50540e00' \

--header 'Content-Type: application/json' \

--data-raw '{

    "amount": 110,

    "currency": "EUR",

    "orderId": "14379133960355",

    "description": "Test Shop - #14379133960355",

    "transactionType": "PAYOUT",

    "paymentMethod": {

      "bizum": {

        "phoneNumber": "+34500000000"

      }

    }

}'
```

server.js

```
const {Monei, PaymentTransactionType} = require('@monei-js/node-sdk');

const monei = new Monei('pk_test_36cf3e8a15eff3f5be983562ea6b13ec');

monei.payments.create({

  amount: 110,

  currency: 'EUR',

  orderId: '14379133960355',

  description: 'Test Shop - #14379133960355',

  transactionType: PaymentTransactionType.PAYOUT,

  paymentMethod: {

    bizum: {

      phoneNumber: '+34500000000'

    }

  }

});
```

server.php

```
$monei = new Monei\MoneiClient('pk_test_36cf3e8a15eff3f5be983562ea6b13ec');

$monei->payments->create(new Monei\Model\CreatePaymentRequest([

  'amount' => 110,

  'currency' => 'EUR',

  'order_id' => '14379133960355',

  'description' => 'Test Shop - #14379133960355',

  'transaction_type' => 'PAYOUT',

  'payment_method' => new Monei\Model\PaymentPaymentMethodInput([

    'bizum' => new Monei\Model\PaymentPaymentMethodBizumInput([

      'phone_number' => '+34500000000'

    ])

  ])

]));
```

The following parameters are required:

* **amount** `positive integer` - Amount intended to be collected by this payment. A positive integer representing how much to charge in the smallest currency unit (e.g., 100 cents to charge 1.00 USD)
* **currency** `string` - Three-letter [ISO currency code](https://en.wikipedia.org/wiki/ISO_4217), in uppercase. Must be a supported currency.
* **orderId** `string` - An order ID from your system. A unique identifier that can be used to reconcile the payment with your internal system.
* **transactionType** `string` - `PAYOUT`
* **paymentMethod** `object` - Payment method object. It must contain `bizum` object with `phoneNumber` property.

Check all available [request parameters](https://docs.monei.com/apis/rest/payments-create.md).

### 2. Handle the response[​](#2-handle-the-response "Direct link to 2. Handle the response")

Example response:

A customer payout by Bizum is executed immediately. If the request is successful, you will receive a `PAID_OUT` status in the response.

```
{

  "id": "af6029f80f5fc73a8ad2753eea0b1be0",

  "amount": 110,

  "currency": "EUR",

  "orderId": "14379133960355",

  "description": "Test Shop - #14379133960355",

  "livemode": true,

  "status": "PAID_OUT",

  "statusCode": "E000",

  "statusMessage": "Transaction approved",

  "createdAt": 1685430038,

  "updatedAt": 1685430039,

  "paymentMethod": {

    "method": "bizum",

    "bizum": {

      "phoneNumber": "+34500000000",

      "integrationType": "REST"

    }

  },

  "nextAction": {

    "type": "COMPLETE",

    "redirectUrl": "https://secure.monei.com/payments/af6029f80f5fc73a8ad2753eea0b1be0/receipt"

  }

}
```

Check the full list of returned [response parameters](https://docs.monei.com/apis/rest/schemas/payment.md).

Optionally, you can redirect the client to the `nextAction.redirectUrl` to show the customer payout status or receipt.

## Pay out to a card[​](#payouts-with-cards "Direct link to Pay out to a card")

Customer payouts to cards are supported by all our integrations. You can use the Hosted Payment Page or build a custom checkout to let your client enter their Card details to receive the money.

Pass the `transactionType` parameter with the value `PAYOUT` to create a customer payout in the first step of our guides.

* [Hosted Payment Page](https://docs.monei.com/integrations/use-prebuilt-payment-page.md)
* [Build a custom checkout](https://docs.monei.com/integrations/build-custom-checkout.md)

Customer payouts are only supported for Cards and Bizum so, you need to pass the `allowedPaymentMethods` parameter with the values of `card` or `bizum` (in case you have more payment methods enabled)
