Skip to content

Error reference

Trial unavailable

A free trial is only available on the Free plan.

Code
trial_unavailable
HTTP status
409
Category
conflict
Severity
warn
Retryable
No
Domain
billing

How to fix

Review the request and try again. The response `detail` explains the specific problem.

Example response

Every error is returned as application/problem+json (RFC 9457). The detail is the specific, actionable message; the code is stable and safe to branch on.

{
  "type": "https://skedcast.com/errors/trial_unavailable",
  "title": "Trial unavailable",
  "status": 409,
  "category": "conflict",
  "code": "trial_unavailable",
  "detail": "A free trial is only available on the Free plan.",
  "correlationId": "c-1f2e3d4c-…",
  "severity": "warn"
}

Handle it in code

try {
  await skedcast.posts.create(input);
} catch (err) {
  if (err instanceof SkedcastApiError && err.code === 'trial_unavailable') {
    // A free trial is only available on the Free plan.
  }
}