import Stigg from '@stigg/typescript';const client = new Stigg({ apiKey: process.env['STIGG_API_KEY'], // This is the default and can be omitted});const cancelSubscription = await client.v1.subscriptions.futureUpdate.cancelPendingPayment('x');console.log(cancelSubscription.data);
{ "data": { "id": "<string>" }}
Subscriptions
Cancel pending payment update
Cancels a subscription update that is pending payment completion.
DELETE
/
api
/
v1
/
subscriptions
/
{id}
/
future-update
/
pending-payment
JavaScript
import Stigg from '@stigg/typescript';const client = new Stigg({ apiKey: process.env['STIGG_API_KEY'], // This is the default and can be omitted});const cancelSubscription = await client.v1.subscriptions.futureUpdate.cancelPendingPayment('x');console.log(cancelSubscription.data);