ZRM Docs
Domain Model

Payment

Fields

FieldTypeRequiredDefaultDescription
idstring.uuidYesId
createdAtstring.date-timeYesCreated at
updatedAtstring.date-timeYesUpdated at
invoiceIdstringYesID of the associated invoice
amountnumberYesAmount
paymentMethodenum(stripe, check, ach, wire, cash, other)YesPayment method
currencystringYesCurrency
statusenum(pending, processing, completed, failed, refunded)YesStatus
stripePaymentIntentIdstringNoID of the associated stripe payment intent
stripeChargeIdstringNoID of the associated stripe charge
referencestringNoReference
paidAtstring.date-timeNoPaid at
notesstringNoNotes
workspaceIdstringYesID of the associated workspace
visibilityModeenum(global, workspace_local, shared)YesVisibility mode

Create Schema

Fields accepted when creating a new record:

FieldTypeRequiredDefaultDescription
invoiceIdstringYesID of the associated invoice
amountnumberYesAmount
paymentMethodenum(stripe, check, ach, wire, cash, other)YesPayment method
currencystringYes"USD"Currency
statusenum(pending, processing, completed, failed, refunded)Yes"pending"Status
stripePaymentIntentIdstringNoID of the associated stripe payment intent
stripeChargeIdstringNoID of the associated stripe charge
referencestringNoReference
paidAtstring.date-timeNoPaid at
notesstringNoNotes
workspaceIdstringNoID of the associated workspace
visibilityModeenum(global, workspace_local, shared)Yes"workspace_local"Visibility mode

Update Schema

All fields are optional when updating:

FieldTypeRequiredDefaultDescription
amountnumberNoAmount
paymentMethodenum(stripe, check, ach, wire, cash, other)NoPayment method
currencystringNo"USD"Currency
statusenum(pending, processing, completed, failed, refunded)No"pending"Status
stripePaymentIntentIdstringNoID of the associated stripe payment intent
stripeChargeIdstringNoID of the associated stripe charge
referencestringNoReference
paidAtstring.date-timeNoPaid at
notesstringNoNotes

On this page