Lago logo

Lago + Memtro

Ask Lago which invoices are overdue and what a customer has used this period.

Connect Lago with an API key and Memtro reads customers, invoices with payment status, subscriptions, payments, credit notes and usage this period. The key carries the whole organisation's rights, and there is no hourly sync. When you ask, and once an administrator has granted them by name, it can manage customers, plans, coupons, wallets and subscriptions, and send usage events. Many of these move money: finalising or issuing an invoice may email and charge the customer, retrying a payment charges their card, voids and credit notes can refund, and a payment request emails them.

In Memtro

What you can do with Lago in Memtro

Ask in plain English from chat, your editor, a scheduled job or your own agent. The model picks the right Lago tool, reads what it needs, and answers with the source cited.

What it does

  1. 01Customers by name, email or external id, never addresses, phones or tax numbers
  2. 02Invoices by customer, status, payment status, overdue flag and issue date, with amounts due and paid
  3. 03Subscriptions, plans, payments and credit notes, and a customer's usage so far this period
  4. 04When asked and granted, creates, changes or deletes customers, subscribes or terminates subscriptions, changes plans for every subscriber, and sends billable usage events
  5. 05When asked and granted, finalises or issues invoices, which may email and charge the customer, retries a payment, emails a payment request, records manual payments, voids invoices with a refund and issues credit notes
  6. 06When asked and granted, creates or changes plans, add-ons, metrics and coupons, applies coupons, tops up or terminates wallets, and permanently deletes draft invoices, plans or coupons

Acts when asked

When you ask it to

These tools change something in Lago. The model is told to use them only when you ask for exactly that, and an administrator grants each one by name to the teams that may use it; a personal connection acts only after its owner allows it.

  1. 01Create a customer when no customer has that external id
  2. 02Overwrite a customer's name, legal name, email or website
  3. 03Send a billable usage event to a subscription
  4. 04Delete a customer, terminating their subscriptions
  5. 05Finalize a draft invoice (numbers it, may email and charge the customer)
  6. 06Void an invoice, optionally with a credit note and refund
  7. 07Refresh a draft invoice's amounts
  8. 08Retry generating a failed invoice
  9. 09Retry collecting payment on an invoice
  10. 10Issue a credit note on an invoice (credit, refund or offset)
  11. 11Create a coupon
  12. 12Apply a coupon to a customer
  13. 13Create a prepaid-credit wallet for a customer
  14. 14Top up a wallet with paid or granted credits
  15. 15Subscribe a customer to a plan
  16. 16Cancel (terminate) a subscription
  17. 17Change a subscription's name, end date or plan overrides
  18. 18Issue a one-off invoice for add-ons (not sent for payment unless asked)
  19. 19Record a manual payment on an invoice
  20. 20Email a customer a payment request for overdue invoices
  21. 21Set an invoice's payment status or metadata
  22. 22Delete a draft invoice permanently
  23. 23Create a plan
  24. 24Change a plan's name, price or trial (affects its subscribers)
  25. 25Delete a plan with no subscriptions
  26. 26Create an add-on
  27. 27Create a billable metric
  28. 28Change a coupon
  29. 29Delete a coupon
  30. 30Terminate a wallet
  31. 31Void the remaining credit of a credit note

Events

When it happens

Turn events on in the connection's Events tab on the Connections page, choose the kinds you want, and Memtro registers its address with Lago for you. Each event can start a job, with the event as its input, and can be remembered where you choose. Lago signs every delivery, and one whose signature does not check out is refused before it is read.

Events and webhooks
  • 01An invoice was issued
  • 02A draft invoice was made
  • 03A one-off invoice was issued
  • 04A prepaid-credit invoice was paid
  • 05An invoice's payment status changed
  • 06An invoice became overdue
  • 07An invoice payment failed
  • 08An invoice was voided
  • 09A payment dispute was lost
  • 10A customer was created
  • 11A customer was changed
  • 12A subscription started
  • 13A subscription was changed
  • 14A subscription was terminated
  • 15A pending subscription was cancelled
  • 16A trial ended
  • 17A subscription is about to end
  • 18A usage threshold was reached
  • 19A payment succeeded
  • 20A payment needs the customer to act
  • 21A credit note was issued
  • 22A credit note refund failed
  • 23A wallet's balance ran out
  • 24A usage alert fired
  • 25A usage event was rejected
In practice

Ask it like you would a colleague

Once Lago is connected, these are the kinds of things people ask. Plain questions, no syntax. If the answer lives partly in another system you have connected, Memtro looks there too.

