Skip to main content
A subscription generates invoices for a customer automatically on a schedule — daily, weekly, monthly, or yearly. Swipe creates each invoice when it falls due; you just define the schedule once.

Create a subscription

There’s no separate create-subscription endpoint — a subscription is a document. Call Create a document with document_type: "subscription" and a subscription_details object describing the schedule:
  • repeat + repeat_type — the cadence: every 1 × months above; repeat_type is one of days, weeks, months, years
  • start_time / end_time — when the schedule runs, DD-MM-YYYY
  • send_email / send_sms / send_wtsp — deliver each generated invoice to the customer automatically
Subscriptions must be enabled on your Swipe account — otherwise creation fails with SUBSCRIPTIONS_NOT_ENABLED. Enable them in the Swipe dashboard.

Track subscriptions and their invoices

List of subscriptions returns subscriptions over a date range, filterable by status and customer_id. Each entry’s hash ID feeds Get subscription details, which includes the invoices generated so far. The generated invoices are ordinary documents — fetch their PDFs and record payments against them as usual.
Subscriptions list in the Swipe dashboard

Subscriptions and their generated invoices in the Swipe dashboard

Endpoints

List of subscriptions

Filter by date range, status, and customer.

Get subscription details

One subscription with its generated invoices.