Sign In

@flowcheck/sdk

Package Overview
Dependencies
Maintainers
1
Versions
4
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@flowcheck/sdk

TypeScript SDK for the FlowCheck API — Stripe payouts, Shopify orders, and bank data in one API

Source
npmnpm
Version
0.2.1
Version published
Weekly downloads
13
225%
Maintainers
1
Weekly downloads
 
Created
Source

@flowcheck/sdk

TypeScript SDK for the FlowCheck API — unified access to Stripe revenue and bank transaction data.

Install

npm install @flowcheck/sdk

Quick start

import { FlowCheck } from "@flowcheck/sdk";

const fc = new FlowCheck("fc_live_...");
const { data } = await fc.cashflow("30d");

console.log(`Net: $${data.net / 100}`);

curl equivalent

curl https://developer.usepopup.com/api/v0/cashflow?window=30d \
  -H "Authorization: Bearer fc_live_..."

Example response

{
  "data": {
    "window": "30d",
    "total_inflow": 523400,
    "total_outflow": 187600,
    "net": 335800,
    "daily": [
      { "date": "2026-03-05", "inflow": 18200, "outflow": 4300, "net": 13900 },
      { "date": "2026-03-04", "inflow": 22100, "outflow": 6800, "net": 15300 }
    ]
  },
  "meta": {
    "request_id": "req_abc123",
    "timestamp": "2026-03-05T10:00:00Z",
    "version": "v0"
  },
  "errors": []
}

All amounts are in cents (USD).

Methods

MethodHTTPDescription
register(email)POST /auth/registerCreate account (no key needed)
registrationStatus(token)GET /auth/register/statusCheck registration / get API key
balance()GET /balanceStripe + bank balances
cashflow(window?)GET /cashflowRevenue, expenses, net by day
payouts(params?)GET /payoutsStripe payouts with match status
payout(id)GET /payouts/:idSingle payout with bank match
transactions(params?)GET /transactionsBank transactions from Plaid
discrepancies(params?)GET /discrepanciesMissing or mismatched amounts
reconciliationSummary()GET /reconcile/summary30-day financial health score
reconciliation(payoutId)GET /reconcile/:idPer-payout reconciliation detail
agentPosition()GET /agent/positionFull financial snapshot for AI agents
agentAlerts()GET /agent/alertsActive issues for AI agents
connectStripe(restrictedKey)POST /connect/stripeConnect Stripe account
createPlaidLinkToken()POST /connect/plaid/link-tokenStart Plaid bank connection
exchangePlaidToken(publicToken)POST /connect/plaid/exchangeComplete Plaid connection
webhooks()GET /webhooksList webhook endpoints
createWebhook(url, events)POST /webhooksRegister webhook endpoint
deleteWebhook(id)DELETE /webhooks/:idRemove webhook endpoint

Pagination

List endpoints (payouts, transactions, discrepancies) support cursor-based pagination:

const first = await fc.payouts({ limit: 10 });
console.log(first.data); // first 10 payouts

if (first.meta.has_more) {
  const next = await fc.payouts({ limit: 10, cursor: first.meta.cursor });
  console.log(next.data); // next 10 payouts
}

Error handling

The SDK throws on non-2xx responses. The error includes status and body:

try {
  await fc.balance();
} catch (err) {
  if (err.status === 401) {
    console.log("Invalid API key");
  }
  console.log(err.body); // full error response
}

License

MIT

Keywords

flowcheck

FAQs

Package last updated on 07 Mar 2026

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts