> For the complete documentation index, see [llms.txt](https://docs.echevarrisports.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.echevarrisports.com/guia/en/crm-erp/pagos.md).

# Payments

Who owes us, what has been paid, open payment links and what still needs matching with the bank.

![Payments](https://310662894-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FUtfEXMFEU0mFg84Ri6hx%2Fuploads%2Fgit-blob-a82a7953ee75804d2e983928b1dc780038aed1da%2Fpayments.png?alt=media)

At the top are four figures: **Outstanding** (what's owed), **Received this month**, **Open links** (unpaid payment links) and **Unapplied** (money received that doesn't cover any charge yet).

Below are the **Outstanding**, **All**, **Payment links** and **Received** tabs, and the filter by business line (**Lines**).

## Monthly Academy fees

The block with the month's Academy fees (for example **October Academy charges**) says whether they've been generated, how much they add up to and how much is still outstanding.

![The month's Academy charges](https://310662894-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FUtfEXMFEU0mFg84Ri6hx%2Fuploads%2Fgit-blob-82bd8cf99f99526097a59c60e5b2240f9767ea7e%2Fpayments-billing.png?alt=media)

* They're generated on their own on the 1st of each month (see [What happens on its own every day](/guia/en/crm-erp/tareas-automaticas.md)):
  * **1st**: the month's charges are created. Families who owe and **don't** have a saved card get a payment link by email.
  * **2nd**: saved cards are charged. If a charge fails, the family gets a payment link.
* If there are new students with no charge this month, the **Generate…** button (for example "Generate 8 new · €400") creates the missing ones.
* **What would be generated** shows what would be charged before you generate it.
* The month selector shows earlier months.

## Outstanding

One row per family with the oldest thing they owe, what's due now, what isn't due yet, the total and the last time they were contacted.

* **Family total / Family + each member**: just the family's total or a breakdown per member.
* **Highest amount / Oldest debt first / Newest debt first**: the order.
* Anything more than 7 days overdue is marked. Totals count only what the filters show.

Each row has three buttons:

| Button   | What it does                                                                                                                        |
| -------- | ----------------------------------------------------------------------------------------------------------------------------------- |
| **Pay**  | Records a payment by **Cash**, **Card**, **Transfer** or **Bizum**. The amount is applied **to the oldest charges first**.          |
| **Send** | Emails a link for what's due today. There's one link per camp booking and one for the rest. You can also call or message from here. |
| 🗒       | Logs that you called, sent a WhatsApp or email, or spoke in person, or just leaves a note.                                          |

![Pay: recording a payment](https://310662894-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FUtfEXMFEU0mFg84Ri6hx%2Fuploads%2Fgit-blob-58655edf7b7f246bf64d78bb20a47f16fe1c50dc%2Fpayments-pay.png?alt=media)

![Send: sending a payment link or contacting](https://310662894-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FUtfEXMFEU0mFg84Ri6hx%2Fuploads%2Fgit-blob-35d9ce1944cb615c6cae385ba33590daa51514d2%2Fpayments-send.png?alt=media)

![Logging a contact or a note](https://310662894-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FUtfEXMFEU0mFg84Ri6hx%2Fuploads%2Fgit-blob-e9946f433564230d8c233ab49ef754fc7db43a4f%2Fpayments-note.png?alt=media)

Tick several families to send them all links at once.

## All

Every charge, paid or not, with the **All / Not paid / Paid** filter.

![All](https://310662894-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FUtfEXMFEU0mFg84Ri6hx%2Fuploads%2Fgit-blob-b919d523e14b88f887cd468b1c3906c8a1f1d39a%2Fpayments-all.png?alt=media)

## Payment links

Every link created and its state: pending, paid, expired or cancelled.

![Payment links](https://310662894-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FUtfEXMFEU0mFg84Ri6hx%2Fuploads%2Fgit-blob-c77ad67e36707d003ca3a61420e5c5cb2d4c93ef%2Fpayments-links.png?alt=media)

To create a link by hand (from a lead, a camper or a family's account):

1. Enter the amount and what it's for (for example "Halloween Camp · week 1").
2. Choose how long it's valid: 2, 7, 14 or 30 days.
3. Email it, or copy the link to send it on WhatsApp.

{% hint style="info" %}
Creating a new link cancels the one still waiting, so the family can't pay twice. When the family pays, the payment is recorded on its own and the status updates.
{% endhint %}

The family pays by card or Bizum through Redsys, the bank's payment gateway. If a payment is partial, the link stays open for the rest.

## Received

Every payment that has come in, by week. The arrows change week.

![Received](https://310662894-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FUtfEXMFEU0mFg84Ri6hx%2Fuploads%2Fgit-blob-73692a35db6f6cc4c53eb1378664801c95e22d49%2Fpayments-received.png?alt=media)

## A family's account

From anywhere (a lead, a student or a row in Payments) you can open a family's account. There you see:

* Their charges and what's still outstanding.
* Their payments, which can be deleted if recorded by mistake.
* Their payment links.
* Their class passes. **Sell a class pass** sells them one.
* Their history and their value as a client.

![A family's account](https://310662894-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FUtfEXMFEU0mFg84Ri6hx%2Fuploads%2Fgit-blob-b9ffdc581c9ac42a442f737bf54bdba04e4407df%2Fpayments-family.png?alt=media)

{% hint style="info" %}
A payment recorded in the family's account settles their Academy fees, oldest first. Camp places are paid from the camp week or with a link.
{% endhint %}


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation by asking a question.

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://docs.echevarrisports.com/guia/en/crm-erp/pagos.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
