GET/api/v1/delivery-notes/{uuid}

Get Delivery Note

Retrieves complete details for a specific delivery note, including all line items, client information, delivery details, and calculated totals.

Headers

NameTypeRequiredDescription
AuthorizationstringYesBearer token for authentication
X-CompanystringYesCompany UUID to scope the request

Path Parameters

NameTypeRequiredDescription
uuidstringYesThe UUID of the delivery note to retrieve

Request

cURL
curl -X GET https://api.storno.ro/api/v1/delivery-notes/950e8400-e29b-41d4-a716-446655440000 \
  -H "Authorization: Bearer YOUR_TOKEN" \
  -H "X-Company: company-uuid-here"
JavaScript
const response = await fetch('https://api.storno.ro/api/v1/delivery-notes/950e8400-e29b-41d4-a716-446655440000', {
  method: 'GET',
  headers: {
    'Authorization': 'Bearer YOUR_TOKEN',
    'X-Company': 'company-uuid-here'
  }
});

const data = await response.json();

Response

{
  "uuid": "950e8400-e29b-41d4-a716-446655440000",
  "number": "DN-2026-012",
  "seriesId": "850e8400-e29b-41d4-a716-446655440000",
  "series": {
    "uuid": "850e8400-e29b-41d4-a716-446655440000",
    "name": "DN",
    "nextNumber": 13,
    "prefix": "DN-",
    "year": 2026
  },
  "clientId": "750e8400-e29b-41d4-a716-446655440000",
  "client": {
    "uuid": "750e8400-e29b-41d4-a716-446655440000",
    "name": "Client SRL",
    "registrationNumber": "RO12345678",
    "address": "Str. Exemplu 123, București, Sector 1",
    "city": "București",
    "county": "București",
    "country": "RO",
    "postalCode": "010101",
    "email": "[email protected]",
    "phone": "+40721234567",
    "bankAccount": "RO49AAAA1B31007593840000",
    "bankName": "Banca Comercială Română"
  },
  "status": "issued",
  "issueDate": "2026-02-18",
  "dueDate": "2026-03-18",
  "currency": "RON",
  "exchangeRate": 1.0,
  "deliveryLocation": "Client warehouse - Str. Depozit 5, București, Sector 2",
  "projectReference": "PROJECT-2026-002",
  "issuerName": "John Doe",
  "issuerId": "850e8400-e29b-41d4-a716-446655440000",
  "salesAgent": "Jane Smith",
  "deputyName": "Maria Ionescu",
  "deputyIdentityCard": "AB123456",
  "deputyAuto": "B-123-ABC",
  "notes": "Handle with care - fragile items. Delivery completed successfully.",
  "mentions": "Special delivery instructions: Use loading dock B",
  "internalNote": "Priority client - ensure careful handling",
  "lines": [
    {
      "uuid": "A10e8400-e29b-41d4-a716-446655440000",
      "lineNumber": 1,
      "description": "Laptop Dell Latitude 7420",
      "quantity": "10.00",
      "unitPrice": "450.00",
      "unitOfMeasure": "piece",
      "productId": "B50e8400-e29b-41d4-a716-446655440000",
      "product": {
        "uuid": "B50e8400-e29b-41d4-a716-446655440000",
        "name": "Laptop Dell Latitude 7420",
        "code": "LAP-DELL-7420",
        "unitOfMeasure": "piece"
      },
      "vatRateId": "350e8400-e29b-41d4-a716-446655440000",
      "vatRate": {
        "uuid": "350e8400-e29b-41d4-a716-446655440000",
        "name": "Standard VAT",
        "percentage": "19.00"
      },
      "subtotal": "4500.00",
      "vatAmount": "855.00",
      "total": "5355.00"
    },
    {
      "uuid": "A20e8400-e29b-41d4-a716-446655440000",
      "lineNumber": 2,
      "description": "Wireless Mouse Logitech MX Master 3",
      "quantity": "10.00",
      "unitPrice": "50.00",
      "unitOfMeasure": "piece",
      "productId": "B60e8400-e29b-41d4-a716-446655440000",
      "product": {
        "uuid": "B60e8400-e29b-41d4-a716-446655440000",
        "name": "Wireless Mouse Logitech MX Master 3",
        "code": "MOUSE-LOG-MX3",
        "unitOfMeasure": "piece"
      },
      "vatRateId": "350e8400-e29b-41d4-a716-446655440000",
      "vatRate": {
        "uuid": "350e8400-e29b-41d4-a716-446655440000",
        "name": "Standard VAT",
        "percentage": "19.00"
      },
      "subtotal": "500.00",
      "vatAmount": "95.00",
      "total": "595.00"
    }
  ],
  "subtotal": "5000.00",
  "vatAmount": "950.00",
  "total": "5950.00",
  "issuedAt": "2026-02-18T14:30:00Z",
  "convertedAt": null,
  "convertedInvoiceId": null,
  "convertedInvoiceNumber": null,
  "cancelledAt": null,
  "createdAt": "2026-02-18T09:00:00Z",
  "updatedAt": "2026-02-18T14:30:00Z"
}

