Pre-funding Flow
Top up your workspace wallet with a funding invoice first, then pay approved payables from the balance with Create Funding and method balance.
Pre-Funding Flow
The pre-funding model is a method for processing payments where you first load funds into your Lumanu workspace balance. This is similar to topping up a prepaid account. Once the funds have been added and allocated, you can create and approve payables that will draw from this available balance.
This flow is ideal for organizations that want to budget and set aside funds for creator campaigns ahead of time, ensuring a predictable and controlled payment process.
How It Works
You add money to the wallet with a funding invoice, link the payment when it arrives, and then pay approved payables from the balance. Every step can be done through the REST API, without anyone signing in to Lumanu.
- Create a funding invoice: Call Create Funding with
method: "invoice", theamountyou want to add, and the invoice details:description,recipient_email,bill_to,company_nameandcompany_address_one. Don't sendpayable_ids. Lumanu creates the invoice and emails it torecipient_email.- API Call:
POST /funding
- API Call:
- Invoice payment: The recipient, such as your finance team, pays the invoice by ACH or wire using the bank details on it. The money arrives in the workspace's wallet account.
- Link the payment to the invoice: A payment only counts toward its invoice once you link it. The funding's
statusbecomesfundedwhen linked payments cover the full amount, and the money is then available in the wallet balance.- Webhook Event:
transfer.createdfires when money enters or leaves the wallet. Check whether it is the payment you're expecting, or callGET /workspace/{id}/wallet/depositto list payments that aren't linked yet. - API Call:
POST /funding/{id}/link-deposit
- Webhook Event:
- Create and approve payables: With money in the wallet, create payables for your vendors and creators and approve them.
- API Call:
POST /payableto create a new payable. - Webhook Event:
payable.created - API Call:
POST /payable/{id}/approveto approve an existing payable. - Webhook Event:
payable.approved
- API Call:
- Pay the payables: Call Create Funding with
method: "balance"and the approved payables' IDs inpayable_ids. Lumanu pays them from the wallet balance.- API Call:
POST /funding(withmethod: "balance"and an array ofpayable_ids) - Webhook Events:
payable.paidfires as the final payout is executed.
- API Call:
Interaction Diagram
This diagram illustrates the sequence of events, showing how all interactions can be performed via the REST API without requiring users to log into the web app.
sequenceDiagram
participant Client App as Client Application
participant LumanuAPI as Lumanu API
participant Finance as Finance Department
Client App->>+LumanuAPI: 1. POST /funding (method: 'invoice')
LumanuAPI-->>-Client App: Funding object created
LumanuAPI-->>Finance: 2. Sends Funding Invoice
Finance-->>LumanuAPI: 3. Pays Invoice
note right of LumanuAPI: Webhook: `transfer.created`
Client App->>+LumanuAPI: 4. POST /funding/{id}/link-deposit
LumanuAPI-->>-Client App: Funding allocated
Client App->>+LumanuAPI: 5. POST /payable
LumanuAPI-->>-Client App: Payable object created
note right of LumanuAPI: Webhook: `payable.created`
Client App->>+LumanuAPI: 6. POST /payable/{id}/approve
LumanuAPI-->>-Client App: Payable approved
note right of LumanuAPI: Webhook: `payable.approved`
Client App->>+LumanuAPI: 7. POST /funding (method: 'balance', payable_ids)
LumanuAPI-->>-Client App: Payout initiated
note right of LumanuAPI: Webhook: `payable.paid`
Updated 16 days ago