curl --request POST \
--url https://app.flowglad.com/api/v1/subscription-item-features/{id}/expire \
--header 'Authorization: <api-key>' \
--header 'Content-Type: application/json' \
--data '{
"expiredAt": "2023-11-07T05:31:56Z"
}'
{
"subscriptionItemFeature": {
"id": "<string>",
"createdAt": "2023-11-07T05:31:56Z",
"updatedAt": "2023-11-07T05:31:56Z",
"createdByCommit": "<string>",
"updatedByCommit": "<string>",
"livemode": true,
"subscriptionItemId": "<string>",
"featureId": "<string>",
"productFeatureId": "<string>",
"type": "toggle",
"amount": {},
"usageMeterId": {},
"renewalFrequency": {},
"expiredAt": "2023-11-07T05:31:56Z",
"detachedAt": "2023-11-07T05:31:56Z",
"detachedReason": "<string>",
"name": "<string>",
"slug": "<string>"
}
}
curl --request POST \
--url https://app.flowglad.com/api/v1/subscription-item-features/{id}/expire \
--header 'Authorization: <api-key>' \
--header 'Content-Type: application/json' \
--data '{
"expiredAt": "2023-11-07T05:31:56Z"
}'
{
"subscriptionItemFeature": {
"id": "<string>",
"createdAt": "2023-11-07T05:31:56Z",
"updatedAt": "2023-11-07T05:31:56Z",
"createdByCommit": "<string>",
"updatedByCommit": "<string>",
"livemode": true,
"subscriptionItemId": "<string>",
"featureId": "<string>",
"productFeatureId": "<string>",
"type": "toggle",
"amount": {},
"usageMeterId": {},
"renewalFrequency": {},
"expiredAt": "2023-11-07T05:31:56Z",
"detachedAt": "2023-11-07T05:31:56Z",
"detachedReason": "<string>",
"name": "<string>",
"slug": "<string>"
}
}
Successful response
The response is of type object
.
Was this page helpful?