logoAccess

Update the portal configuration

POST
/api/v1/billing_portal/configuration

Changes only the fields you send. A metadata value of "" removes that key.

Authorization

apiKeyHeader
headerx-api-key<token>

API key for authentication. Generate from the dashboard or via POST /v1/api-keys.

Header Parameters

x-api-key*string

API key for authentication

Length1 <= length

Request Body

  1. body
business_profile?
default_return_url?|
Formaturi
Lengthlength <= 2048
features?
metadata?

Response Body

Response for status 200

application/json
  1. response
id*string
object*string
active*boolean
is_default*boolean
business_profile*
default_return_url*string|null
features*
metadata*
created*|

Unix seconds

updated*|

Unix seconds

curl -X POST 'https://api.tryaccess.xyz/api/v1/billing_portal/configuration' \  -H 'x-api-key: string' \  -H 'Content-Type: application/json' \  -d '{}'
{  "id": "bpc_01J9Z8K2P3Q4R5S6T7U8V9W0X1",  "object": "billing_portal.configuration",  "active": true,  "is_default": true,  "business_profile": {    "headline": "string",    "privacy_policy_url": "string",    "terms_of_service_url": "string"  },  "default_return_url": "string",  "features": {    "customer_update": {      "enabled": true,      "allowed_updates": [        "string"      ]    },    "invoice_history": {      "enabled": true    },    "subscription_cancel": {      "enabled": true,      "mode": "at_period_end",      "cancellation_reason": {        "enabled": true,        "options": [          "string"        ]      }    },    "subscription_pause": {      "enabled": true    }  },  "metadata": {},  "created": 0,  "updated": 0}

How is this guide?