> ## Documentation Index
> Fetch the complete documentation index at: https://sudomock.com/docs/llms.txt
> Use this file to discover all available pages before exploring further.

> ## Agent Instructions
> The base URL is https://api.sudomock.com.
> Authenticate every request with the x-api-key header. Keys begin with sm_.
> A render returns the finished image at data.print_files[0].export_path. A request sent with is_async true returns a job_id to poll at GET /api/v1/jobs/{job_id}.
> Prefer the official SDKs over hand-written HTTP calls: npm install sudomock for Node, pip install sudomock for Python.

# How to cancel a subscription

> What happens to credits and templates when a plan ends.

Cancel from the [Billing](https://sudomock.com/dashboard/billing) page. Stay on
the plan tab, use **Manage** on the plan card, and cancel in the portal that
opens. The subscription runs to the end of the period you have already paid for
and ends there, so nothing is cut off the moment you press the button and no
further charge is made. The control belongs to whoever owns the billing on the
account, so an invited member sees the plan without the buttons that change it.

## What happens to credits

At the end of that period the plan's monthly allowance is set to zero, because
the month it belonged to is over.

Extra credits are not touched. They were paid for up front and sold as credits
that do not expire, so they stay on the account and keep paying for work after
the plan has ended.

A [pay as you go balance](/docs/knowledge-base/how-pay-as-you-go-works) stays too, and
it stays spendable. What changes is the price it is spent at: a plan rate is
part of what a plan sells, so once the subscription ends the balance is drawn at
the standard per operation price instead. The billing page states this before
you cancel rather than leaving it to a receipt.

## What happens to saved templates

Cancelling deletes nothing. Your PSD mockups and photo mockups stay in the
library, keep their UUIDs, and keep rendering for as long as something is paying
for the render.

Once the account is back on the free tier, unused templates enter a cleanup
schedule. A mockup that has gone 7 days without a successful render gets a first
email, then two more two days apart, and is removed two days after the last one.
Rendering it at any point during that window clears the warnings and puts it
back to the start. Templates on a paid plan are never part of this, and neither
is an account holding a pay as you go balance or one that has topped up in the
last 90 days.

So there are three ways to keep a library intact: stay on a plan, keep a balance
funded, or render the files you mean to keep before the window closes.

## What else changes on the free tier

Your API keys go on working, and requests draw on whatever is left. The ceiling
on how many templates you can store is lower, so new uploads can be refused with
`psd_limit_reached` while everything already stored carries on rendering. An
account with no plan and no balance renders at trial width with a watermark,
which a plan or a funded balance lifts again.

## Cancelling is not deleting

A cancelled account keeps its files, its keys and its history, which is what
makes coming back a matter of starting a plan again. Removing the account itself
is a separate request, and
[How to delete your account](/docs/knowledge-base/how-to-delete-your-account) covers
what it takes with it.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.