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

# Hyperwallet integration

> Connect PayPal Hyperwallet so End Close records each completed payout as it happens and reconciles payouts against your bank.

Connecting PayPal Hyperwallet lets End Close record each payout when Hyperwallet reports it completed. Every completed payment becomes a debit record in your Hyperwallet [data stream](https://endclose.com/docs/concepts/data-streams.md), ready to reconcile against the bank account that funds your program.

## At a glance

| | |
| - | - |
| **Connects as** | Hyperwallet API credentials and program token, plus payment notifications from Hyperwallet |
| **Data synced** | Completed payments (`PAYMENTS.UPDATED.STATUS.COMPLETED`) |
| **Sync frequency** | As each notification arrives |
| **Who can set it up** | Admins, with End Close for the stream |
| **Per environment** | Yes |

## Prerequisites

* An End Close admin.
* Your Hyperwallet REST API username and password, and the program token for the program whose payouts you reconcile.

## Connect Hyperwallet

**1. Open Hyperwallet in End Close**

Go to **Settings → Integrations** and choose **Hyperwallet** under **Payment processors**, then **Connect**.

**2. Enter your credentials**

Fill in the dialog and choose **Connect**.

| Field | What to enter |
| - | - |
| **Username** | Your Hyperwallet REST API user, such as `restapiuser@accountid` |
| **Password** | The API password |
| **Program token** | The program's token, starting `prg-` |

**3. Set up the stream and notifications with End Close**

End Close links your Hyperwallet stream to the program and arranges for Hyperwallet's payment notifications to reach it. Contact [founders@endclose.com](mailto:founders@endclose.com) to finish this step.

To change the credentials later, choose **Update credentials**. Leave **Password** blank to keep the current one.

## What End Close records

End Close matches each notification to your connection by its program token. Only `PAYMENTS.UPDATED.STATUS.COMPLETED` notifications create records, one per payment:

| Record field | From the Hyperwallet payment |
| - | - |
| `external_id` | The payment token |
| `amount` | The payment amount |
| `direction` | Always `debit`: money paid out of the program |
| `date` | The payment's creation date |
| `description` | The memo, or the client payment ID, or the payment token |
| `metadata` | `currency`, `status`, `destination_token`, `auth_token`, `purpose`, `client_payment_id` and `notification_token` |

A payment whose token is already in the stream isn't recorded again.

## FAQ

> [accordion] Are failed or returned payouts recorded?
>
> No. Only payments Hyperwallet reports as completed create records.

> [accordion] Can I load past payouts?
>
> Records arrive from notifications, so payouts completed before the connection aren't loaded automatically. Upload them as a CSV or push them through the [API](https://endclose.com/docs/api-reference/overview.md).

## Related

> [card] [Records](https://endclose.com/docs/concepts/records.md)
>
> The fields every record carries.

> [card] [How connections work](https://endclose.com/docs/integrations/how-connections-work.md)
>
> Streams, environments and who can connect.


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