Response Fields

Core Information

FieldTypeDescription
uuidstringUnique identifier
numberstringDelivery note number
statusstringCurrent status (draft/issued/converted/cancelled)
seriesobjectSeries information with prefix and year
clientobjectComplete client details including banking information

Delivery Information

FieldTypeDescription
deliveryLocationstringFull address where goods were delivered
deputyNamestringName of person who received the delivery
deputyIdentityCardstringID card number of the deputy
deputyAutostringVehicle registration number used for delivery
issuerNamestringName of person who issued the delivery note
issuerIdstringUUID of the issuer user
salesAgentstringSales agent responsible for the delivery

Financial Information

FieldTypeDescription
currencystringCurrency code (e.g., RON, EUR, USD)
exchangeRatenumberExchange rate to base currency
subtotalstringSubtotal before VAT
vatAmountstringTotal VAT amount
totalstringGrand total including VAT
linesarrayArray of line items with products and pricing

Dates and Status

FieldTypeDescription
issueDatestringDate when delivery note was created
dueDatestringDue date for converting to invoice
issuedAtstring | nullTimestamp when issued
convertedAtstring | nullTimestamp when converted to invoice
cancelledAtstring | nullTimestamp when cancelled
convertedInvoiceIdstring | nullUUID of created invoice (if converted)
convertedInvoiceNumberstring | nullNumber of created invoice (if converted)

Additional Information

FieldTypeDescription
projectReferencestringRelated project or order reference
notesstringPublic notes about the delivery
mentionsstringAdditional mentions or instructions
internalNotestringInternal note (not visible to client)

Line Item Object

FieldTypeDescription
uuidstringLine item unique identifier
lineNumberintegerSequential line number
descriptionstringItem description
quantitystringQuantity delivered (decimal string)
unitPricestringPrice per unit
unitOfMeasurestringUnit of measure (e.g., piece, kg, hour)
productobject | nullRelated product details
vatRateobjectVAT rate details with percentage
subtotalstringLine subtotal (before VAT)
vatAmountstringLine VAT amount
totalstringLine total (including VAT)

Error Codes

Status CodeError CodeDescription
401unauthorizedMissing or invalid authentication token
403forbiddenInvalid or missing X-Company header
404not_foundDelivery note not found or doesn't belong to the company
500internal_errorServer error occurred

Deputy Information

Why Deputy Details Matter

Deputy information serves as proof of delivery:

  • deputyName - Who physically received the goods/services
  • deputyIdentityCard - Legal identification for verification
  • deputyAuto - Vehicle used (for transport companies or logistics)

This information is especially important for:

  • Legal proof of delivery
  • Customs documentation
  • Transport documentation (CMR)
  • Dispute resolution
  • Insurance claims

When Deputy Info is Required

  • Physical goods delivery
  • High-value items
  • Cross-border shipments
  • Regulated industries
  • Client request

When Deputy Info is Optional

  • Digital services
  • Remote services
  • Small-value deliveries
  • Trusted client relationships

Delivery Location vs Client Address

The deliveryLocation field can differ from the client's registered address:

  • Client address - Legal/billing address
  • Delivery location - Physical delivery point (warehouse, job site, etc.)

Always use the specific delivery location for:

  • Accurate logistics
  • Client verification
  • Future deliveries reference
  • Customs documentation

Conversion to Invoice

When the delivery note is converted to an invoice:

  • status changes to converted
  • convertedAt is set to the conversion timestamp
  • convertedInvoiceId contains the new invoice UUID
  • convertedInvoiceNumber contains the new invoice number
  • Delivery note data is copied to the invoice
  • Delivery note reference is added to invoice

Use Cases

Standard Goods Delivery

1. Issue delivery note upon shipment
2. Client receives and deputy signs
3. Convert to invoice after verification

Service Completion

1. Create delivery note when service complete
2. Record completion location and verifier
3. Convert to invoice for payment

Batch Deliveries

1. Multiple delivery notes throughout month
2. Client accumulates deliveries
3. Convert all at month-end to single invoice

International Shipments

1. Delivery note with full deputy details
2. Used for customs clearance
3. Convert after successful delivery

Best Practices

  1. Complete deputy information - Always capture for proof of delivery
  2. Accurate locations - Use specific delivery addresses, not just client address
  3. Prompt updates - Mark as issued when delivery occurs
  4. Photo evidence - Keep photos of signed delivery notes
  5. Vehicle tracking - Record vehicle registration for logistics
  6. Convert regularly - Don't delay invoicing after delivery
  7. Link to orders - Use projectReference to link to purchase orders
  8. Clear descriptions - Detailed line item descriptions for verification