Skip to content

Credit flow diagram

End-to-end credit lifecycle from purchase through reservation at scheduling to settlement after the interview.

flowchart TB
  subgraph purchase["Purchase"]
    Admin["Org admin"]
    Checkout["Checkout session"]
    Webhook["Stripe webhook"]
    Grant["Grant lot + ledger + available"]
    Admin --> Checkout --> Webhook --> Grant
  end

  subgraph reservation["Reservation"]
    Schedule["Schedule interview"]
    Quote["Quote cost"]
    Hold["Reserve from lots"]
    Schedule --> Quote --> Hold
  end

  subgraph settlement["Settlement"]
    Terminal["Interview ends"]
    Worker["Async worker"]
    Final["Settle / release / expiry"]
    Report["Enqueue report"]
    Terminal --> Worker --> Final
    Worker --> Report
  end

  Grant -.->|"increases available"| reservation
  Hold -.->|"hold until end"| settlement

Sophia AI Interview Platform — Internal Documentation