← Back to recipes
Recipe

Subscription Cancellation Request

This recipe creates a sender inbox, sends the cancellation request, and lists recent outbound email so the request is visible from the CLI.

Estimated cost~$0.01 / request
ChannelsEmail
Get started in docs →
Step 1

Set vendor variables

Define the vendor support address and the product or subscription name.

Set vendor variables
export VENDOR_EMAIL="support@service.example"
export SUBSCRIPTION_NAME="Example Pro"
Step 2

Create the sender inbox

Create a dedicated inbox for account and cancellation requests.

Create the sender inbox
ACCOUNT_INBOX=$(spix --json email inbox create \
  --username account-help \
  --name "Personal Agent" \
  | jq -r '.data.address')
Step 3

Send the cancellation email

Send a direct cancellation request to the vendor from the new inbox.

Send the cancellation email
spix --json email send \
  --sender "$ACCOUNT_INBOX" \
  --to "$VENDOR_EMAIL" \
  --subject "Cancel my $SUBSCRIPTION_NAME subscription" \
  --body "Hello, please cancel my $SUBSCRIPTION_NAME subscription at the end of the current billing period and confirm once the cancellation is complete."
Step 4

Inspect the outbound email log

List recent outbound emails so the request is visible from the CLI.

Inspect the outbound email log
spix --json email list \
  --direction outbound \
  --limit 10
Build your own recipe

Install Spix, then adapt this recipe to your own flow.

Use the docs to adjust the playbook goal, numbers, inboxes, and follow-up messages for your own contacts and channels.

Open the docs →