Enterprise API reference
Workspace, sub-accounts, transactions, customers, withdrawals, earnings,
settings, webhooks, audit log and the payments partner API.
Interactive reference
The Enterprise API on its own page: every endpoint, schema and a
try-it console. OpenAPI JSON at
/enterprise/docs.json.Webhooks
Signed events for sign-ups, sales, refunds and withdrawals.
AI agents (MCP)
Every endpoint as a tool for Claude, ChatGPT, Cursor or your agent.
Node.js SDK
The
pocketsflow package, enterprise namespace (3.13.0 for
everything on this page).Authenticate
Create a key in Settings > API keys (owners) and send it as a bearer token. Base URLhttps://api.pocketsflow.com, every path under /v1/enterprise.
pk_live_...) don’t work here: /v1/enterprise takes enterprise
keys (ek_live_...) only.
The SDK
Payments partner API
/v1/enterprise/partner/{live|sandbox}/{path} forwards to the payments
partner’s own REST API with our credentials, limited to your sellers’ accounts.
You never hold a partner key.
- Use a seller’s
partnerAccountId(orpartnerSandboxAccountId) from the sub-account row ascompany_idon lists (account_idfor payouts). - Routes: the account and its ledger, account links, payments (read, refund, void, retry), refunds, disputes (read, evidence), products and promo codes, checkout configurations, invoices, memberships (read, update, cancel, pause, resume, extend), members, and read-only payouts and payout methods.
- Anything outside your sellers, or outside the allowed routes, answers
404. Withdrawals never go through it: they use your approval flow. - 120 calls a minute per key. Writes are in your audit log.