Accountmaker Docs
Types

Payment

Financial transaction record for tracking payments within an account.

payments transactions billing

Payment

A Payment records a monetary transaction for an account. Payments can be synced from Stripe or recorded manually.

Schema

interface Payment {
  id: string; // "pay..." - Unique identifier
  account_id: string;
  amount_cents: number;
  currency: string;
  status: "pending" | "succeeded" | "failed" | "canceled" | "refunded";
  paid_at: string | null;
  payment_method: string | null;
  external_id: string | null;
  external_customer_id: string | null;
  external_data: unknown | null;
}

Properties

PropertyTypeDescription
idstringKSUID with pay prefix
account_idstringOwning account
amount_centsnumberAmount in minor units (cents)
currencystringISO 4217 currency code
statusenumPayment lifecycle status
paid_atstring?When payment succeeded
payment_methodstring?Payment method type
external_idstring?Provider payment ID
external_customer_idstring?Provider customer ID
external_dataobject?Raw provider snapshot

Status Values

StatusDescription
pendingAwaiting processing
succeededPayment completed
failedPayment failed
canceledPayment canceled
refundedReturned to customer

Example

{
  "id": "pay123",
  "account_id": "acc456",
  "amount_cents": 9900,
  "currency": "usd",
  "status": "succeeded",
  "paid_at": "2026-01-15T10:30:00Z",
  "payment_method": "card",
  "external_id": "pi_abc123",
  "external_customer_id": "cus_xyz789"
}