v1
latestOpenAPI 3.1.02026-07-26500375.1 KBSubscriptions
Cancel Subscription
This endpoint permanently cancels a subscription
post/v1/subscriptions/{id}/cancel
Path parameters
idstring required
Durianpay's subscription identifier. ID that you received on Create Subscription API Response
Headers
Content-Typestring required
Indicates the media type of the resource. value: application/json
X-Request-IDstring
Optional client-supplied idempotency and tracing ID, echoed back in the response.
Response
Subscription cancelled.
Example response
{
"status": "success",
"data": {
"id": "sub_xyz123",
"status": "cancelled",
"cancelled_at": "2026-03-06T10:00:00Z"
}
}