Home / Servers / Stripe API / post_customer_sessions
Create a Customer Session
An MCP tool from the Stripe API server, hosted on mcp.hjlabs.in.
Create a Customer Session Creates a Customer Session object that includes a single-use client secret that you can use on your front-end to grant client-side API access for certain customer resources. [POST /v1/customer_sessions]
Name on the gateway: stripe_api__post_customer_sessions · may change things.
Parameters
| Name | Type | Description |
|---|---|---|
components required | object | Configuration for each component. At least 1 component must be enabled. |
customer | string | The ID of an existing customer for which to create the Customer Session. |
customer_account | string | The ID of an existing Account for which to create the Customer Session. |
expand | array | Specifies which fields in the response should be expanded. |
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_customer_sessions",
"arguments": {
"components": "…"
}
}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 customer session tool with components set to ….