Space Docs
Domain Model

Payment

Fields

FieldTypeRequiredDefaultDescription
idstring.uuidYes—Id
createdAtstring.date-timeYes—Created at
updatedAtstring.date-timeYes—Updated at
invoiceIdstringYes—ID of the associated invoice
amountnumberYes—Amount
paymentMethodenum(stripe, credit_card, check, ach, wire, cash, other)Yes—Payment method
currencystringYes—Currency
statusenum(pending, processing, completed, failed, refunded)Yes—Status
stripePaymentIntentIdstringNo—ID of the associated stripe payment intent
stripeChargeIdstringNo—ID of the associated stripe charge
referencestringNo—Reference
paidAtstring.date-timeNo—Paid at
notesstringNo—Notes
workspaceIdstringYes—ID of the associated workspace
visibilityModeunknownYes—Visibility mode

Create Schema

Fields accepted when creating a new record:

FieldTypeRequiredDefaultDescription
invoiceIdstringYes—ID of the associated invoice
amountnumberYes—Amount
paymentMethodenum(stripe, credit_card, check, ach, wire, cash, other)Yes—Payment method
currencystringYes"USD"Currency
statusenum(pending, processing, completed, failed, refunded)Yes"pending"Status
stripePaymentIntentIdstringNo—ID of the associated stripe payment intent
stripeChargeIdstringNo—ID of the associated stripe charge
referencestringNo—Reference
paidAtstring.date-timeNo—Paid at
notesstringNo—Notes
workspaceIdstringNo—ID of the associated workspace
visibilityModeunknownNo—Visibility mode

Update Schema

All fields are optional when updating:

FieldTypeRequiredDefaultDescription
amountnumberNo—Amount
paymentMethodenum(stripe, credit_card, check, ach, wire, cash, other)No—Payment method
currencystringNo—Currency
statusenum(pending, processing, completed, failed, refunded)No—Status
stripePaymentIntentIdstringNo—ID of the associated stripe payment intent
stripeChargeIdstringNo—ID of the associated stripe charge
referencestringNo—Reference
paidAtstring.date-timeNo—Paid at
notesstringNo—Notes

On this page