Skip to content
API referencePlatformPlatform billing

Grant_platform_subscription

POST
/platform/v1/billing/customers/grant-subscription

Authorization

bearer_auth
AuthorizationBearer <token>

In: header

Header Parameters

X-Project-Id*string

UUID of the project that scopes consumer accounts, devices, sessions, and VSpaces for the request.

Formatuuid

Request Body

application/json

TypeScript Definitions

Use the request body type in TypeScript.

Response Body

application/json

application/json

application/json

application/json

application/json

curl -X POST "https://example.com/platform/v1/billing/customers/grant-subscription" \  -H "X-Project-Id: 11111111-1111-1111-1111-111111111111" \  -H "Content-Type: application/json" \  -d '{    "plan_id": "00713021-9aea-41da-9a88-87760c08fa72",    "reason": "string",    "start_date": "2019-08-24T14:15:22Z",    "user_id_or_email": "string",    "vendor": "stripe"  }'
{  "billing_account_id": "db2251e5-5308-40a7-9f48-3aed5a9ce736",  "plan_id": "00713021-9aea-41da-9a88-87760c08fa72",  "project_id": "405d8375-3514-403b-8c43-83ae74cfe0e9",  "status": "string",  "subscription_id": "aa11a4c2-a467-43db-b413-c4ab0f5cf627"}
{  "detail": "Pool slug must be unique.",  "instance": "urn:forestvpn:trace:a1b2c3d4",  "title": "Validation Error",  "type": "https://fvpn.net/errors/validation"}
{  "detail": "Pool slug must be unique.",  "instance": "urn:forestvpn:trace:a1b2c3d4",  "title": "Validation Error",  "type": "https://fvpn.net/errors/validation"}
{  "detail": "Pool slug must be unique.",  "instance": "urn:forestvpn:trace:a1b2c3d4",  "title": "Validation Error",  "type": "https://fvpn.net/errors/validation"}
{  "detail": "Pool slug must be unique.",  "instance": "urn:forestvpn:trace:a1b2c3d4",  "title": "Validation Error",  "type": "https://fvpn.net/errors/validation"}