Dashboard API > Account subscription
Validate a new subscription
Warning: Experimental API
Please note that the Dashboard API is an experimental, prerelease API. This API method is considered unstable, and should be avoided in production environments and automations. Changes may occur at any time without warning.
Body parameters
typestringRequired
Must be exactly "per_owner_pricing_subscription_validation".
relationships.plan.dataRequired
Subscription plan
Type:<a href="/docs/content-management-api/resources/per_owner_pricing_plan">ResourceLinkage<"per_owner_pricing_plan"></a>
Examples
POST https://site-api.datocms.com/per-owner-pricing-subscriptions/validate HTTP/1.1Authorization: Bearer YOUR-API-TOKENAccept: application/jsonX-Api-Version: 3Content-Type: application/vnd.api+json
{ "data": { "type": "per_owner_pricing_subscription_validation", "relationships": { "plan": { "data": { "type": "per_owner_pricing_plan", "id": "124" } } } }}curl -g 'https://site-api.datocms.com/per-owner-pricing-subscriptions/validate' \ -X POST \ -H "Authorization: Bearer YOUR-API-TOKEN" \ -H "Accept: application/json" \ -H "X-Api-Version: 3" \ -H "Content-Type: application/vnd.api+json" \ --data-binary '{"data":{"type":"per_owner_pricing_subscription_validation","relationships":{"plan":{"data":{"type":"per_owner_pricing_plan","id":"124"}}}}}'await fetch( "https://site-api.datocms.com/per-owner-pricing-subscriptions/validate", { method: "POST", headers: { Authorization: "Bearer YOUR-API-TOKEN", Accept: "application/json", "X-Api-Version": "3", "Content-Type": "application/vnd.api+json", }, body: JSON.stringify({ data: { type: "per_owner_pricing_subscription_validation", relationships: { plan: { data: { type: "per_owner_pricing_plan", id: "124" } }, }, }, }), },);