Subscriptions and invoices
Bill customers once or on a schedule. Each invoice has its own payment page.
Invoices
POST/v1/invoices with customer ({ email, name }), lines (each description, quantity, unit_amount in kobo), due_in_days (default 7) and memo. It is sent at once unless send: false; then POST/v1/invoices/:id/send. POST/v1/invoices/:id/void cancels an unpaid one.
In live mode the customer gets an email with the payment page, and a reminder a day after it is due. Events: invoice.sent, invoice.paid.
Subscriptions
POST/v1/subscriptions with customer, name and amount (or a product), every (week, month, quarter, year), days_to_pay and an optional start date. Paygent sends an invoice each period. Pause, resume or cancel with POST/v1/subscriptions/:id/pause and the like. Events: subscription.created, subscription.cancelled.
paygent