---
title: "Cancel Trial"
method: POST
path: "/api/credits/trial/cancel"
tags: ["trials"]
---

# Cancel Trial

`POST /api/credits/trial/cancel`

## Response `200`

Successful Response

- TrialStatusResponse
  - `eligible` boolean
  - `offer` TrialOfferResponse
    - `token` string, required
    - `version` string, required
    - `duration_days` integer, required
    - `tier` 'BASIC' | 'PRO' | 'MAX' | 'BUSINESS', required
    - `billing_cycle` 'monthly' | 'yearly', required
    - `unit_amount` integer, required
    - `currency` string, required
    - `onboarding_credit_amount` integer, required
  - `status` string, nullable
  - `rejection_reason` 'intro_offer_already_used' | 'card_verification_failed'
  - `ends_at` string, date-time, nullable
  - `cancel_at_period_end` boolean
  - `allowance_used_percent` number, nullable
  - `active` boolean
  - `converted` boolean
  - `onboarding_credits_previously_received` boolean

## Other responses

- `401` — Authentication required
- `409` — No cancelable trial subscription
- `502` — Stripe cancellation temporarily unavailable

## Changes

- **2026-09-09** `a9d43961f114` — 1 info
  - endpoint added

[Change history](https://skmtc.dev/significant-gravitas/apis/autogpt-agent-server/changes/api/credits/trial/cancel/post.md)

---

[API](https://skmtc.dev/significant-gravitas/apis/autogpt-agent-server.md) · [All operations](https://skmtc.dev/significant-gravitas/apis/autogpt-agent-server/llms.txt) · [OpenAPI document](https://skmtc.dev/significant-gravitas/apis/autogpt-agent-server/revisions/b84a51b99815?raw)
