AMS Docs
Docs / Finance & Billing

Finance & Billing

Collect membership dues, issue invoices, track payments, manage budgets, and generate financial reports โ€” all within AMS.

Overview

The Finance module handles the complete financial lifecycle of an association โ€” from issuing annual membership invoices to tracking event ticket revenue to reporting on outstanding balances. It integrates directly with Stripe for online payments and supports manual payment recording for bank transfers and cheques.

๐Ÿ“„
Invoices
Create, send, and track all invoices
๐Ÿ’ณ
Payments
Online (Stripe) and manual recording
๐Ÿ”
Auto-Renewals
Automated membership fee collection
๐Ÿ“Š
Reports
Revenue, outstanding, by category
๐Ÿฆ
Budgets
Annual budget tracking by department
๐ŸŒ
Multi-Currency
PKR, USD, AED, GBP, EUR

Setting Up Payment Gateways

Stripe

Navigate to Settings โ†’ Payments โ†’ Stripe and enter your Stripe publishable key and secret key. AMS uses Stripe Checkout for a hosted, PCI-compliant payment page.

Manual Payments

For bank transfers, cheques, or cash payments, use Finance โ†’ Invoices โ†’ [Invoice] โ†’ Record Payment. Enter the amount, payment date, reference number, and payment method. This marks the invoice as paid without going through Stripe.

Creating Invoices

Go to Finance โ†’ Invoices โ†’ New Invoice. Select the member, add line items, set the due date, and choose whether to send immediately or save as draft.

Membership Fee Collection

Annual membership dues are managed under Settings โ†’ Membership Types โ†’ [Type] โ†’ Annual Fee. Set the fee amount, currency, and renewal date (calendar year, anniversary, or custom).

Automated Renewals

Enable automated renewal invoicing under Settings โ†’ Finance โ†’ Automated Renewals:

SettingDescriptionDefault
Send invoice N days before renewalHow early to send the renewal invoice30 days
Reminder frequencyDays between overdue reminders7 days
Grace periodDays after due date before suspension14 days
Auto-suspend on non-paymentRestrict portal access for overdue membersDisabled
Auto-collect via StripeCharge saved card on renewal dateDisabled

Budget Management

Create annual budgets under Finance โ†’ Budgets โ†’ New Budget. Allocate budget by department or committee, then track actual spend against budget throughout the year.

Financial Reports

Currency Settings

Configure your base currency in Settings โ†’ Finance โ†’ Currency. Supported currencies:

PKR โ€” Pakistani Rupee USD โ€” US Dollar AED โ€” UAE Dirham GBP โ€” British Pound EUR โ€” Euro SAR โ€” Saudi Riyal INR โ€” Indian Rupee BDT โ€” Bangladeshi Taka

Tax Configuration

Set up tax rates in Settings โ†’ Finance โ†’ Tax. Tax rates are applied per line item or at the invoice level. Common configurations:

API Endpoints

MethodEndpointDescription
GET/api/v1/admin/invoicesList all invoices (filterable)
POST/api/v1/admin/invoicesCreate a new invoice
GET/api/v1/admin/invoices/{id}Get invoice details
POST/api/v1/admin/invoices/{id}/sendSend invoice to member
POST/api/v1/admin/invoices/{id}/paymentsRecord a manual payment
POST/api/v1/admin/invoices/{id}/voidVoid an invoice
GET/api/v1/admin/finance/summaryFinancial summary stats
GET/api/v1/invoicesMember's own invoices
POST/api/v1/invoices/{id}/payInitiate Stripe checkout for invoice

Example: Create Invoice via API

bash โ€” POST /api/v1/admin/invoices
curl -X POST https://pasha.ams.hkus1.s4s.host/api/v1/admin/invoices \
  -H "Authorization: Bearer $ADMIN_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{
    "member_id": "mem_01HXZA",
    "due_date": "2026-04-30",
    "currency": "PKR",
    "line_items": [
      {
        "description": "Annual Membership Fee 2026",
        "quantity": 1,
        "unit_price": 50000,
        "tax_rate": 18
      }
    ],
    "notes": "Payment via bank transfer to HBL A/C 01234567890",
    "send_email": true
  }'
json โ€” Response
{
  "id": "inv_01HYAB",
  "number": "INV-2026-0042",
  "member_id": "mem_01HXZA",
  "status": "sent",
  "total": 59000,
  "currency": "PKR",
  "due_date": "2026-04-30",
  "pdf_url": "https://pasha.ams.hkus1.s4s.host/invoices/inv_01HYAB.pdf"
}