For AI agents: visit https://docs.prahsys.com/llms.txt for an index of all pages formatted in Markdown and endpoints in OpenAPI.
Jump to Content
Prahsys
Concepts & GuidesExamplesAPI Reference
Prahsys
Concepts & Guides
Concepts & GuidesExamplesAPI Reference

Getting Started

  • API Keys | Authentication
  • Environments
  • Setup your Prahsys Account

API Concepts

  • Webooks
    • Local Testing with Ngrok
    • Authenticate Incoming Webhook Request
  • Pagination
  • Filtering and Sorting
  • Analytics

Merchant Concepts

  • Create a New Merchant
  • Live / Sandbox Merchants
  • New Merchant Zod Object

Payment Concepts

  • Test Payment Cards
  • PCI Compliance
  • Orders
    • Pay Schedules
      • Payment Plan Example (with autopay)
      • Subscription Example (with autopay)
  • Payments Integrations
    • Pay Portal
    • Pay Session
    • Pay API
  • Tokenization
  • Transactions
  • Payouts
  • Webhooks
Powered by 

Subscription Example (with autopay)

End-to-end example of a subscription with autopay, from order creation to cancellation.

    • The scenario
    • Subscription status lifecycle
    • 1. Create the order
    • 2. Start the subscription
      • Option A: Customer starts via the invoice page
      • Option B: Merchant starts via the API
    • 3. What happens each month
      • The monthly cycle
      • Running billing
    • 4. Cancelling the subscription
    • 5. What if autopay fails?
    • Subscription vs. payment plan — quick comparison
    • Email reference
    • Webhook reference