Contacts

Link customer subscriptions or manage their private portal access

Requires manage:contacts. link accepts 1–50 explicitly selected existing subscriptions; it preserves prices and schedules. unlink removes portal visibility without cancellation. payment_method_session returns checkoutUrl for the selected link and only updates that subscription's card after completion. portal_link returns {portal:{accessId,portalUrl,expiresAt}}, reusing an active link or creating a 30-day link. revoke_portal revokes all this customer's portal tokens, including unfinished token-authorized card updates. No action sends email, creates subscriptions, or collects an invoice. Actions require explicit user intent.

post/contacts/{id}/subscriptions

Request

  • Base URL: https://ledgerhq.pro/api/v1
  • URL: https://ledgerhq.pro/api/v1/contacts/{id}/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

idstring uuid required

Customer contact in the selected selling company

Query parameters

ownerPortal'1'

Return card setup to the company-owner portal's customer subscriptions dialog

Request body

OR
OR

Response

Link/unlink/revoke receipt, secure checkoutUrl, or private portal link

Changes

No recorded changes to this operation across all 3 revisions of this API.