Proforma Invoice

The ProformaInvoice object represents proforma invoices (quotations) that can be sent to clients before issuing a final invoice. Proforma invoices can be accepted, rejected, or converted into regular invoices.

Attributes

AttributeTypeIn ListIn DetailDescription
idUUIDUnique identifier
numberstringProforma number (e.g., "PRO-2024-001")
statusProformaStatusStatus: draft, sent, accepted, rejected, converted, cancelled
currencystring3-letter currency code (e.g., "RON", "EUR")
languagestringDocument language for PDF generation: ro, en, de, fr (default: ro)
issueDatedateDate the proforma was issued (YYYY-MM-DD)
dueDatedatePayment due date (YYYY-MM-DD)
subtotaldecimalSubtotal before VAT
vatTotaldecimalTotal VAT amount
totaldecimalTotal amount including VAT
clientNamestringVirtual field: name of the client
clientClientFull Client object
documentSeriesstringDocument series prefix
validUntildateDate until which the proforma is valid
discountdecimalTotal discount amount
notestextPublic notes visible to client
paymentTermstextPayment terms description
invoiceTypeCodeInvoiceTypeCodeType code (standard, reverse_charge, etc.)
deliveryLocationstringDelivery address
projectReferencestringProject or reference number
orderNumberstringPurchase order number
contractNumberstringContract reference number
issuerNamestringName of the person issuing the proforma
issuerIdstringID/CNP of the issuer
mentionstextAdditional mentions on proforma
internalNotetextInternal notes (not visible to client)
salesAgentstringSales agent name
exchangeRatedecimalExchange rate used (for foreign currencies)
convertedInvoiceobjectReference to converted invoice (if status is converted)
sentAtdatetimeTimestamp when sent to client
acceptedAtdatetimeTimestamp when accepted by client
rejectedAtdatetimeTimestamp when rejected by client
cancelledAtdatetimeTimestamp when cancelled
linesarrayArray of ProformaInvoiceLine objects
createdAtdatetimeTimestamp when created
updatedAtdatetimeTimestamp of last update
deletedAtdatetimeSoft delete timestamp (null if not deleted)

Example

{
  "id": "e5f6a7b8-c9d0-1234-ef12-345678901234",
  "number": "PRO-2024-001",
  "status": "sent",
  "currency": "RON",
  "issueDate": "2024-02-15",
  "dueDate": "2024-03-15",
  "subtotal": 2500.00,
  "vatTotal": 475.00,
  "total": 2975.00,
  "clientName": "Tech Solutions SRL",
  "client": {
    "id": "f6a7b8c9-d0e1-2345-f123-456789012345",
    "type": "company",
    "name": "Tech Solutions SRL",
    "cui": "23456789",
    "vatCode": "RO23456789",
    "isVatPayer": true,
    "address": "Bulevardul Unirii, nr. 25",
    "city": "Cluj-Napoca",
    "email": "[email protected]"
  },
  "documentSeries": "PRO",
  "validUntil": "2024-03-31",
  "discount": 0.00,
  "notes": "Valid for 45 days. Payment within 30 days after acceptance.",
  "paymentTerms": "30 days from acceptance",
  "invoiceTypeCode": "standard",
  "deliveryLocation": "Bulevardul Unirii, nr. 25, Cluj-Napoca",
  "projectReference": "PROJ-2024-005",
  "exchangeRate": 1.0000,
  "convertedInvoice": null,
  "sentAt": "2024-02-15T11:00:00+02:00",
  "acceptedAt": null,
  "rejectedAt": null,
  "cancelledAt": null,
  "lines": [
    {
      "id": "a7b8c9d0-e1f2-3456-1234-567890123456",
      "position": 1,
      "description": "Custom Software Development",
      "quantity": 100.0,
      "unitOfMeasure": "hour",
      "unitPrice": 25.00,
      "vatRate": 19.00,
      "vatAmount": 475.00,
      "lineTotal": 2975.00,
      "discount": 0.00
    }
  ],
  "createdAt": "2024-02-15T10:00:00+02:00",
  "updatedAt": "2024-02-15T11:00:00+02:00",
  "deletedAt": null
}