Connect Lago with Dokaai

Bring Lago into your notification workflows.

Connect through n8n to use supported Dokaai actions alongside your existing tools.

Lago logo
Dokaai logo

About Lago

Automate subscription billing, usage metering and invoicing with Lago

What you can automate

Use n8n to connect Lago events to Dokaai actions. Available events and fields depend on the app.

Workflow ideas

Create a billable metric in Lago Send a Dokaai notification

Choose a notification handler and map the required fields in n8n.

Delete a billable metric in Lago Send a Dokaai notification

Choose a notification handler and map the required fields in n8n.

Evaluate a billable metric expression in Lago Send a Dokaai notification

Choose a notification handler and map the required fields in n8n.

These are workflow ideas, not prebuilt templates. Required data and configuration vary by trigger.

Lago operations on n8n

Explore the triggers, actions, and searches available for Lago in n8n. Availability and required fields depend on your account.

Actions

64

Tasks your workflow can perform.

  • Create a billable metric

    Create a billable metric

  • Delete a billable metric

    Delete a billable metric

  • Evaluate a billable metric expression

    Check an expression against a sample event before saving it to a metric

  • Get a billable metric

    Retrieve a single billable metric

  • Get many billable metrics

    Retrieve many billable metrics

+59 more actions
  • Update a billable metric

    Update a billable metric

  • Apply a coupon to a customer

    Give a customer a coupon, optionally on different terms

  • Create a coupon

    Define a coupon

  • Delete a coupon

    Delete a coupon

  • Get a coupon

    Retrieve a single coupon

  • Get many coupons

    Retrieve many coupons

  • Get many applied coupons

    Retrieve coupons that have been given to customers

  • Remove an applied coupon

    Take a coupon back from a customer

  • Update a coupon

    Update a coupon

  • Create a credit note

    Credit specific fee lines on an invoice. Requires a Lago premium licence.

  • Download a credit note PDF

    Render the credit note PDF and return the record. Rendering is asynchronous, so file_url may still be empty on the first call.

  • Estimate a credit note

    Calculate what a credit note would come to, without issuing one. Requires a Lago premium licence.

  • Get a credit note

    Retrieve a single credit note

  • Get many credit notes

    Retrieve many credit notes

  • Void a credit note

    Cancel a credit note. The record is kept with a voided status.

  • Create or update a customer

    Create a customer, or update it if the external ID already exists

  • Delete a customer

    Delete a customer

  • Get a customer

    Retrieve a single customer

  • Get many customers

    Retrieve many customers

  • Estimate the fees an event would produce

    Calculate what an event would be charged without recording any usage. Requires a pay-in-advance charge.

  • Get an event

    Retrieve a single event by its transaction ID

  • Get many events

    Retrieve many events

  • Send a usage event

    Record one usage event. Lago accepts the event and aggregates it asynchronously, so usage will not reflect it immediately.

  • Send many usage events

    Record several usage events in a single request

  • Create a one off invoice

    Bill a customer directly from add-ons. The invoice is issued already finalized.

  • Download an invoice PDF

    Render the invoice PDF and return the invoice. Rendering is asynchronous, so file_url may still be empty on the first call.

  • Finalize a draft invoice

    Issue a draft invoice. Only drafts can be finalized — Lago reports an already-finalized invoice as not found. Drafts require an invoice grace period, which is a premium feature.

  • Get an invoice

    Retrieve a single invoice

  • Get many invoices

    Retrieve many invoices

  • Retry collecting payment

    Ask Lago to attempt payment collection again

  • Update an invoice

    Record a payment status or metadata against an invoice

  • Void an invoice

    Cancel a finalized invoice. The record is kept with a voided status.

  • Create a plan

    Create a plan

  • Delete a plan

    Delete a plan. Lago processes this asynchronously, so the plan stays readable for a moment afterwards.

  • Get a plan

    Retrieve a single plan

  • Get many plans

    Retrieve many plans

  • Update a plan

    Update a plan

  • Add a charge to a plan

    Price a billable metric on a plan

  • Delete a plan charge

    Remove a charge from a plan

  • Get a plan charge

    Retrieve a single charge

  • Get many plan charges

    Retrieve the charges on a plan

  • Update a plan charge

    Update a charge on a plan

  • Create a subscription

    Subscribe a customer to a plan. Sending the same external ID with a different plan upgrades immediately, or schedules a downgrade for the end of the period.

  • Get a subscription

    Retrieve a single subscription. A terminated subscription reports as not found here, but is still returned by Get Many with the terminated status selected.

  • Get many subscriptions

    Retrieve many subscriptions

  • Terminate a subscription

    End a subscription. The record is kept with a terminated status rather than removed.

  • Update a subscription

    Update a subscription

  • Create a wallet

    Open a prepaid credit wallet for a customer

  • Get a wallet

    Retrieve a single wallet

  • Get many wallets

    Retrieve many wallets

  • Terminate a wallet

    Close a wallet. The record is kept with a terminated status rather than removed.

  • Update a wallet

    Update a wallet

  • Top up or void wallet credits

    Add or remove credits on a wallet. Paid and granted credits are recorded as separate transactions, so this can return more than one item.

  • Get many wallet transactions

    Retrieve the transactions on a wallet

  • Create a webhook endpoint

    Register a URL to receive Lago events. An organization may have at most ten endpoints.

  • Delete a webhook endpoint

    Stop sending events to a URL

  • Get a webhook endpoint

    Retrieve a single webhook endpoint

  • Get many webhook endpoints

    Retrieve many webhook endpoints

  • Update a webhook endpoint

    Update a webhook endpoint

HOW IT WORKS

How to connect

Connect Lago and Dokaai in a few steps.

Choose your apps

Open your n8n instance and add the Lago and Dokaai nodes to a workflow.

Connect your accounts

Connect your accounts and choose an available trigger. Install any required community nodes if needed.

Set up your workflow

Choose a Dokaai action, map the required fields, and test your workflow.

Frequently asked questions