Skip to main content

Documentation Index

Fetch the complete documentation index at: https://memberpulseptyltd.mintlify.app/llms.txt

Use this file to discover all available pages before exploring further.

Payment and invoice transaction entity Records all payment transactions including invoices, payments, and refunds.

Fields

Field Registry (from workspace/sources/entity-registry.csv)

FieldInput TypeRequiredNotes
Total--Total amount; model: total, rel: float
Currency--AUD; model: currency, rel: string
Reference Id--model: referenceId, rel: string
User--User Entity; model: user, rel: ManyToOne User
Course--model: course, rel: ManyToOne Course
Order Type--Corporate Subscription, Membership, Resource, Course, Event; model: orderType, rel: ManyToOne OrderType
Client--model: client, rel: ManyToOne ClientProfile
MemberProfile--model: memberProfile, rel: ManyToOne MemberProfile
Corporate Subscription--model: corporateSubscription, rel: ManyToOne CorporateSubscriptionPricing
Membership Subscription--model: membership, rel: ManyToOne MembershipPricing
Status--Pending, Paid, Failed; model: status, rel: ManyToOne OrderPaymentStatus

Core Fields

FieldTypeRequiredDescription
idUUIDAutoPrimary key
userIdUUIDYesFK to Member
typeenumYesmembership, event, course, resource, job_posting
relatedEntityIdUUIDYesRelated item ID

Amount Fields

FieldTypeRequiredDescription
amountdecimalYesSubtotal
currencystringYesCurrency code (AUD)
taxRatedecimalYesTax percentage
taxAmountdecimalAutoCalculated tax
totalAmountdecimalAutoTotal (amount + tax)
statusenumYespending, completed, failed, refunded, charged_back

Invoice Fields

FieldTypeRequiredDescription
invoiceNumberstringAutoFormat: INV-YYYYMMDD-####
invoiceDatedateAutoInvoice date
dueDatedateYesPayment due date
taxReceiptGeneratedbooleanAutoReceipt created

Gateway Fields

FieldTypeRequiredDescription
gatewayenumYesstripe, braintree, square
gatewayTransactionIdstringNoGateway reference
gatewayCustomerTokenstringNoCustomer token
gatewayPaymentMethodTokenstringNoPayment method token

Refund Fields

FieldTypeRequiredDescription
refundAmountdecimalNoRefund amount
refundReasonstringNoRefund reason
refundStatusenumNopending, completed, failed
refundedByUUIDNoAdmin who refunded
refundedAtdatetimeNoRefund timestamp

System Fields

FieldTypeRequiredDescription
createdAtdatetimeAutoCreation timestamp
updatedAtdatetimeAutoLast update
completedAtdatetimeNoPayment completion

Relationships

RelationTypeTarget Entity
userManyToOneMember

Features

Payment Transaction

Acceptance Criteria

Frontend
  • Admin/client UI can view and manage Payment Transaction records where applicable.
Backend / API
  • CRUD operations exist for Payment Transaction (create, read, update, delete/archive).
Permissions
  • Access is restricted to appropriate roles (tenant-scoped).
Business Rules
  • Fields and relationships documented on this page are enforced for Payment Transaction.
Error Handling
  • Invalid payloads return field-level validation errors.