For AI agents: a documentation index is available at the root level at /llms.txt and /llms-full.txt. Append /llms.txt to any URL for a page-level index, or .md for the markdown version of any page.
Logo
LoginSandbox
Platform GuidesAPI DocsSDKMCP ServerChangelog
Platform GuidesAPI DocsSDKMCP ServerChangelog
  • Getting started
    • Introduction
    • Concepts
    • Onboarding guide
  • Use cases
    • Monetizing an AI agent
    • Pricing models for AI products
    • Configuring entitlements for AI products
  • Usage metering & events
    • Meters
    • Usage events
    • Unmatched events
    • Event reprocessing
  • Products & plans
    • Product Catalog
    • Pricing Plans
    • Features & Entitlements
  • Wallets & credits
    • Credit types & wallets
    • Credits in pricing plans
  • Customers & subscriptions
    • Customers
    • Subscriptions
      • Subscription lifecycle
      • Billing cycles & Pro-ration
      • Discounts, commitments, and included volume
      • Customising subscriptions & pricing
      • Subscription Groups
      • Subscription Initialisation
      • Subscription schedules
    • Quotes
  • Invoicing
    • Invoices
    • Invoice corrections
    • Payment Collections
    • Tax
    • Currencies & Exchange rates
    • E-invoicing
  • Analytics & reporting
    • Insights
    • Report downloads
    • Revenue Recognition & Deferred Revenue
  • Integrations
    • CRM
    • ERP
    • Email Providers
    • Data Imports: Event File Uploads
    • Data Exports
    • Payment Service Providers
  • Settings & admin
    • Billing entities
    • Payment Options
    • User management
    • Customising invoices
    • Custom fields
    • Default platform settings
    • API key creation
    • Alert Rules
    • Workflows
  • Workflows
    • Workflow Triggers
    • Workflow Actions
    • Monitoring and Audit
    • Common Use Cases
  • For developers
    • Introduction
    • Authentication
    • Local development setup
    • API
    • Errors
    • Troubleshooting
    • Query Parameters
    • Expanding Responses
    • Idempotency
    • Timestamp formatting
    • Webhooks
    • Locale
    • MCP Server
LoginSandbox
On this page
  • Purpose of the Endpoint
  • Invoice and Payment Behavior
  • Key Points to Remember
Customers & subscriptionsSubscriptions

Subscription Initialisation

Was this page helpful?
Previous

Subscription schedules

Next
Built with

This guide explains how the Subscription Init endpoint handles the invoice and payment process, particularly when the first payment attempt is included or omitted from the request.

Purpose of the Endpoint

The endpoint allows users to create a subscription, set a billing schedule and pricing plan, and optionally record the first payment attempt for the initial invoice. This streamlines resource creation, making the process more efficient by handling multiple tasks in a single call.

Invoice and Payment Behavior

  1. Without First Payment Attempt:
    1. If no payment attempt details are included in the request, the system will create the invoice, but it will be in “Open” status.
    2. The invoice’s lifecycle will be processed as usual.
  2. With Authorized First Payment Attempt:
    1. If an authorized payment attempt is included in the request, the system will:
      1. Move the invoice to “Final”.
      2. Record the payment attempt and mark the invoice as paid.
  3. With Non-Authorized First Payment Attempt:
    1. The a payment attempt with a result other than “Authorized” has been provided, the system will:
      1. Move the invoice to “Final”.
      2. Record the payment attempt but will not mark the invoice as paid.

This flexibility allows users to either immediately finalize and mark the invoice as paid when payment is made, or to simply create the invoice in “Open” or “Draft” form, leaving it open for later action.

Key Points to Remember

  • Including First Payment Attempt: The invoice is finalized and marked as paid.
  • Omitting Payment Attempt: The invoice remains in draft or open until further steps are taken.

For full details on the request structure, refer to the API reference, which contains everything you need regarding payloads and response formats.