Cancel a subscription at the end of its paid period
curl --request DELETE \
--url https://api.storiza.store/payments/subscriptions/{id} \
--header 'Authorization: Bearer <token>'const options = {method: 'DELETE', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.storiza.store/payments/subscriptions/{id}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.storiza.store/payments/subscriptions/{id}"
headers = {"Authorization": "Bearer <token>"}
response = requests.delete(url, headers=headers)
print(response.text){
"success": true,
"message": "Subscription cancelled successfully",
"data": {
"id": "00000000-0000-4000-8000-000000000000",
"status": "active",
"user": {
"id": "00000000-0000-4000-8000-000000000000"
},
"provider": "balance",
"method": "balance",
"amount": "12",
"currency": "USD",
"durationDays": 30,
"currentPeriodEnd": "2026-10-09T14:57:33.877Z",
"supportsManagement": false,
"metadata": {}
}
}Subscriptions
Cancel a subscription at the end of its paid period
Stops the subscription renewing. The row is kept and access runs to the end of the period already paid for, so this stays reversible with POST /payments/subscriptions/:id until it expires. There is no immediate revocation — the paid period always runs out.
Required API key permission: billing:write
DELETE
/
payments
/
subscriptions
/
{id}
Cancel a subscription at the end of its paid period
curl --request DELETE \
--url https://api.storiza.store/payments/subscriptions/{id} \
--header 'Authorization: Bearer <token>'const options = {method: 'DELETE', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.storiza.store/payments/subscriptions/{id}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.storiza.store/payments/subscriptions/{id}"
headers = {"Authorization": "Bearer <token>"}
response = requests.delete(url, headers=headers)
print(response.text){
"success": true,
"message": "Subscription cancelled successfully",
"data": {
"id": "00000000-0000-4000-8000-000000000000",
"status": "active",
"user": {
"id": "00000000-0000-4000-8000-000000000000"
},
"provider": "balance",
"method": "balance",
"amount": "12",
"currency": "USD",
"durationDays": 30,
"currentPeriodEnd": "2026-10-09T14:57:33.877Z",
"supportsManagement": false,
"metadata": {}
}
}Authorizations
An API key from the Storiza dashboard (API & Integrations), sent as Authorization: Bearer stz_….
Path Parameters
Response
Subscription cancelled successfully
Available options:
true Available options:
Subscription cancelled successfully Schema for Subscription model
Show child attributes
Show child attributes
Example:
{
"id": "00000000-0000-4000-8000-000000000000",
"status": "active",
"user": {
"id": "00000000-0000-4000-8000-000000000000"
},
"provider": "balance",
"method": "balance",
"amount": "12",
"currency": "USD",
"durationDays": 30,
"currentPeriodEnd": "2026-10-09T14:57:33.877Z",
"supportsManagement": false,
"metadata": {}
}
Was this page helpful?