Link, unlink, reprice, cancel, or update a linked subscription's card
Link the selected Stripe subscriptions to this company without changing billing or sending email. Existing onboarding subscriptions and subscriptions linked to another company cannot be assigned, and linking is refused while the company's onboarding pay link is open or paid. Repeated links to the same company are idempotent. Unlink removes portal access while leaving Stripe billing unchanged. payment_method_session returns secure Stripe Checkout; completion changes only that subscription's payment method and adds no immediate invoice-payment attempt. change_price sets a new monthly price in integer cents for a single fixed monthly charge; it applies from the next billing period with no proration, and other shapes return 409 to be managed in Stripe. cancel ends the subscription at the end of the current period. Each action requires explicit user intent; API callers must verify selected customer and subscription identities before linking.
Request
- Base URL: https://ledgerhq.pro/api/v1
- URL: https://ledgerhq.pro/api/v1/companies/{companyId}/billing/subscriptions
- Auth: one of:
- HTTP bearer and API key in header x-organization-id
- HTTP bearer and API key in header x-organization-id
Path parameters
LedgerHQ company UUID
Request body
Response
{linked:true}, {unlinked:true}, {checkoutUrl:string}, {changed:boolean}, or {cancelAtPeriodEnd:true}
Changes
No recorded changes to this operation across all 5 revisions of this API.