How to cancel Stripe subscriptions at period end (instead of immediately)?

I’m using the Stripe integration to manage recurring subscriptions. Right now, when I cancel a subscription, Momen’s backend sends a DELETE /v1/subscriptions/{id} request to Stripe.

Example response from Stripe:
{
“id”: “sub_1SdEmlHrsonTp9JOZv3CK67X”,
“object”: “subscription”,
“status”: “canceled”,
“cancel_at_period_end”: false,
“canceled_at”: 1765479415,
“ended_at”: 1765479415,
“current_period_end”: 1768156819,
}

As you can see, status is already canceled, “cancel_at_period_end” is “false”, and “ended_at” is set. This means the subscription is terminated immediately, even though" current_period_end" is in the future.

However, I would like the subscription to: stay active until the end of the already paid billing period, and only be canceled automatically at “current_period_end”.

According to Stripe’s documentation, this is normally done by updating the subscription and setting “cancel_at_period_end=true”

My question:

Is there a way in Momen to change the cancellation behavior so that:

instead of calling DELETE /v1/subscriptions/{id} (immediate cancel),
calls POST /v1/subscriptions/{id} with cancel_at_period_end=true

Thanks

We don’t support modifying this for now; the current workaround is to use the API to implement the unsubscribe behavior yourself.