Create payment method update session
Changed on<Info>This API is in beta. Endpoints, fields, and behavior may still change, so avoid depending on it in production.</Info>
Creates a link to the Wix page where the workspace owner replaces the payment method that pays for a Wix-billed plan. The link opens a hosted page: open it in a browser, and the owner changes the card there. The page doesn't send them back to Base44 afterwards. You can't change the card through the API. Only the workspace owner can create the link.
Set open_other_payment_methods_tab to true to open the page on adding a new payment method instead of editing the current one.
This works only for workspaces billed through Wix. For a Stripe-billed workspace, use Create billing portal session with flow_type set to payment_method_update. Wix billing is still rolling out, so this can return 404 for your account.
The base rate limit is 20 requests per hour per user. See Rate limits for the multiplier your plan gets.
Request
- Base URLhttps://app.base44.com
- URLhttps://app.base44.com/api/billing/create-update-payment-method-portal-session
- AuthHTTP bearer
Query parameters
true opens the page on adding a new payment method instead of editing the current one. Defaults to false.
Response
A link to the Wix payment method page.
Example response
{
"url": "https://billing.stripe.com/p/session/live_YWNjdF8xTjNYcm1EcjU2TDg5ZGtL"
}Changes
- info
endpoint added
- info