id | string | Unique payment id. |
purpose | string | WALLET_TOPUP or SUBSCRIPTION. |
status | string | PENDING, SUCCESS, FAILED, or REFUNDED. |
amount | number | Amount in fiat major units (e.g. 1500 = ₦1,500). |
currency | string | ISO currency code (e.g. NGN). |
paymentRef | string | Provider payment reference. |
subscriptionId | string | null | Linked subscription, for SUBSCRIPTION payments. |
projectId | string | Project the payment belongs to. |
planId | integer | null | Plan billed, for subscription payments. |
billingCycle | string | null | MONTHLY or YEARLY, for subscription payments. |
businessId | string | Owning business. |
providerId | string | Upstream provider id. |
reference | string | Idempotent reference for the payment. |
amountUsd | string | USD value as a decimal string. |
description | string | Free-text note. |
createdBy | string | Actor that created the record. |
createdAt | string | ISO 8601 UTC timestamp. |
updatedAt | string | ISO 8601 UTC timestamp. |