Update Backend Commerce --> Billing; fix BAPI links#3381
Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
|
Pushed some additional BAPI link fixes in cc3d716:
While verifying these against the latest BAPI spec ( The Two SDK reference pages have prose drift outside the URL. Let me know if any of these are incorrect. |
Renames commerce-* type docs to billing-* to match the BillingApi naming, updates manifest and redirects, and corrects type definitions to match the source (CommercePlan, CommerceSubscriptionItem). Adds docs for the previously-undocumented extendSubscriptionItemFreeTrial method. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
I've updated anything that still referenced |
|
@alexisintech have pushed a small commit to fix a malformed link + left a comment. Other stuff I noticed:
Gonna test the links now! |
|
@manovotny @alexisintech made a list of all of the links that needed testing: https://www.notion.so/clerkdev/Testing-links-BAPI-36c2b9ab44fe80dfac27de87b42d3b91?source=copy_link. If it helps! |
yeah I noticed that as well when I did the search all for commerce - but the api errors docs are generated from our go specs. it's a good point that we can initiate the conversation and ask team sdk if they intend on changing them 👀 and to the typedoc point - yes! I missed this, we should totally do that. I'll open a typedoc pr! |
|
typedoc PR created: clerk/javascript#8655 |
|
asked team SDK about the commerce errors: https://clerkinc.slack.com/archives/C0AJBKMHB51/p1779829689567829 |
|
typedoc has been updated for BAPI links! [ci] Update Typedoc (0796911) - Core 3 I believe this should be good to merge :) @SarahSoutoul |
…rial.mdx Co-authored-by: Sarah Soutoul <sarah@clerk.dev>






🔎 Previews:
What does this solve? What changed?
BAPI link fixes
Scalar requires that HTTP methods (
GET,POST,PATCH,DELETE) be capitalized in URLs, otherwise the link is wrong. This PR audits every BAPI reference link in the docs and fixes the lowercase ones, plus catches a few links left stale by the commerce → billing rename.This PR also:
commerce-*tobilling-*to match the source (BillingApi,BillingPlan,BillingSubscription,BillingSubscriptionItem):types/commerce-plan.mdx→types/billing-plan.mdxtypes/commerce-subscription.mdx→types/billing-subscription.mdxtypes/commerce-subscription-item.mdx→types/billing-subscription-item.mdxmanifest.jsonand adds redirects.extendSubscriptionItemFreeTrial(), which exists inBillingApi.tsbut was previously undocumented.Related changes were made in
clerk/javascriptto update broken BAPI links there as well: clerk/javascript#8655TODO: test every single URL. Ensure the version is getting injected and that the URL is working.
Deadline
High priority - broken links in prod docs, missing reference info
Other resources