Skip to content
Endless Documentation

Preview Billing Plan Change

GET
/organizations/{organization_id}/subscription/preview

Authorization

bearerAuth
AuthorizationBearer <token>

JWT token from authentication

In: header

Path Parameters

organization_id*string
Length1 <= length

Query Parameters

price_id*string
Length1 <= length

Response Body

application/json

curl -X GET "https://example.com/organizations/org_abc123/subscription/preview?price_id=string"
{  "is_upgrade": true,  "current_plan": {    "name": "string",    "price": 0,    "credits": 0  },  "new_plan": {    "name": "string",    "price": 0,    "credits": 0  },  "current_period_end": "string",  "immediate_charge": 0}