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.

  1. Create a funding invoice: Call Create Funding with method: "invoice", the amount you want to add, and the invoice details: description, recipient_email, bill_to, company_name and company_address_one. Don't send payable_ids. Lumanu creates the invoice and emails it to recipient_email.
    • API Call: POST /funding
  2. 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.
  3. Link the payment to the invoice: A payment only counts toward its invoice once you link it. The funding's status becomes funded when linked payments cover the full amount, and the money is then available in the wallet balance.
    • Webhook Event: transfer.created fires when money enters or leaves the wallet. Check whether it is the payment you're expecting, or call GET /workspace/{id}/wallet/deposit to list payments that aren't linked yet.
    • API Call: POST /funding/{id}/link-deposit
  4. Create and approve payables: With money in the wallet, create payables for your vendors and creators and approve them.
    • API Call: POST /payable to create a new payable.
    • Webhook Event: payable.created
    • API Call: POST /payable/{id}/approve to approve an existing payable.
    • Webhook Event: payable.approved
  5. Pay the payables: Call Create Funding with method: "balance" and the approved payables' IDs in payable_ids. Lumanu pays them from the wallet balance.
    • API Call: POST /funding (with method: "balance" and an array of payable_ids)
    • Webhook Events: payable.paid fires as the final payout is executed.

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`

Did this page help you?