Skip to main content

Orders

An order is a customer's request to purchase items. PaymentsAI splits orders into two kinds:

  • Subscriptions — recurring orders, charged on a schedule defined by the plan's recurringInterval. See Subscriptions.
  • One-time orders — a single purchase with no renewal. See One-time order.

Every order generates at least one invoice. A subscription generates a new invoice for each billing cycle.

Pages in this section

PageCovers
SubscriptionsWhat a subscription is and the supported subscription models.
One-time orderOne-time orders and how they differ from subscriptions.
Subscription flowEnd-to-end flow from product creation to first renewal.
Subscription statusesThe full set of subscription statuses.
Hosted payment formHow the hosted form processes the first payment.
Required fieldsThe fields a subscription POST must include.
Subscription pausesPausing and resuming subscriptions.
Subscription cancellationsImmediate and scheduled cancellation.
Subscription reactivationReactivating a canceled subscription.
Upgrade and downgradeChanging the plan on an active subscription.
ProrationHow partial cycles are billed on plan changes.
Dunning and retriesRetry behavior when a renewal payment fails.
Billing cyclesAnchor dates and billing timing.
Subscription webhooksWebhook events for the subscription lifecycle.
Migration from another providerImporting an existing subscription book.
Subscription troubleshootingPatterns that look like they should work but don't.