Space Docs
Domain Model

Payment

Fields

FieldTypeRequiredDefaultDescription
idstring.uuidYesId
createdAtstring.date-timeYesCreated at
updatedAtstring.date-timeYesUpdated at
invoiceIdstringYesID of the associated invoice
amountnumberYesAmount
paymentMethodenum(stripe, credit_card, 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
visibilityModeunknownYesVisibility mode

Create Schema

Fields accepted when creating a new record:

FieldTypeRequiredDefaultDescription
invoiceIdstringYesID of the associated invoice
amountnumberYesAmount
paymentMethodenum(stripe, credit_card, 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
visibilityModeunknownNoVisibility mode

Update Schema

All fields are optional when updating:

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

On this page