Skip to main content
Paste this prompt into your coding agent to build the ledger that answers “did this actually settle” without anyone opening a dashboard. The agent models each transaction type’s statuses, ingests from both webhooks and the API, and tells a late payment apart from a failed one using the cut-off table.

Before you start

  • A Sandbox API key. See Authentication.
  • Your internal ledger or accounting schema, so the agent can join to it.
  • A webhook endpoint registered under Developers > Webhooks in the Dashboard. See Webhooks.

Prompt

Prompt

How to use

  1. Start putting your own reference into transaction metadata today, even before the ledger exists. Rows created without it are the ones you will reconcile by hand.
  2. Give the agent your existing internal schema; a ledger that does not join to your books is a second set of numbers.
  3. Read the open question on the rate limit and take it to Lumx before the backfill runs against real volume.

What the prompt builds

Errors to expect

These codes come from the errors catalog, for the resources this prompt uses. Match on code, not on message.

Transactions

Transaction types and status progressions.

Payment rail cut-off times

Cut-offs and settlement times per rail.

Audit an existing Lumx integration

Find what costs money or fails compliance in a live integration.

Migrate from one PSP per country

Collapse one payment provider per country into one integration.