Preview plan change
Preview plan change. Scoped to the organization named by organization_id.
Authorization
bearerAuth AuthorizationBearer <token>
JWT token from authentication
In: header
Path Parameters
organization_id*string
Match
^org_Query Parameters
price_id*string
Length
1 <= lengthHeader Parameters
Endless-Api-Version?string
Pin the caller to an API major (1). Omit to accept the current version. A major this deployment cannot serve is refused with 400 unsupported_api_version.
Response Body
application/json
application/json
application/json
application/json
application/json
application/json
application/json
application/json
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, "effective_at": "string", "next_billing_at": "string", "new_grant": { "credits": 0, "effective_at": "string", "expires_at": "string" }}