Skip to content
Finance tasks

Pay suppliers every week

Once a week each Supplier is paid for jobs confirmed three days earlier, minus anything under an open Dispute.

Once a week each Supplier is paid for the jobs Customers confirmed at least three days earlier. Anything under an open Dispute waits.

Needs Supplier

What you get

  • 1payout each Friday per Supplier, for jobs confirmed three or more days agoTransaction
  • 1hold on any amount under an open DisputeDispute
  • 1statement per Supplier, listing each job paidMessage
  • 1Supplier payouts Process, onProcess

Your agent does

Process.enable → Setting.update
You, to your agent

Pay suppliers every Friday.

Pay contractors for finished jobs.

Hold payouts on disputed orders.

# 1. Process.enable
curl -X POST https://api.sb/leaseline.app/processes/process_supplier_payouts/enable \
  -H "Authorization: Bearer $STARTUP_BUILDER_API_KEY"

# 2. Setting.update
curl -X PATCH https://api.sb/leaseline.app/settings/setting_1 \
  -H "Authorization: Bearer $STARTUP_BUILDER_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"value":3,"key":"payouts.clearanceDays"}'
import { $ } from 'startup-builder'

await $.Process.enable({ process: 'process_supplier_payouts' })
await $.Setting.update({ id: 'setting_1', value: 3, key: 'payouts.clearanceDays' })
npx startup-builder do Process.enable --json '{"process":"process_supplier_payouts"}'
npx startup-builder do Setting.update --json '{"id":"setting_1","value":3,"key":"payouts.clearanceDays"}'
{
  "name": "do",
  "arguments": {
    "code": "await $.Process.enable({ process: 'process_supplier_payouts' })\nreturn await $.Setting.update({ id: 'setting_1', value: 3, key: 'payouts.clearanceDays' })"
  }
}

Change it

  • Pay on Mondays instead.
  • Ask me before any payout over $2,000.
  • Hold everything for this Supplier until I say.

Under the hood

Systems
Earnings, Ledger
Nouns
Supplier, Order, Dispute, Setting
Events
Order.confirmed, Bill.paid
Stripe objects
Transfer, Payout

Suppliers stay when they are paid on time, every week, with a statement that matches their own records. The clearance days give a Customer room to report a problem before the money leaves.