VoidhashDocs
DocumentationAPI reference
Dashboard
Essentials
API overview
Authentication
Endpoints
Analytics
Api_keys
Auth
Component_dev_sessions
Component_registry
Components
Development
Events
Experiments
Feature_flag_overrides
Feature_flag_targets
Feature_flags
Ingest_policy
Notification_sends
Notifications
Organizations
Payment_provider_configurations
Payment_provider_products
Paywall_locations
Paywalls
Perks
Persons
Products
Projects
Push_notification_configurations
Schema
Sdk
Users
Webhooks
Analytics
Event capture
Get Development Settings
Update Development Settings
Get Development State
Apply Development Lifecycle Action
Reset Development Data

Apply Development Lifecycle Action

POST
/api/v1/development/lifecycle-actions

Request Body

application/json

TypeScript Definitions

Use the request body type in TypeScript.

action*string

Value in

  • "expire"
  • "revoke"
  • "renew"
  • "refund"
  • "grace_period"
actionId*string
projectId?string|null
targetId*string
targetType*string

Value in

  • "subscription"
  • "purchase"

Response Body

application/json

application/json

application/json

application/json

application/json

application/json

curl -X POST "https://example.com/api/v1/development/lifecycle-actions" \  -H "Content-Type: application/json" \  -d '{    "action": "expire",    "actionId": "string",    "targetId": "string",    "targetType": "subscription"  }'
{  "actionId": "string"}
{  "_tag": "Api/SdkValidationError",  "message": "string"}
{  "_tag": "Api/AuthenticationError",  "cause": "string",  "message": "string"}
{  "_tag": "Api/ActionForbiddenError",  "message": "string"}
{  "_tag": "Api/DevelopmentEnvironmentRequiredError",  "message": "string"}
{  "_tag": "Api/DevelopmentModeServiceError",  "message": "string"}
PreviousGet Development StateNextReset Development Data