GET/api/v1/delivery-notes

List Delivery Notes

Retrieves a paginated list of delivery notes for the authenticated company. Delivery notes document the physical delivery of goods or completion of services, and can later be converted into invoices.

Headers

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

Query Parameters

NameTypeRequiredDescription
pageintegerNoPage number (default: 1)
limitintegerNoItems per page (default: 20, max: 100)
searchstringNoSearch term for delivery note number or client name
statusstringNoFilter by status: draft, issued, converted, cancelled
fromstringNoStart date filter (ISO 8601 format: YYYY-MM-DD)
tostringNoEnd date filter (ISO 8601 format: YYYY-MM-DD)
clientIdstringNoFilter by client UUID

Request

cURL
curl -X GET "https://api.storno.ro/api/v1/delivery-notes?page=1&limit=20&status=issued" \
  -H "Authorization: Bearer YOUR_TOKEN" \
  -H "X-Company: company-uuid-here"
JavaScript
const response = await fetch('https://api.storno.ro/api/v1/delivery-notes?page=1&limit=20&status=issued', {
  method: 'GET',
  headers: {
    'Authorization': 'Bearer YOUR_TOKEN',
    'X-Company': 'company-uuid-here'
  }
});

const data = await response.json();

Response

{
  "data": [
    {
      "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"
      },
      "status": "issued",
      "issueDate": "2026-02-18",
      "dueDate": "2026-03-18",
      "currency": "RON",
      "exchangeRate": 1.0,
      "subtotal": "5000.00",
      "vatAmount": "950.00",
      "total": "5950.00",
      "deliveryLocation": "Client warehouse - Str. Depozit 5, București",
      "projectReference": "PROJECT-2026-002",
      "issuerName": "John Doe",
      "deputyName": "Jane Smith",
      "deputyIdentityCard": "AB123456",
      "deputyAuto": "B-123-ABC",
      "notes": "Handle with care - fragile items",
      "issuedAt": "2026-02-18T14:30:00Z",
      "convertedAt": null,
      "convertedInvoiceId": null,
      "createdAt": "2026-02-18T09:00:00Z",
      "updatedAt": "2026-02-18T14:30:00Z"
    }
  ],
  "total": 35,
  "page": 1,
  "limit": 20,
  "pages": 2
}

Response Fields

FieldTypeDescription
dataarrayArray of delivery note objects
totalintegerTotal number of delivery notes matching the filters
pageintegerCurrent page number
limitintegerItems per page
pagesintegerTotal number of pages

Delivery Note Object

FieldTypeDescription
uuidstringUnique identifier
numberstringDelivery note number (e.g., DN-2026-012)
statusstringStatus: draft, issued, converted, cancelled
issueDatestringDate of issue (YYYY-MM-DD)
dueDatestringDue date for invoicing (YYYY-MM-DD)
currencystringCurrency code
exchangeRatenumberExchange rate to company base currency
subtotalstringSubtotal amount (excluding VAT)
vatAmountstringTotal VAT amount
totalstringTotal amount (including VAT)
deliveryLocationstringWhere goods were delivered
projectReferencestringRelated project reference
deputyNamestringName of person who received delivery
deputyIdentityCardstringID card number of deputy
deputyAutostringVehicle registration number
clientobjectClient details
seriesobjectSeries details
issuedAtstring | nullISO 8601 timestamp when issued
convertedAtstring | nullISO 8601 timestamp when converted to invoice
convertedInvoiceIdstring | nullUUID of the created invoice (if converted)

Status Lifecycle

Delivery notes follow this status flow:

  • draft → Initial state when created
  • issued → Issued and delivered to client
  • converted → Converted to an invoice
  • cancelled → Delivery note was cancelled

Once a delivery note is converted or cancelled, it cannot be modified.

Error Codes

Status CodeError CodeDescription
401unauthorizedMissing or invalid authentication token
403forbiddenInvalid or missing X-Company header
422validation_errorInvalid query parameters (e.g., invalid status value, invalid date format)
500internal_errorServer error occurred

Use Cases

Goods Delivery Tracking

Document physical delivery of products:

  • Record what was delivered
  • Who received it (deputy information)
  • When and where delivery occurred
  • Vehicle used for transport

Service Completion Documentation

Document completion of services:

  • Services performed
  • Location where services delivered
  • Person who verified completion
  • Date of completion

Pre-Invoice Documentation

Create delivery notes before invoicing:

  1. Issue delivery note upon delivery/completion
  2. Client verifies and accepts delivery
  3. Convert to invoice for payment

Batch Invoicing

Accumulate multiple delivery notes:

  1. Issue delivery notes throughout the month
  2. Collect all delivery notes for a client
  3. Create single invoice covering all deliveries

Best Practices

  1. Issue promptly - Create delivery note at time of delivery
  2. Record deputy details - Always capture who received delivery
  3. Track conversion - Monitor which delivery notes need invoicing
  4. Batch strategically - Group related deliveries for efficient invoicing
  5. Clear locations - Specify exact delivery addresses
  6. Vehicle tracking - Record transport vehicle for logistics
  7. Client signatures - Keep signed copies as proof of delivery
  8. Convert regularly - Don't let delivery notes age without invoicing