Skip to content
Endless Documentation

Change Billing Plan

PATCH
/organizations/{organization_id}/subscription

Authorization

bearerAuth
AuthorizationBearer <token>

JWT token from authentication

In: header

Path Parameters

organization_id*string
Length1 <= length

Request Body

application/json

TypeScript Definitions

Use the request body type in TypeScript.

Response Body

application/json

curl -X PATCH "https://example.com/organizations/org_abc123/subscription" \  -H "Content-Type: application/json" \  -d '{    "price_id": "string"  }'
{  "is_upgrade": true,  "subscription_id": "string",  "new_price_id": "string",  "scheduled_at": "string"}