# Collect with PayPal and Zelle (/fr/docs/collect-paypal-zelle)

<Endpoint method="POST" path="/v1/funding-accounts" href="/api#tag/funding/POST/v1/funding-accounts" />

PayPal and Zelle collect **one payment of an exact amount in USD**, like any [one-time payment](/docs/collect-one-payment): you send `amount`, your customer pays exactly that, and the funding account closes once the payment completes. The difference is the fee: these two methods carry **a Caibo fee per payment**, taken from what you're credited, never charged to your customer.

## Fees and limits [#fees-and-limits]

| Method | `method` | Currency | Caibo fee (default) | Per-payment minimum and maximum | Payer details | Refund through the API |
| --- | --- | --- | --- | --- | --- | --- |
| PayPal | `paypal` | `USD` | **9.5 %** of the amount | Per method: `min_amount` and `max_amount` | Optional `return_url`, `cancel_url` | Full or partial |
| Zelle | `zelle` | `USD` | **3.5 %** of the amount | Per method: `min_amount` and `max_amount` | `payer_name` (required) | No |

- **The payer pays the exact amount.** A 100.00 USD PayPal payment is paid with 100.00 USD.
- **The fee comes off your credit.** For that payment the fee is 9.50 and your balance receives **90.50**. The fee is `fee_fixed` (if any) plus `amount × fee_bps / 10000`, rounded half up to the cent.
- **The fee is fixed when you create the payment.** The funding account shows it in `fee`, and what you'll be credited in `net_amount`. A later change of terms doesn't touch a payment that already exists.
- **Your fee and range can be your own.** Caibo can set a different fee, minimum or maximum for your account. Every change is approved by two people at Caibo and recorded. What applies to you is always what `GET /v1/capabilities` says.

<Callout title="Read your terms, don't copy them">
The minimum and maximum aren't printed here because they can change and can differ per account. Read `min_amount`, `max_amount`, `fee_bps` and `fee_fixed` from capabilities before showing an amount field, and validate against them. In the dashboard you see the same numbers next to each method when you create a funding account.
</Callout>

<Steps>
<Step>
### Read what applies to you [#read-what-applies-to-you]

```bash
curl "$CAIBO_API/v1/capabilities?product=payin&currency=USD" \
  -H "Authorization: Bearer $CAIBO_API_KEY"
```

```json title="One entry (amounts for illustration)"
{
  "product": "payin",
  "method": "paypal",
  "currency": "USD",
  "collection": ["payment"],
  "min_amount": "15.00",
  "max_amount": "2500.00",
  "fee_bps": 950,
  "features": ["refund", "partial_refund"],
  "payment_method_fields": [
    { "name": "return_url", "type": "string", "required": false, "pattern": "^https://\\S{1,490}$", "description": "Where PayPal sends the payer after paying. The platform's page when absent." },
    { "name": "cancel_url", "type": "string", "required": false, "pattern": "^https://\\S{1,490}$", "description": "Where PayPal sends a payer who cancels. The platform's page when absent." }
  ],
  "available": true
}
```

PayPal and Zelle appear only when they're enabled for your account in that environment. If an entry says `available: false`, `reason` tells you why ([Capabilities](/docs/capabilities)).
</Step>
<Step>
### Create the payment [#create-the-payment]

<Tabs items={["PayPal", "Zelle"]}>
<Tab value="PayPal">

`return_url` and `cancel_url` are optional: where PayPal sends your customer after paying or after cancelling. They must be `https`.

```bash
curl "$CAIBO_API/v1/funding-accounts" \
  -H "Authorization: Bearer $CAIBO_API_KEY" \
  -H "Idempotency-Key: payin-order-9001" \
  -H "Content-Type: application/json" \
  -d '{
    "method": "paypal",
    "currency": "USD",
    "amount": "100.00",
    "payer": { "return_url": "https://shop.example/paid", "cancel_url": "https://shop.example/cart" }
  }'
```

Once it's `active`:

```json
{
  "id": "fa_01m3sh2p0000000000000000",
  "status": "active",
  "method": "paypal",
  "currency": "USD",
  "settlement_currency": "USD",
  "amount": "100.00",
  "fee": "9.50",
  "net_amount": "90.50",
  "instructions": {
    "payment_url": "https://www.paypal.com/checkoutnow?token=…",
    "amount": "100.00",
    "currency": "USD",
    "expires_at": "2026-11-24T13:00:00Z"
  },
  "created_at": "2026-11-24T12:00:00Z"
}
```

Send your customer to `payment_url`. The link is valid until `expires_at` (one hour from creation).

</Tab>
<Tab value="Zelle">

Zelle needs `payer_name`: the name of the holder of the Zelle account your customer pays from, as their bank shows it. That's how the payment is tied to your request.

```bash
curl "$CAIBO_API/v1/funding-accounts" \
  -H "Authorization: Bearer $CAIBO_API_KEY" \
  -H "Idempotency-Key: payin-order-9002" \
  -H "Content-Type: application/json" \
  -d '{
    "method": "zelle",
    "currency": "USD",
    "amount": "200.00",
    "payer": { "payer_name": "Ana Perez" }
  }'
```

Once it's `active`:

```json
{
  "id": "fa_01m3sh3k0000000000000000",
  "status": "active",
  "method": "zelle",
  "currency": "USD",
  "settlement_currency": "USD",
  "amount": "200.00",
  "fee": "7.00",
  "net_amount": "193.00",
  "instructions": {
    "payee_alias": "…",
    "payee_name": "…",
    "amount": "200.00",
    "currency": "USD",
    "expires_at": "2026-11-25T12:00:00Z"
  },
  "created_at": "2026-11-24T12:00:00Z"
}
```

Show `payee_alias` (where to send the Zelle), `payee_name` and the amount. Your customer sends **exactly `amount`**, from the account held by `payer_name`, before `expires_at` (24 hours from creation).

</Tab>
</Tabs>
</Step>
<Step>
### Wait for the payment [#wait-for-the-payment]

1. `funding_account.active` arrives with `instructions`.
2. `payin.completed` arrives once the payment is confirmed. Caibo credits it only after confirming it, never on a notice alone, and only once.
3. Your balance increases by `net_amount`: the amount less the fee. The fee is never charged twice.
4. If your customer doesn't pay before `expires_at`, or cancels at PayPal, `payin.failed` arrives and the funding account moves to `closed`. Nothing is credited and no fee is charged.

The statuses and events are the same as for any pay-in: see [How to collect](/docs/collect) and [Credited pay-ins](/docs/payins).
</Step>
</Steps>

## In the dashboard [#in-the-dashboard]

1. Go to **Pay-ins** and choose **New funding account**.
2. Choose PayPal or Zelle. Next to each method you see the fee and the range that apply to your account.
3. Enter the amount and, for Zelle, the payer's name.
4. Share the instructions with your customer. The funding account's page shows **The payer pays**, **Caibo's fee** and **Credited to you**.

## Errors on create [#errors-on-create]

| HTTP | `code` | Why |
| --- | --- | --- |
| 422 | `amount_required` | PayPal and Zelle always need `amount`. |
| 422 | `amount_below_minimum` | The amount is below `min_amount` for your account. |
| 422 | `amount_above_maximum` | The amount is above `max_amount` for your account. |
| 422 | `amount_below_fee` | The amount doesn't cover the fee. |
| 400 | `invalid_parameter` · `payer` | `payer_name` is missing for Zelle, or a URL isn't `https`. |
| 422 | `unsupported_method` | The method isn't available to collect in that currency. |

## Refunds [#refunds]

- **PayPal**: refund all or part of a completed pay-in with `POST /v1/refunds` ([Refunds](/docs/refunds)). The refund comes out of your available balance.
- **Zelle**: there's no refund through the API. Contact Caibo.

A payment that's reversed after it was credited (for example, a PayPal chargeback) never moves your balance automatically: the Caibo team reviews it and you see it in `GET /v1/reconciliation-exceptions`.
