Commet
  • Precios
Iniciar SesiónRegistrarse
Request portal access POST
DocumentaciónRecursosConstruir con AIAPI ReferenceWebhooks

Request portal access

Generate a customer portal URL. Exactly one identifier (email or customerId) is required.

POST
/portal/request-access

Generate a customer portal URL. Exactly one identifier (email or customerId) is required.

Authorization

ApiKeyAuth
x-api-key<token>

In: header

Request Body

application/json

TypeScript Definitions

Use the request body type in TypeScript.

email?string
customerId?string

Response Body

application/json

application/json

application/json

application/json

application/json

application/json

curl -X POST "https://example.com/portal/request-access" \  -H "Content-Type: application/json" \  -d '{}'
{  "success": true,  "data": {    "portalUrl": "string",    "object": "portal_session",    "livemode": true  }}
{  "success": false,  "error": {    "type": "string",    "code": "string",    "message": "string",    "param": "string",    "details": null,    "doc_url": "string"  }}
{  "success": false,  "error": {    "type": "string",    "code": "string",    "message": "string",    "param": "string",    "details": null,    "doc_url": "string"  }}
{  "success": false,  "error": {    "type": "string",    "code": "string",    "message": "string",    "param": "string",    "details": null,    "doc_url": "string"  }}
{  "success": false,  "error": {    "type": "string",    "code": "string",    "message": "string",    "param": "string",    "details": null,    "doc_url": "string"  }}
{  "success": false,  "error": {    "type": "string",    "code": "string",    "message": "string",    "param": "string",    "details": null,    "doc_url": "string"  }}

Upsert regional prices PUT

Create or update regional currency price overrides for a plan price.

Create promo code POST

Create a new promo code. Optionally restrict to specific plans.