Delivery Note

The DeliveryNote object represents shipping documents that accompany goods deliveries. Delivery notes can be issued for shipments and optionally converted into invoices later.

Attributes

AttributeTypeIn ListIn DetailDescription
idUUIDUnique identifier
numberstringDelivery note number (e.g., "DN-2024-001")
statusDeliveryNoteStatusStatus: draft, issued, converted, cancelled
currencystring3-letter currency code (e.g., "RON", "EUR")
issueDatedateDate the delivery note was issued (YYYY-MM-DD)
dueDatedateExpected delivery date (YYYY-MM-DD)
subtotaldecimalSubtotal before VAT
vatTotaldecimalTotal VAT amount
totaldecimalTotal amount including VAT
clientNamestringVirtual field: name of the client
clientClientFull Client object
documentSeriesIdUUIDUUID of the assigned document series. Auto-assigned from the default delivery_note series if not specified at creation
documentSeriesstringDocument series prefix
discountdecimalTotal discount amount
notestextNotes about the delivery
mentionstextAdditional mentions on delivery note
internalNotetextInternal notes (not visible to client)
deliveryLocationstringDelivery address
projectReferencestringProject or reference number
issuerNamestringName of the person issuing the delivery note
issuerIdstringID/CNP of the issuer
salesAgentstringSales agent name
deputyNamestringDeputy/driver name
deputyIdentityCardstringDeputy ID card number
deputyAutostringDeputy vehicle registration
exchangeRatedecimalExchange rate used (for foreign currencies)
convertedInvoiceobjectReference to converted invoice (if status is converted)
issuedAtdatetimeTimestamp when issued
cancelledAtdatetimeTimestamp when cancelled
linesarrayArray of DeliveryNoteLine objects
etransportOperationTypeintegere-Transport operation type code (30=TTN domestic)
etransportVehicleNumberstringVehicle registration number for transport
etransportTrailer1stringFirst trailer registration number
etransportTrailer2stringSecond trailer registration number
etransportTransporterCountrystringTransporter country code (ISO 3166-1 alpha-2)
etransportTransporterCodestringTransporter CUI/CIF code
etransportTransporterNamestringTransporter company name
etransportTransportDatedatePlanned transport date (YYYY-MM-DD)
etransportStartCountyintegerRoute start county code (Romanian county)
etransportStartLocalitystringRoute start locality name
etransportStartStreetstringRoute start street name
etransportStartNumberstringRoute start street number
etransportStartOtherInfostringRoute start additional info
etransportStartPostalCodestringRoute start postal code
etransportEndCountyintegerRoute end county code
etransportEndLocalitystringRoute end locality name
etransportEndStreetstringRoute end street name
etransportEndNumberstringRoute end street number
etransportEndOtherInfostringRoute end additional info
etransportEndPostalCodestringRoute end postal code
etransportUitstringe-Transport UIT (unique identifier from ANAF)
etransportStatusstringe-Transport status: uploaded, ok, nok, validation_failed, upload_failed
etransportErrorMessagetexte-Transport error message from ANAF
etransportSubmittedAtdatetimeTimestamp when submitted to e-Transport
createdAtdatetimeTimestamp when created
updatedAtdatetimeTimestamp of last update
deletedAtdatetimeSoft delete timestamp (null if not deleted)

DeliveryNoteLine Attributes

AttributeTypeIn ListIn DetailDescription
idUUIDUnique identifier
positionintegerLine position order
descriptionstringProduct or service description
quantitydecimalQuantity
unitOfMeasurestringUnit of measure label (e.g., "box", "kg")
unitPricedecimalUnit price
vatRatedecimalVAT rate percentage
vatAmountdecimalVAT amount
lineTotaldecimalTotal line amount including VAT
discountdecimalDiscount amount
productCodestringProduct code or SKU
tariffCodestringCustoms tariff code (4-8 digits)
purposeCodeintegerPurpose code for TTN (101=Commerce, 704=Transfer, 705=Client stock, 9901=Other)
unitOfMeasureCodestringUN/ECE unit of measure code (e.g., KGM, LTR, MTR)
netWeightdecimalNet weight in kg
grossWeightdecimalGross weight in kg
valueWithoutVatdecimalValue without VAT in RON

Example

