Print the exact subscription id and the account mode used for the request.

Retrieve the subscription by id before cancelling.

If retrieval fails, list subscriptions for the customer id.

Check whether the subscription was already cancelled.

Cancel using the verified id and record the returned status.