POST /v1/billing_portal/sessions
Creates a session of the customer portal.
Servers
- https://api.stripe.com/
Request headers
Name | Type | Required | Description |
---|---|---|---|
Content-Type |
String | Yes |
The media type of the request body.
Default value: "application/x-www-form-urlencoded" |
Request body fields
Name | Type | Required | Description |
---|---|---|---|
on_behalf_of |
String | No |
The |
flow_data |
Object | No |
Information about a specific flow for the customer to go through. See the docs to learn more about using customer portal deep links and flows. |
flow_data.subscription_update_confirm |
Object | No | |
flow_data.subscription_update_confirm.discounts[] |
Array | No | |
flow_data.subscription_update_confirm.discounts[].promotion_code |
String | No | |
flow_data.subscription_update_confirm.discounts[].coupon |
String | No | |
flow_data.subscription_update_confirm.subscription |
String | Yes | |
flow_data.subscription_update_confirm.items[] |
Array | Yes | |
flow_data.subscription_update_confirm.items[].id |
String | Yes | |
flow_data.subscription_update_confirm.items[].price |
String | No | |
flow_data.subscription_update_confirm.items[].quantity |
Integer | No | |
flow_data.subscription_update |
Object | No | |
flow_data.subscription_update.subscription |
String | Yes | |
flow_data.type |
String | Yes |
Possible values:
|
flow_data.after_completion |
Object | No | |
flow_data.after_completion.hosted_confirmation |
Object | No | |
flow_data.after_completion.hosted_confirmation.custom_message |
String | No | |
flow_data.after_completion.type |
String | Yes |
Possible values:
|
flow_data.after_completion.redirect |
Object | No | |
flow_data.after_completion.redirect.return_url |
String | Yes | |
flow_data.subscription_cancel |
Object | No | |
flow_data.subscription_cancel.retention |
Object | No | |
flow_data.subscription_cancel.retention.type |
String | Yes |
Possible values:
|
flow_data.subscription_cancel.retention.coupon_offer |
Object | Yes | |
flow_data.subscription_cancel.retention.coupon_offer.coupon |
String | Yes | |
flow_data.subscription_cancel.subscription |
String | Yes | |
customer |
String | Yes |
The ID of an existing customer. |
expand[] |
Array | No |
Specifies which fields in the response should be expanded. |
configuration |
String | No |
The ID of an existing configuration to use for this session, describing its functionality and features. If not specified, the session uses the default configuration. |
locale |
String | No |
The IETF language tag of the locale customer portal is displayed in. If blank or auto, the customer’s Possible values:
|
return_url |
String | No |
The default URL to redirect customers to when they click on the portal's link to return to your website. |
How to start integrating
- Add HTTP Task to your workflow definition.
- Search for the API you want to integrate with and click on the name.
- This loads the API reference documentation and prepares the Http request settings.
- Click Test request to test run your request to the API and see the API's response.