{
  "id": "d0e1f2a3-b4c5-6789-4567-890123456789",
  "number": "DN-2024-001",
  "status": "issued",
  "currency": "RON",
  "issueDate": "2024-02-18",
  "dueDate": "2024-02-20",
  "subtotal": 1500.00,
  "vatTotal": 285.00,
  "total": 1785.00,
  "clientName": "Distribution SRL",
  "client": {
    "id": "e1f2a3b4-c5d6-7890-5678-901234567890",
    "type": "company",
    "name": "Distribution SRL",
    "cui": "34567890",
    "vatCode": "RO34567890",
    "isVatPayer": true,
    "address": "Strada Transport, nr. 15",
    "city": "Timisoara",
    "email": "[email protected]"
  },
  "documentSeriesId": "850e8400-e29b-41d4-a716-446655440000",
  "documentSeries": "DN",
  "discount": 0.00,
  "notes": "Handle with care - fragile items",
  "mentions": "Driver will collect signature upon delivery",
  "internalNote": "Priority delivery",
  "deliveryLocation": "Strada Transport, nr. 15, Timisoara",
  "projectReference": "PROJ-2024-008",
  "issuerName": "Ion Popescu",
  "issuerId": "1850123456789",
  "salesAgent": "Maria Ionescu",
  "deputyName": "Vasile Georgescu",
  "deputyIdentityCard": "AB123456",
  "deputyAuto": "B-123-XYZ",
  "exchangeRate": 1.0000,
  "convertedInvoice": null,
  "issuedAt": "2024-02-18T08:00:00+02:00",
  "cancelledAt": null,
  "etransportOperationType": 30,
  "etransportVehicleNumber": "B-123-XYZ",
  "etransportTrailer1": null,
  "etransportTrailer2": null,
  "etransportTransporterCountry": "RO",
  "etransportTransporterCode": "12345678",
  "etransportTransporterName": "Transport SRL",
  "etransportTransportDate": "2024-02-20",
  "etransportStartCounty": 40,
  "etransportStartLocality": "Bucuresti",
  "etransportStartStreet": "Strada Industriilor",
  "etransportStartNumber": "10",
  "etransportStartOtherInfo": null,
  "etransportStartPostalCode": "010000",
  "etransportEndCounty": 35,
  "etransportEndLocality": "Timisoara",
  "etransportEndStreet": "Strada Transport",
  "etransportEndNumber": "15",
  "etransportEndOtherInfo": null,
  "etransportEndPostalCode": "300000",
  "etransportUit": "RO240218ABC123",
  "etransportStatus": "ok",
  "etransportErrorMessage": null,
  "etransportSubmittedAt": "2024-02-18T08:05:00+02:00",
  "lines": [
    {
      "id": "f2a3b4c5-d6e7-8901-6789-012345678901",
      "position": 1,
      "description": "Product A - Box of 50",
      "quantity": 10.0,
      "unitOfMeasure": "box",
      "unitPrice": 150.00,
      "vatRate": 19.00,
      "vatAmount": 285.00,
      "lineTotal": 1785.00,
      "discount": 0.00,
      "productCode": "PROD-A-50",
      "tariffCode": "39269097",
      "purposeCode": 101,
      "unitOfMeasureCode": "KGM",
      "netWeight": 25.00,
      "grossWeight": 27.50,
      "valueWithoutVat": 1500.00
    }
  ],
  "createdAt": "2024-02-18T07:00:00+02:00",
  "updatedAt": "2024-02-18T08:00:00+02:00",
  "deletedAt": null
}

Workflow

  1. Draft: Delivery note is created with line items
  2. Issued: Delivery note is issued and accompanies the goods
  3. e-Transport Submitted (optional): After issuing, the delivery note can be submitted to ANAF's e-Transport system — status transitions to uploaded, then ok (UIT received) or nok (rejected)
  4. Converted: Optionally converted to an invoice after delivery
  5. Cancelled: Can be cancelled if delivery doesn't occur

e-Transport Integration

e-Transport is Romania's ANAF system for declaring goods transported on national roads. Companies that meet the legal threshold must declare transport movements before the goods depart.

How it works

  • After a delivery note is issued, it can be submitted to e-Transport via the Submit Delivery Note to e-Transport endpoint
  • The submission sends the transport declaration to ANAF and sets etransportStatus to uploaded
  • ANAF processes the declaration asynchronously: if accepted, etransportStatus becomes ok and the etransportUit field is populated with the UIT; if rejected, the status becomes nok and etransportErrorMessage contains the rejection reason
  • Validation failures before submission result in a validation_failed status; network or connectivity issues result in upload_failed

UIT (Unique Identifier of Transport)

The UIT is the transport's official tracking number issued by ANAF upon successful declaration. It must accompany the goods during transport and can be checked by authorities. The UIT is stored in the etransportUit field.

Status flow

(not submitted) → uploaded → ok      (UIT received, transport approved)
                           → nok     (rejected by ANAF, see etransportErrorMessage)
                → validation_failed  (data failed validation before submission)
                → upload_failed      (submission failed due to connectivity issues)

Line item fields for e-Transport

Each delivery note line supports additional e-Transport-specific fields: tariffCode (customs tariff code), purposeCode (reason for transport), unitOfMeasureCode (UN/ECE code), netWeight, grossWeight, and valueWithoutVat. These are required by ANAF for a valid transport declaration.

Notes

  • Delivery notes track the physical movement of goods
  • They can be converted to invoices after successful delivery
  • Deputy fields track the person transporting the goods
  • Delivery location can differ from client's registered address
  • PDFs are generated using the company's PDF template configuration