dlogify docs
API referenceBilling

Preview a plan change

POST/v1/orgs/{org_id}/billing/change/preview

Requires role owner or higher.

Authorization

AuthorizationBearer <token>

A session token from /v1/auth/sign-in/email (CLI, scripts).

In: header

Path Parameters

org_id*string

Request Body

application/json

TypeScript Definitions

Use the request body type in TypeScript.

Response Body

application/json

application/problem+json

application/problem+json

application/problem+json

application/problem+json

application/problem+json

application/problem+json

curl -X POST "https://example.com/v1/orgs/string/billing/change/preview" \  -H "Authorization: Bearer $DLOGIFY_SESSION" \  -H "Content-Type: application/json" \  -d '{    "plan_id": "string"  }'
{  "amount_due": 0,  "currency": "string",  "effective_at": "2019-08-24T14:15:22Z",  "kind": "upgrade"}