Subscriptions overview

Bill customers on a schedule with a subscription and a payment link.

A subscription is a billing schedule: how often to charge (weekly, monthly or annually), how many intervals between charges, and when to start and stop. On its own it charges nobody. Customers sign up by paying a payment link that the subscription is attached to; each customer who does becomes a subscriber, and Mamo charges their saved card on every billing date.

How it fits together

  1. Create the schedule with Create Subscription.
  2. Attach it to a payment link by passing its identifier as subscription_id to Create Payment Link, with link_type set to inline.
  3. The customer pays the link. That first payment signs them up and saves their card.
  4. Mamo charges them on schedule. You get a subscription.succeeded or subscription.failed webhook for every renewal.

Managing subscriptions

You want toUse
See who's subscribedFetch Subscribers
See every renewal paymentFetch Subscription Payments
Move a subscriber to another planChange Customer Subscription
Stop billing one customerUnsubscribe subscription
Retire the whole planCancel Subscription
📘

Unsubscribe vs. cancel

Unsubscribing stops billing for one subscriber. Cancelling deletes the subscription itself, so no one can sign up to it again.

The Subscription Object page describes the subscription webhook payload field by field.

Try it

Follow the Bill a customer every month recipe in the sandbox.


Did this page help you?