M Motionworks Population Intelligence

Overage behavior

Default: hard stop

When your credit balance cannot cover a call, the API returns HTTP 402 with the code INSUFFICIENT_CREDITS:

{
  "error": {
    "code": "INSUFFICIENT_CREDITS",
    "message": "Wallet credits exhausted. Top up or upgrade to continue.",
    "status": 402,
    "request_id": "...",
    "product": "router",
    "docs_url": "https://www.mworks.com/developers/docs/",
    "context": {
      "credits_remaining": 0,
      "current_tier": "sandbox",
      "buy_credits_url": "/account/billing/topup",
      "upgrade_url": "/account/billing/upgrade"
    }
  }
}

See INSUFFICIENT_CREDITS in the error code reference.

No partial requests are billed. The request that would have exceeded the balance is rejected in full.

Auto-reload

You can configure auto-reload to avoid downtime:

  • Threshold — the credit balance that triggers a reload (e.g., 500 credits remaining)
  • Top-up amount — the credit balance restored when the threshold trips
  • Frequency cap — minimum hours between auto-reloads (prevents runaway loops)

Configure auto-reload at app2.mworks.com/billing.

Enterprise soft cap

High-volume customers on committed monthly plans can opt into a monthly soft cap instead of a hard stop. Usage continues beyond the allocated balance; the overage is invoiced at month-end at the standard $0.05/credit rate. This is distinct from Strategic Partnership ($250k/yr+), which uses custom contract terms outside the credit model.

Soft cap is a contract term. Contact sales@mworks.com to configure.

Notification thresholds

You will receive email notifications when your balance reaches:

ThresholdNotification
25% remainingLow balance warning
10% remainingCritical balance warning
0% remainingBalance exhausted
Auto-reload triggeredReload confirmation

Configure notification preferences at app2.mworks.com/billing.