Start Subscription Timeline
/subscription-timelines/{subscription_timeline_id}/start
Start Subscription Timeline
Path Parameters
subscription_timeline_id: string
Body Parameters
effective_at: optional string
When the subscription should become active. If not provided, the current date and time will be used.
formatdate-time
Returns
Start Subscription Timeline
curl https://api.uselark.ai/subscription-timelines/$SUBSCRIPTION_TIMELINE_ID/start \
-H 'Content-Type: application/json' \
-H "X-API-Key: $LARK_API_KEY" \
-d '{
"checkout_callback_urls": {
"cancelled_url": "https://example.com/callback",
"success_url": "https://example.com/callback"
}
}'
{
"result": {
"action": {
"checkout_url": "checkout_url",
"requires_action_type": "checkout"
},
"result_type": "requires_action"
}
}
Returns Examples
{
"result": {
"action": {
"checkout_url": "checkout_url",
"requires_action_type": "checkout"
},
"result_type": "requires_action"
}
}