POST /v1/billing_portal/configurations/{configuration}

Updates a configuration that describes the functionality of the customer portal.

Servers

Path parameters

Name Type Required Description
configuration String Yes

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
active Boolean No

Whether the configuration is active and can be used to create portal sessions.

expand[] Array No

Specifies which fields in the response should be expanded.

business_profile Object No

The business information shown to customers in the portal.

business_profile.headline No
business_profile.terms_of_service_url No
business_profile.privacy_policy_url No
login_page Object No

The hosted login page for this configuration. Learn more about the portal login page in our integration docs.

login_page.enabled Boolean Yes
metadata No

Set of key-value pairs that you can attach to an object. This can be useful for storing additional information about the object in a structured format. Individual keys can be unset by posting an empty value to them. All keys can be unset by posting an empty value to metadata.

features Object No

Information about the features available in the portal.

features.payment_method_update Object No
features.payment_method_update.enabled Boolean Yes
features.subscription_update Object No
features.subscription_update.products No
features.subscription_update.enabled Boolean No
features.subscription_update.proration_behavior String No

Possible values:

  • "create_prorations"
  • "always_invoice"
  • "none"
features.subscription_update.default_allowed_updates No
features.subscription_update.schedule_at_period_end Object No
features.subscription_update.schedule_at_period_end.conditions No
features.customer_update Object No
features.customer_update.allowed_updates No
features.customer_update.enabled Boolean No
features.invoice_history Object No
features.invoice_history.enabled Boolean Yes
features.subscription_cancel Object No
features.subscription_cancel.cancellation_reason Object No
features.subscription_cancel.cancellation_reason.options No
features.subscription_cancel.cancellation_reason.enabled Boolean Yes
features.subscription_cancel.enabled Boolean No
features.subscription_cancel.mode String No

Possible values:

  • "immediately"
  • "at_period_end"
features.subscription_cancel.proration_behavior String No

Possible values:

  • "create_prorations"
  • "always_invoice"
  • "none"
default_return_url No

The default URL to redirect customers to when they click on the portal's link to return to your website. This can be overriden when creating the session.

How to start integrating

  1. Add HTTP Task to your workflow definition.
  2. 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.
  3. Click Test request to test run your request to the API and see the API's response.