Skip to content

docs(docs): migrate POST /api/stripe/portal/create#182

Open
arpitgupta1214 wants to merge 2 commits intomainfrom
migrate/stripe-group4
Open

docs(docs): migrate POST /api/stripe/portal/create#182
arpitgupta1214 wants to merge 2 commits intomainfrom
migrate/stripe-group4

Conversation

@arpitgupta1214
Copy link
Copy Markdown
Collaborator

Documents the new `POST /api/subscriptions/portal-sessions` endpoint that pairs with the existing `POST /api/subscriptions/sessions` to complete chat's stripe-outbound migration (group 4 of the chat→api migration plan).

Test plan

  • `jq empty` validates both `accounts.json` and `docs.json`
  • Mintlify preview renders the new page under Subscriptions

Documents the new POST /api/subscriptions/portal-sessions endpoint
that pairs with the existing POST /api/subscriptions/sessions for
chat's stripe-outbound migration (group 4).
@coderabbitai
Copy link
Copy Markdown

coderabbitai Bot commented May 1, 2026

Warning

Rate limit exceeded

@arpitgupta1214 has exceeded the limit for the number of commits that can be reviewed per hour. Please wait 23 minutes and 11 seconds before requesting another review.

To keep reviews running without waiting, you can enable usage-based add-on for your organization. This allows additional reviews beyond the hourly cap. Account admins can enable it under billing.

⌛ How to resolve this issue?

After the wait time has elapsed, a review can be triggered using the @coderabbitai review command as a PR comment. Alternatively, push new commits to this PR.

We recommend that you space out your commits to avoid hitting the rate limit.

🚦 How do rate limits work?

CodeRabbit enforces hourly rate limits for each developer per organization.

Our paid plans have higher rate limits than the trial, open-source and free plans. In all cases, we re-allow further reviews after a brief timeout.

Please see our FAQ for further information.

ℹ️ Review info
⚙️ Run configuration

Configuration used: defaults

Review profile: CHILL

Plan: Pro

Run ID: 0baf2fed-2ccd-4ca6-b34c-e9f677a0176b

📥 Commits

Reviewing files that changed from the base of the PR and between 200bf15 and bab7126.

📒 Files selected for processing (5)
  • api-reference/openapi/accounts.json
  • api-reference/stripe/checkout-sessions-create.mdx
  • api-reference/stripe/portal-sessions-create.mdx
  • api-reference/subscriptions/sessions-create.mdx
  • docs.json
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch migrate/stripe-group4

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share
Review rate limit: 0/1 reviews remaining, refill in 23 minutes and 11 seconds.

Comment @coderabbitai help to get the list of available commands and usage tips.

Copy link
Copy Markdown

@cubic-dev-ai cubic-dev-ai Bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No issues found across 3 files

Per CHAT_API_MIGRATION_FINDINGS REST cleanup section, update paths
and nav group to align with the dedicated API:
  /api/subscriptions/sessions         -> /api/stripe/checkout-sessions
  /api/subscriptions/portal-sessions  -> /api/stripe/portal-sessions
  Subscriptions nav group             -> Stripe
Copy link
Copy Markdown

@cubic-dev-ai cubic-dev-ai Bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

1 issue found across 6 files (changes from recent commits).

Prompt for AI agents (unresolved issues)

Check if these issues are valid — if so, understand the root cause of each and fix them. If appropriate, use sub-agents to investigate and fix each issue separately.


<file name="api-reference/stripe/portal-sessions-create.mdx">

<violation number="1" location="api-reference/stripe/portal-sessions-create.mdx:3">
P2: The OpenAPI route in frontmatter targets `/api/stripe/portal-sessions`, but this migration is for `/api/subscriptions/portal-sessions`. Update the route so this page documents the correct endpoint.</violation>
</file>

Reply with feedback, questions, or to request a fix. Tag @cubic-dev-ai to re-run a review.

@@ -0,0 +1,4 @@
---
title: 'Create Billing Portal Session'
openapi: '/api-reference/openapi/accounts.json POST /api/stripe/portal-sessions'
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P2: The OpenAPI route in frontmatter targets /api/stripe/portal-sessions, but this migration is for /api/subscriptions/portal-sessions. Update the route so this page documents the correct endpoint.

Prompt for AI agents
Check if this issue is valid — if so, understand the root cause and fix it. At api-reference/stripe/portal-sessions-create.mdx, line 3:

<comment>The OpenAPI route in frontmatter targets `/api/stripe/portal-sessions`, but this migration is for `/api/subscriptions/portal-sessions`. Update the route so this page documents the correct endpoint.</comment>

<file context>
@@ -0,0 +1,4 @@
+---
+title: 'Create Billing Portal Session'
+openapi: '/api-reference/openapi/accounts.json POST /api/stripe/portal-sessions'
+---
</file context>

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant