RecurringStack Payment API
The Payments API category provides a comprehensive set of endpoints for managing the entire lifecycle of customer payments within RecurringStack. These endpoints allow you to create new payments, retrieve detailed payment histories, and reverse or refund transactions. Payments are a core component of the billing cycle and are tightly integrated with Customers, Invoices, and Subscriptions. This category supports two primary methods for handling payments: real-time processing through a configured payment gateway and the manual recording of payments made via third-party services (e.g., PayPal, bank transfer). This dual functionality provides the flexibility to either charge a customer's stored payment method directly or simply log an external transaction against their account. Key Features: Create Payments: Post a payment against a specific invoice or add funds directly to a customer's prepaid balance. Use the override_billing parameter to record payments made outside of RecurringStack. List Payments: Retrieve a detailed list of payments using a wide range of search criteria, such as customer_account_id, invoice_id, subscription_id, or a gateway's specific payment_transaction_id. Reverse and Refund Payments: Delete a payment record. If the payment was originally processed through a real-time gateway, the system will automatically attempt to issue a refund for the transaction.