Palbase Payments · API
POST
/payments/me/portalCreate billing portal session
Opens a provider-hosted self-service billing portal session for the signed-in customer. 409 provider_customer_gone when the customer's record was deleted on the provider's own pages.
Called by a signed-in user of your app, with their token and the publishable key.
Request body
channelstring · optionalOptional channel key override.return_urlstring · requiredAllowed return URL.curl
curl -X POST "https://<your-ref>.palbase.studio/payments/me/portal" \
-H "apikey: $PALBASE_PUBLISHABLE_KEY" \
-H "authorization: Bearer $USER_ACCESS_TOKEN" \
-H "content-type: application/json" \
-d '{"return_url":"string"}'Responses
200OK
defaultStandard Palbase JSON error envelope (`error` and `error_description`).
Operation CreateMyPortal of payments's contract.