ZRM Docs
API ReferenceInvoice

invoice.create

Type: Mutation · Auth: Workspace-aware

Input

FieldTypeRequiredDefaultDescription
customerIdstringYesID of the associated customer
invoiceNumberstringYesInvoice number
workOrderIdstringNoID of the associated work order
projectIdstringNoID of the associated project
maintenancePlanIdstringNoID of the associated maintenance plan
quoteIdstringNoID of the associated quote
monitoringAccountIdstringNoID of the associated monitoring account
statusenum(draft, pending_approval, approved, sent, partially_paid, paid, overdue, void, canceled)Yes"draft"Status
issueDatestring.date-timeNoIssue date
dueDatestring.date-timeNoDue date
subtotalunknownNoSubtotal
taxAmountunknownNoTax amount
totalAmountunknownNoTotal amount
amountPaidunknownNoAmount paid
stripeCustomerIdstringNoID of the associated stripe customer
contactIdstringNoID of the associated contact
sentAtunknownNoSent at
viewedAtunknownNoViewed at
pdfS3KeyunknownNoPdf s3key
personalMessageunknownNoPersonal message
stripePaymentIntentIdunknownNoID of the associated stripe payment intent
stripeCheckoutSessionIdunknownNoID of the associated stripe checkout session
paymentUrlunknownNoPayment url
notesstringNoNotes
workspaceIdstringNoID of the associated workspace
visibilityModeenum(global, workspace_local, shared)Yes"workspace_local"Visibility mode

Example

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

On this page