For AI agents: a documentation index is available at the root level at /llms.txt and /llms-full.txt. Append /llms.txt to any URL for a page-level index, or .md for the markdown version of any page.
  • Get Started
    • Introduction
    • Quickstart
    • Authentication
  • API Reference
      • GETGet Current Subscription
      • POSTSubscribe
      • POSTCancel Subscription
      • POSTChange Plan
      • POSTCancel Scheduled Change
      • GETList Payment Methods
      • POSTAdd Payment Method
      • DELDelete Payment Method
      • PUTSet Default Payment Method
      • GETGet My Credits
      • GETGet My Plan Limits
      • GETList Invoices
      • GETGet Current Notification Preferences
      • PATCHUpdate Current Notification Preferences
      • GETList My Templates
  • Python SDK
    • Install
    • Usage
    • Errors
  • CLI
    • Overview
LogoLogo
API Referenceusers

Cancel Scheduled Change

POST
/api/v1/users/me/subscription/cancel-scheduled-change
POST
/api/v1/users/me/subscription/cancel-scheduled-change
$curl -X POST https://api.onepin.ai/api/v1/users/me/subscription/cancel-scheduled-change \
> -H "Authorization: Bearer <token>" \
> -H "Content-Type: application/json" \
> -d '{}'
1{
2 "data": {
3 "id": "d290f1ee-6c54-4b01-90e6-d701748f0851",
4 "plan": {
5 "id": "a3f1c2d4-5b6e-4f7a-9c8d-123456789abc",
6 "name": "Pro Plan",
7 "tier": "paid",
8 "limits": {
9 "projects": 50,
10 "storage_gb": 100
11 },
12 "billing_interval": "monthly",
13 "amount": 2999,
14 "currency": "USD",
15 "display_order": 2
16 },
17 "status": "active",
18 "current_period_start": "2024-01-01T00:00:00Z",
19 "current_period_end": "2024-01-31T23:59:59Z",
20 "cancel_at_period_end": false,
21 "canceled_at": null,
22 "scheduled_plan": null,
23 "scheduled_at": null
24 },
25 "meta": {
26 "request_id": "7f9c2ba4-1d3e-4f6a-8b2c-9e7d5f4a123b",
27 "timestamp": "2024-04-27T12:00:00Z"
28 }
29}
Cancel a scheduled plan downgrade.
Was this page helpful?
Previous

List Payment Methods

Next
Built with

Authentication

AuthorizationBearer
Clerk JWT token

Response

Successful Response
dataobject
metaobject

Errors

422
Unprocessable Entity Error