A Payment object represents a single financial transaction - either a one-time purchase or a recurring subscription charge. Payments track the monetary flow, including the amount, fees, tax, and processing status. Each payment is associated with an Order and optionally with a User and Subscription. Payments contain detailed information about charges, including payment method details and invoice data when applicable.Documentation Index
Fetch the complete documentation index at: https://docs.fungies.io/llms.txt
Use this file to discover all available pages before exploring further.
Endpoints
| Method | Endpoint | Description |
|---|---|---|
GET | /v0/payments/list | List and filter payments |
GET | /v0/payments/{paymentId} | Retrieve a payment by ID |
The Payment object
Object type identifier. Always
"payment" for Payment objects.Unique identifier (UUID) for this payment.
Human-readable payment number (e.g.,
#ABC123DEF456). Used for reference in invoices and support.Type of payment. Possible values:
one_time, subscription_initial, subscription_update, subscription_interval, subscription_extra, claim_freeCurrent payment status. Possible values:
PENDING, PAID, FAILED, UNPAID, CANCELLED, REFUNDED, PARTIALLY_REFUNDED, EXPIREDPayment amount in the smallest currency unit (e.g., cents for USD). Includes tax but excludes fees. Defaults to
0.Tax amount in the smallest currency unit. Included in the total value. Defaults to
0.Processing fee in the smallest currency unit. This is deducted from your payout. Defaults to
0.Three-letter ISO 4217 currency code (e.g.,
"USD", "EUR", "GBP").Number of decimal places for this currency (e.g.,
2 for USD, 0 for JPY).Unix timestamp (milliseconds) when the payment was created.
Expanded User object with basic information about the payer.
UUID of the associated Order. For subscription payments, this links to the initial order.
Human-readable order number of the associated order.
Expanded Order object with basic information.
Subscription identifier if this is a subscription-related payment.
Expanded Subscription object with status and ID.
Applied Discount object if a discount code or sale was used.
Invoice number for completed payments. Only available for
PAID, REFUNDED, or PARTIALLY_REFUNDED statuses.URL to download the invoice PDF. Only available for completed payments with generated invoices.
Array of charge attempts for this payment.
Example response
Related resources
Orders
Orders associated with payments
Users
Customers who made payments
Subscriptions
Recurring subscription payments
Discounts
Discounts applied to payments