Lago logoLago + Memtro
  • Which invoices are overdue, and for how much?

  • How much usage has Acme run up this billing period?

  • Which customers are on the Growth plan?

  • Issue a credit note for the duplicated fee on the Brightwave Ltd invoice

  • Send Northwind a payment request for their two overdue invoices

01

Usage before the bill

The founder asks how Acme's usage is tracking before month end. Memtro reads Acme's subscription and current usage: 1.2 million API calls so far, 2,340 dollars, against last month's invoice of 1,980.

02

Correcting an invoice

Support finds BigCo was charged twice for one fee. Priya Sharma asks Memtro to issue a credit note refunding it. With the action granted, Memtro reads the invoice's fees and issues the credit note for that fee only, and Lago refunds the amount through the payment provider. BigCo may be emailed the credit note.

Teams

Where it fits

The teams that lean on Lago most, a question each of them asks, and what they connect beside it.

Better together

Works with

A record in Lago is rarely the whole story. Connect the systems that hold the rest and Memtro checks them together, then remembers what it learned so the next question starts further along.

Setup

How to connect

Connect withAPI key
  1. 1

    In Lago open Developers → API keys and reveal the organisation's key. Lago has no read-only or scoped keys, so it carries the whole organisation's rights, and an extra key just for Memtro is a premium feature

  2. 2

    Test and live are separate organisations with separate keys: copy the one you mean, and consider granting the money-moving actions on the test organisation first

  3. 3

    Paste the API key into Connections → Lago in Memtro. Leave API host blank for Lago Cloud US, type api.eu.getlago.com for the EU, or your self-hosted API host name only, public with a trusted certificate

  4. 4

    Ask which invoices are overdue

Also works from

Chat in the dashboard, the OpenAI-compatible API, scheduled jobs, and any MCP client: Claude Code, OpenCode, Cursor, Claude Desktop. The Lago tools are the same everywhere.

FAQ

Questions

Can Memtro change anything in Lago?+

Only when you ask, and only what it has been granted: create a customer when no customer has that external id; overwrite a customer's name, legal name, email or website; send a billable usage event to a subscription; delete a customer, terminating their subscriptions; finalize a draft invoice (numbers it, may email and charge the customer); void an invoice, optionally with a credit note and refund; refresh a draft invoice's amounts; retry generating a failed invoice; retry collecting payment on an invoice; issue a credit note on an invoice (credit, refund or offset); create a coupon; apply a coupon to a customer; create a prepaid-credit wallet for a customer; top up a wallet with paid or granted credits; subscribe a customer to a plan; cancel (terminate) a subscription; change a subscription's name, end date or plan overrides; issue a one-off invoice for add-ons (not sent for payment unless asked); record a manual payment on an invoice; email a customer a payment request for overdue invoices; set an invoice's payment status or metadata; delete a draft invoice permanently; create a plan; change a plan's name, price or trial (affects its subscribers); delete a plan with no subscriptions; create an add-on; create a billable metric; change a coupon; delete a coupon; terminate a wallet; void the remaining credit of a credit note. Every other tool reads, searches or lists. The Connections page labels the tools that act, an administrator grants each one by name to the teams that may use it, and a personal connection acts only after its owner allows it.

Who can use a Lago connection?+

A personal connection serves only your own requests. A shared connection serves the organisation: everyone, or only the teams an admin chooses. Admins can always add shared connections; other members need the permission.

Does Memtro store my Lago data?+

Credentials are encrypted at rest. Tool results are cached briefly so agent loops do not repeat identical calls, and the facts the model extracts are saved to your organisation's memory with provenance (system, record and link) so they can be checked and superseded.

How do I connect Lago?+

API key. In Lago open Developers → API keys and reveal the organisation's key. Lago has no read-only or scoped keys, so it carries the whole organisation's rights, and an extra key just for Memtro is a premium feature.

Can Lago start a job?+

Yes. Turn events on in the connection's Events tab on the Connections page, choose the kinds you want, and Memtro registers its address with Lago for you. A job set to start "When an event arrives" then runs once for each matching event, with the event as its input. The run treats the event as outside data, never as instructions, and anything the run remembers is kept as unverified.

Connect Lago in a few minutes

Seven-day free trial, then one monthly price per organisation. Connectors, jobs and memory are never metered.

Where agents remember your company

Sign in, add a provider key, create an API key and point your tools at Memtro. It takes about five minutes.

7-day free trial · card on file, nothing charged until it ends · cancel any time