Cashlin
Product Integrations Pricing
Sign inSoon Book a walkthrough Soon
Developers

Cashlin API

v1 · REST · JSON
Reference
  1. Overview
  2. Base URL & versioning
  3. Authentication
  4. Rate limits
  5. Core endpoints
  6. Webhooks
  7. Errors
  8. Support
The Cashlin API gives you programmatic, read-and-write access to your own Cashlin workspace — SKUs, demand projections, cash forecasts, and order scenarios. It’s a standard REST API that returns JSON and uses conventional HTTP verbs and status codes. Endpoints below are illustrative of the v1 surface; the live reference is available in your dashboard.

Overview

Use the API to pull the same numbers you see in the app into your own dashboards, spreadsheets, or finance tooling — for example, to read the recommended order for a SKU, fetch your projected cash position, or run a candidate scenario. All requests and responses are JSON, and all traffic is over HTTPS.

Base URL & versioning

Base URLhttps://api.cashlin.io/v1 FormatJSON request & response bodies (UTF-8) VersioningMajor version in the path (/v1). Breaking changes ship under a new version. Time & moneyTimestamps are ISO 8601 (UTC). Monetary values are integer cents with a currency code.

Authentication

The API authenticates with a secret API key, issued from Settings → Developers in your dashboard. Send it as a Bearer token on every request. Keep keys server-side; never embed them in client code. Keys can be scoped (read-only or read-write) and rotated or revoked at any time.

# Authenticated request curl https://api.cashlin.io/v1/skus \ -H "Authorization: Bearer sk_live_•••••••••••••"

Rate limits

Default limit600 requests per minute, per API key HeadersX-RateLimit-Limit, X-RateLimit-Remaining, X-RateLimit-Reset Over limitReturns 429 Too Many Requests — retry after the reset window

Core endpoints

GET/v1/skus

List the SKUs in your workspace with their current cover, lead time, and next order date.

GET/v1/skus/{id}/forecast

Return the demand projection and recommended order quantity for a SKU, with expected cash impact at 30 / 60 / 90 / 180 days.

# Example response (truncated) { "sku_id": "sku_04_magnesium", "recommended_order_units": 14000, "deposit_cents": 7200000, "balance_cents": 16800000, "cover_days": 188, "cash_position": { "d30": 44900000, "d90": 43800000, "d180": 39600000 }, "currency": "USD" }
GET/v1/cash-position

Return your projected cash position over a date range, with subscriber revenue and inventory commitments as components.

POST/v1/scenarios

Evaluate a candidate order without committing it — pass an order size and get back the resulting cash curve, lowest point, and cover.

# Run a scenario curl -X POST https://api.cashlin.io/v1/scenarios \ -H "Authorization: Bearer sk_live_•••" \ -H "Content-Type: application/json" \ -d '{ "sku_id": "sku_04_magnesium", "order_units": 16000 }'

Webhooks

Subscribe to events to keep your systems in sync. We send a signed POST to your endpoint; verify the Cashlin-Signature header against your signing secret.

EventWhen it fires
decision.dueA SKU is approaching its next order date
forecast.updatedA SKU’s forecast or recommendation changes materially
cash.alertProjected cash is set to fall below your configured floor

Errors

The API uses conventional HTTP status codes and returns a JSON error body with a machine-readable code and human-readable message.

StatusMeaning
200 / 201Success
400Invalid request — check parameters
401Missing or invalid API key
403Key lacks scope for this resource
404Resource not found
429Rate limit exceeded
5xxSomething went wrong on our end

Support

API keys, the full endpoint reference, and webhook settings live in your dashboard. For access or questions, email support@cashlin.io.

Cashlin

Cash-flow infrastructure for the inventory decision supplement subscription brands make every quarter.

Cashlin, Inc.
30 N Gould St, Ste R
Sheridan, WY 82801

Product
  • Overview
  • The three views
  • Integrations
  • Pricing
Developers
  • API overview
  • Authentication
  • Endpoints
Legal
  • Privacy Policy
  • Terms of Service
  • Cookie Policy
Get started
  • Book a walkthrough Soon
  • Sign in Soon
  • Contact
© 2026 Cashlin, Inc. · Incorporated in Wyoming · cashlin.io Logos shown are trademarks of their respective owners.