Client payments
Pay a client's credits, add a top-up, and open credit-line or billing tools from the same tab.
What You Can Do
- See the live credit limit, days, and cutoff for one client
- Pay an unpaid or partial credit (cash, transfer, Ecart Pay, and the other catalog methods)
- Split one Ecart order or one STP transfer across several credits of that client
- Open the payment breakdown (Abonos) and, with audit access, the STP or Ecart detail
- Add a manual top-up to TMS
- Refresh the interbank CLABE so STP lookup can match the recipient account
- Open Ecart Pay billing data, and toggle VIES on EU / EUR
- Start a reconnection request for a client with negative balance
- Configure the credit line: lower it in-panel, extend days, or open a credit-line request
Process flow
Open Pagar on a credit that still has a balance. The amount cannot be larger than what that credit still owes. Transferencia and Ecart Pay then look up the real transfer or order. If several STP rows still have money, pick a card. A gray card means the leftover is smaller than the amount in the form. A saved payment updates the credit; leftover on that transfer can pay another credit later.
Getting There
One client (usual path)
- Open the client file.
- Open the payments tab.
The URL looks like /accounting/credits?c_id=3360.
On that tab, to the left of Exportar CSV, the Habilitar solicitud de crédito switch lets the client start a request in their portal. It is visible with manage-credit-line-request-access or with client-bill-config, the same permission as Crear solicitud inside Configurar crédito. It appears only when that company has no credit request at all, whether a new line or a modification, in any status. Turning it on asks for the existing enable confirmation. Turning it off, when it is already on, asks for the existing remove confirmation. Cancel leaves the switch as it was. Creating the request from Configurar crédito writes credit_line_request_enabled on company_configs.
All clients
Open Contabilidad → Créditos (/accounting/credits). The company column stays visible.
You need client-payments-tab. Pagar also needs update-payments and the country (all-locals or {country}-sel). Pagar sin validar also needs pay-without-validation and the credit_pay_without_validation flag.
Common Tasks
Read the company header
Three cards show limit, days, and cutoff. An orange banner means a temporary credit-line extension is active. Click it for the extra days and the return date.
Read the credit column
Yes (red) means the row is a credit-line charge. No (green) means it is not. A gray Automatic payment badge under that label means the charge came from the automatic payment job. Hover it to see the credit id.
Pay a credit
- On a row that is not fully paid, choose Pagar (warning button).
- Keep or lower the amount. It cannot exceed the pending balance shown as the field max.
- Choose the payment method and type the folio.
- Choose Pagar and confirm.
Pagar sin validar stays in the footer whenever the credit_pay_without_validation flag is on and you have pay-without-validation. It does not depend on the payment method. Confirm, type a required reason, and the folio is stored as typed. There is no Ecart or STP lookup. The reason stays on the abono and shows first when you open the reference detail.
On Ecart Pay, Conekta, Oxxo, PayPal, and Bank Transfer Mexico, the reference label shows an info icon. Hover it for the accepted formats. The same examples sit under the field. Other methods have neither.
Ecart Pay: the folio is the OR (order.number) or the TR (transaction_id). It must belong to this client. Several credits can share the order until its total is used.
Transferencia: the folio is the STP id or the tracking key. The key must match a transfer whose recipient CLABE is this company's. If the key exists for another account, the error says the reference exists but does not belong to this client. If the company has no CLABE and the key is not in STP, the error asks to update the CLABE. Not found means the key is absent from STP. One leftover transfer that covers the amount is applied at once. Several leftover transfers show cards:
| On the card | Meaning |
|---|---|
| Id and amount | stp_mex row and its original total |
| Remaining | What is still free after earlier abonos |
| Date, company, concept, account | STP date, company_name, concept, account_recipient |
A card you can click has remaining ≥ the form amount. Gray means it does not cover that amount. To use a leftover of 200 on a larger credit, set the amount to 200 before searching.
If you change method, folio, or amount after the cards appear, the list clears. Search again.
Other methods: the folio is stored as typed. There is no Ecart or STP lookup.
Open Abonos
Click the paid amount, or Detalles in the row menu. The panel lists each abono. On a bank transfer, the reference opens the extra panel with the issuer. More information appears only when the STP payload has JSON. It stays closed until clicked, then shows that JSON in the log viewer colors. Registrar (permission credit_add_manual_payment) adds a history row without the Ecart/STP lookup. With audit-level-risks, a transfer reference opens the extra panel (STP fields or Ecart order, risks, chargebacks).
Generate or view an invoice
If the credit has an invoice file, Ver factura opens it. The status column also shows a green Invoiced badge that opens the same file. Credits without an invoice file show an amber Not invoiced badge in that same place. Generar / Facturador (create-invoices) opens an Ecart Pay billing draft. That needs ECART_PAY_HOSTNAME and ENVIA_API_QUERIES_HOSTNAME.
Add a top-up
On the company tab, type an amount (client-payment):
- No (green): new credit that is not marked as credit-line (
manual_credit = 2) - Sí (red): new credit that is marked as credit-line (
manual_credit = 1)
Both add the amount to TMS. The company must have a TMS token.
Toolbar buttons (company tab)
These sit under the three KPI cards. Each one is hidden when the operator lacks the permission.
| Button | Permission | What it does |
|---|---|---|
| Reconectar | client-manage-reconnect to create or act | Opens reconnection requests for a client that lost service (negative balance and a plan) |
| Actualizar CLABE | update-clabe | Refreshes the company's interbank CLABE from Queries |
| Datos de facturación | client-bill-info | Opens the Ecart Pay billing widget (fiscal data of the client) |
| VIES | client-bill-info | EU / EUR only. Marks billing as VIES-validated |
| Configurar crédito | client-bill-config | Opens the credit-line panel: limit, days, cutoff, history, extend, delete, or a credit request |
Reconnect a client
Use Reconectar when the company has a negative TMS balance and a plan (not none). That restores service by applying a paid credit of the reconnect amount.
- Open Reconectar. Plan, amount in USD, and amount in the company currency come from the server and cannot be edited.
- Crear (
client-manage-reconnect) asks for a comment and confirms. The row starts as pending. You cannot create another while one is pending, approved, or already applied. A rejected row does not block a new one. - Another operator (or role 1 on their own row) Aprueba or Rechaza. You cannot approve your own request unless you are role 1. The locale of the company is also required.
- Aplicar on an approved row writes a paid credit with folio
REC-{company}-{request}, updates TMS, and marks the request applied. The credits table reloads.
Statuses: pending (warning) → approved (primary) or rejected (danger) → applied (success). Hover a later status to see who acted and when.
Refresh the CLABE
Actualizar CLABE asks for confirmation, then PUT /interbankcode/{companyId} on Queries and stores the result on companies.clabe.
That value is the recipient account used when Pagar looks up an STP by tracking key (account_recipient). If the CLABE is empty, a key that is not in STP asks to update the CLABE. If the CLABE is empty or stale and the key exists on another account, the error says the reference exists but does not belong to this client.
Billing data and VIES
Datos de facturación loads (or creates) the Ecart Pay customer for this company, then opens Pay.Billing.clients so the operator can edit fiscal / billing data. EU countries or EUR also send providerName: verifacti.
The VIES switch appears only with client-bill-info and an EU country or EUR. Confirming it writes vies_validated on the active company_billing_information row. Cancel leaves the switch as it was.
Configure the credit line
Configurar crédito is the offcanvas that changes the live line. The header repeats the current limit, days, and cutoff. The form has the same three fields. Below it, Historial de crédito lists every history row.
A pending (not yet approved) history row locks the form, Crear Solicitud, and Borrar. Approve or delete that row first.
What Crear Solicitud does
The label is always Crear Solicitud. The path depends on what you typed versus the live line:
| Change | What happens |
|---|---|
| Pure decrease of a live line: limit and/or days go down, cutoff stays the same | No credit request. A pending history row is stored. Another operator with manage-credits-line approves it; that is when the company line updates. See Credit line decrement. |
| Increase of limit or days, change of cutoff, new line (no live limit yet), or any mix that is not a pure decrease | Confirm Se creará una solicitud de crédito para esta empresa. The app creates a credit-line request and opens Contabilidad → Solicitudes de Crédito on that ticket (/credit-line-requests?ticketId=…). The live line does not change until that request is approved and applied. See Credit line requests. |
Negative limit or days are refused. The cutoff catalog comes from credit types.
Other actions in the same panel
| Button | When it shows | What it does |
|---|---|---|
| Extender línea | Permission extend-credit-line and the gate is visible | Adds a few extra days immediately, without a request. Disabled if an extension is still active or this UTC month is at the cap. See Credit line extension. |
| Borrar | There is a live line and no pending history | Records a cancellation history row (empty limit). It is not a credit request and it is not a decrement. |
| Aprobar on a history row | manage-credits-line; 45+ days also needs approve-long-credit-line | Applies the pending row to the company. |
| Eliminar on a pending history row | manage-credits-line | Drops the pending row without changing the line. |
History rows from an extension show an up-arrow (granted) or undo (restored) next to the days. A cancellation row is highlighted in red.
Frequently Asked Questions
Why is an STP card gray if it still shows remaining?
The remaining is smaller than the amount in the form. The payment cannot be larger than what that STP still has.
Can one tracking key pay two credits?
Yes, for the same company, until the STP (or Ecart order) is consumed. Each payment is a separate abono.
I changed the amount and the cards disappeared.
The list belongs to the amount that was searched. Put the new amount first and choose Pagar again.
Role 2 sees Pagar but the payment fails.
The button is shown for roles 1, 2, and 7. The API only accepts roles 1 and 7.
Where is the global credits list?
/accounting/credits without c_id. Same table, plus the company column and sales / KAE filters. No toolbar.
I lowered the limit in Configurar crédito and it did not open a credit request.
A straight decrease of a live line (cutoff unchanged) stores a pending history row in that same panel. Another operator approves it there. A request is created only when you raise the line, change cutoff, or start a line that does not exist yet.
Why is Crear Solicitud disabled?
There is already a pending history row, or you do not have client-bill-config. Approve or delete the pending row first.
Related
- Technical documentation: Client payments
- Credit line extension
- Credit line decrement
- Credit line requests
