Payments
AM tracks payments from Stripe automatically and lets you record payments from other sources manually.
Payment history lives with the account, so you always know who paid what and when.
Payment Records
{
id: "pay_...",
account_id: "acc_...",
amount_cents: 9900, // cents
currency: "usd",
status: "succeeded",
payment_method: "card",
external_id: "pi_..."
}
Operations
| Operation | Endpoint | Description |
|---|---|---|
| Create | POST /api/accounts/:account_id/payments | Record payment |
| List | GET /api/accounts/:account_id/payments | Payment history |
| Get | GET /api/payments/:payment_id | Payment details |
| Update | PATCH /api/payments/:payment_id | Update metadata |
Payment Status
| Status | Description |
|---|---|
pending | Awaiting processing |
succeeded | Payment completed |
failed | Payment failed |
canceled | Payment canceled |
refunded | Returned to customer |
Payment Methods
| Type | Description |
|---|---|
card | Credit/debit card |
ach | Bank transfer (US) |
wire | Wire transfer |
other | Other methods |
Automatic Tracking
Stripe payments are recorded automatically via webhooks. Manual tracking is for:
- Bank transfers
- Checks
- External payment processors
- Credits/adjustments
Metadata
Attach business context to payments:
- Plan or product purchased
- Invoice reference
- Custom tracking IDs
Related
- Subscriptions - Subscription management
- Payment - Payment resource
- Accounts - Account context