Space Docs
API ReferenceInvoice

invoice.create

Type: Mutation · Auth: Workspace-aware

Input

FieldTypeRequiredDefaultDescription
customerIdstringYes—ID of the associated customer
invoiceNumberstringYes—Invoice number
workOrderIdunknownNo—ID of the associated work order
projectIdunknownNo—ID of the associated project
maintenancePlanIdstringNo—ID of the associated maintenance plan
quoteIdunknownNo—ID of the associated quote
projectMilestoneIdstringNo—ID of the associated project milestone
monitoringAccountIdunknownNo—ID of the associated monitoring account
statusenum(draft, pending_approval, approved, sent, partially_paid, paid, overdue, void, canceled)Yes"draft"Status
issueDateunknownNo—Issue date
dueDateunknownNo—Due date
taxAmountunknownNo—Tax amount
amountPaidunknownNo—Amount paid
stripeCustomerIdstringNo—ID of the associated stripe customer
contactIdunknownNo—ID of the associated contact
sentAtunknownNo—Sent at
viewedAtunknownNo—Viewed at
pdfS3Keystring,nullNo—Pdf s3key
personalMessageunknownNo—Personal message
stripePaymentIntentIdunknownNo—ID of the associated stripe payment intent
stripeCheckoutSessionIdunknownNo—ID of the associated stripe checkout session
paymentUrlstring,nullNo—Payment url
notesstring,nullNo—Notes
workspaceIdstringNo—ID of the associated workspace
visibilityModeunknownNo—Visibility mode

Example

{
  "customerId": "550e8400-e29b-41d4-a716-446655440000",
  "invoiceNumber": "example",
  "workOrderId": null,
  "projectId": null,
  "maintenancePlanId": "550e8400-e29b-41d4-a716-446655440000",
  "quoteId": null,
  "status": "draft"
}

On this page