Home / Servers / Stripe API / post_billing_portal_sessions
Create a portal session
An MCP tool from the Stripe API server, hosted on mcp.hjlabs.in.
Create a portal session Creates a session of the customer portal. [POST /v1/billing_portal/sessions]
Name on the gateway: stripe_api__post_billing_portal_sessions · may change things.
Parameters
| Name | Type | Description |
|---|---|---|
configuration | string | The ID of an existing configuration to use for this session, describing its… |
customer | string | The ID of an existing customer. |
customer_account | string | The ID of an existing account. |
expand | array | Specifies which fields in the response should be expanded. |
flow_data | object | Information about a specific flow for the customer to go through. See the docs… |
locale | string | The IETF language tag of the locale customer portal is displayed in. If blank… |
on_behalf_of | string | The on_behalf_of account to use for this session. When specified, only… |
return_url | string | The default URL to redirect customers to when they click on the portal's link… |
How to call it
Through the Smart Gateway, any client can run it by name with call_tool, or let the gateway find it with search_tools:
{
"name": "stripe_api__post_billing_portal_sessions",
"arguments": {}
}Or connect the Stripe API server directly, which lists 606 tools including this one:
claude mcp add --transport http hj-stripe-api https://mcp.hjlabs.in/mcp/stripe-api \
--header "Authorization: Bearer YOUR_API_KEY"Try asking
Use the create a portal session tool with configuration set to ….