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": 0
}'{
"subscriptionItemFeature": {
"id": "<string>",
"createdAt": 0,
"updatedAt": 0,
"livemode": true,
"subscriptionItemId": "<string>",
"featureId": "<string>",
"type": "<string>",
"manuallyCreated": true,
"pricingModelId": "<string>",
"name": "<string>",
"slug": "<string>",
"productFeatureId": "<string>",
"amount": "<unknown>",
"usageMeterId": "<unknown>",
"renewalFrequency": "<unknown>",
"expiredAt": 0,
"detachedAt": 0,
"detachedReason": "<string>",
"resourceId": "<unknown>"
}
}Expire a feature attached to a subscription item, no longer granting the customer access to it
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": 0
}'{
"subscriptionItemFeature": {
"id": "<string>",
"createdAt": 0,
"updatedAt": 0,
"livemode": true,
"subscriptionItemId": "<string>",
"featureId": "<string>",
"type": "<string>",
"manuallyCreated": true,
"pricingModelId": "<string>",
"name": "<string>",
"slug": "<string>",
"productFeatureId": "<string>",
"amount": "<unknown>",
"usageMeterId": "<unknown>",
"renewalFrequency": "<unknown>",
"expiredAt": 0,
"detachedAt": 0,
"detachedReason": "<string>",
"resourceId": "<unknown>"
}
}Epoch milliseconds.
-9007199254740991 <= x <= 9007199254740991Successful response
Show child attributes
Was this page helpful?