logoAccess

Retrieve the portal configuration

GET
/api/v1/billing_portal/configuration

What customers can do in the portal. A merchant who has never changed it gets Access's recommended settings, with created null.

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

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 GET 'https://api.tryaccess.xyz/api/v1/billing_portal/configuration' \  -H 'x-api-key: string'
{  "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?