Issue Delivery Note
Marks a delivery note as issued when the physical delivery of goods or completion of services occurs. This action transitions the delivery note from draft status to issued status and records the timestamp.
When the delivery note is issued, the next sequential number from its assigned delivery_note series is permanently assigned. If no series was explicitly set on the delivery note, the company's default delivery_note series is auto-found and used at this point.
Once issued, the delivery note becomes read-only and can only be cancelled or converted to an invoice.
Headers
| Name | Type | Required | Description |
|---|---|---|---|
Authorization | string | Yes | Bearer token for authentication |
X-Company | string | Yes | Company UUID to scope the request |
Path Parameters
| Name | Type | Required | Description |
|---|---|---|---|
uuid | string | Yes | The UUID of the delivery note to mark as issued |
Request
curl -X POST https://api.storno.ro/api/v1/delivery-notes/950e8400-e29b-41d4-a716-446655440000/issue \
-H "Authorization: Bearer YOUR_TOKEN" \
-H "X-Company: company-uuid-here"
const response = await fetch('https://api.storno.ro/api/v1/delivery-notes/950e8400-e29b-41d4-a716-446655440000/issue', {
method: 'POST',
headers: {
'Authorization': 'Bearer YOUR_TOKEN',
'X-Company': 'company-uuid-here'
}
});
const data = await response.json();
Response
Returns the updated delivery note with status = issued and issuedAt timestamp:
{
"uuid": "950e8400-e29b-41d4-a716-446655440000",
"number": "DN-2026-012",
"documentSeriesId": "850e8400-e29b-41d4-a716-446655440000",
"series": {
"uuid": "850e8400-e29b-41d4-a716-446655440000",
"name": "DN",
"nextNumber": 13
},
"clientId": "750e8400-e29b-41d4-a716-446655440000",
"client": {
"uuid": "750e8400-e29b-41d4-a716-446655440000",
"name": "Client SRL",
"registrationNumber": "RO12345678",
"email": "[email protected]"
},
"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",
"deputyName": "Maria Ionescu",
"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"
}
State Changes
Status Transition
- Before:
status = draft - After:
status = issued
Series & Number Assignment
- The next sequential number from the assigned
delivery_noteseries is permanently locked in - If no
documentSeriesIdwas set on the delivery note, the company's defaultdelivery_noteseries is auto-found and assigned at this point - Once issued, the series and document number cannot be changed
Timestamp
- Sets
issuedAtto current UTC timestamp (ISO 8601 format) - Updates
updatedAttimestamp
Restrictions Applied
Once marked as issued:
- Cannot be updated (PUT requests will fail)
- Cannot be deleted (DELETE requests will fail)
- Can be cancelled or converted to invoice
Validation Rules
Status Requirement
- Delivery note must have
status = draft - Cannot issue a delivery note that is already issued, converted, or cancelled
Data Completeness
Before issuing, ensure the delivery note has:
- Valid client information
- At least one line item
- All required fields populated
- Correct totals calculated
- Delivery location specified (recommended)
- Deputy information captured (recommended)
Error Codes
| Status Code | Error Code | Description |
|---|---|---|
| 401 | unauthorized | Missing or invalid authentication token |
| 403 | forbidden | Invalid or missing X-Company header |
| 404 | not_found | Delivery note not found or doesn't belong to the company |
| 409 | conflict | Delivery note status prevents issuing (not in draft status) |
| 422 | validation_error | Delivery note data is incomplete or invalid |
| 500 | internal_error | Server error occurred |
Example Error Responses
Status Conflict
{
"error": {
"code": "conflict",
"message": "Delivery note cannot be issued",
"details": {
"status": "issued",
"reason": "Delivery note is already marked as issued",
"issuedAt": "2026-02-18T14:30:00Z"
}
}
}
Validation Error
{
"error": {
"code": "validation_error",
"message": "Delivery note data is incomplete",
"details": {
"deliveryLocation": ["Delivery location is recommended before issuing"],
"deputyName": ["Deputy name is recommended for proof of delivery"],
"lines": ["At least one line item is required"]
}
}
}
When to Issue
Issue the delivery note:
- At delivery time - When goods are physically delivered
- Upon service completion - When services are completed
- After client verification - When client confirms receipt
- Before transport - For shipments requiring delivery note
Workflow Integration
Standard Delivery Flow
- Create delivery note (
POST /api/v1/delivery-notes) - Load goods for delivery
- Transport to delivery location
- Mark as issued (
POST /api/v1/delivery-notes/{uuid}/issue) ← You are here - Get client signature on physical copy
- Convert to invoice (
POST /api/v1/delivery-notes/{uuid}/convert) - Upload invoice to ANAF
Service Completion Flow
- Create delivery note for services
- Perform services at client location
- Mark as issued when work is complete
- Client verifies completion
- Convert to invoice for payment
Batch Delivery Flow
- Create multiple delivery notes
- Issue each as deliveries occur
- Accumulate throughout the month
- Convert all to single invoice at month-end
Physical Documentation
After marking as issued:
- Print delivery note - Generate PDF for signature
- Get client signature - Physical proof of delivery
- Scan signed copy - Archive digital copy
- Keep original - Store signed original per regulations
- Send copy to client - Email PDF copy for their records
Proof of Delivery
The issued delivery note serves as:
- Legal proof - Evidence that goods were delivered
- Tax documentation - Support for invoice
- Dispute resolution - Reference in case of conflicts
- Logistics record - Tracking of deliveries
- Customs documentation - For international shipments
Essential Information for Proof
- Deputy name and signature
- Deputy ID card number
- Date and time of delivery
- Delivery location
- Vehicle registration (if applicable)
- Item quantities and condition
Reversibility
There is no "unissue" action. Once issued, the delivery note remains in issued status until:
- You cancel it (→
cancelled) - You convert it to an invoice (→
converted)
If issued by mistake:
- Cannot revert to draft
- Must cancel if delivery didn't occur
- Create new delivery note if needed
Integration Points
Logistics Systems
After issuing:
- Update logistics system with delivery confirmation
- Close transport order
- Update driver route status
- Record delivery time
Inventory Systems
After issuing:
- Deduct items from warehouse inventory
- Update stock levels
- Record location of goods (transferred to client)
- Trigger reorder if needed
Accounting Systems
After issuing:
- Mark goods as delivered (revenue recognition)
- Prepare for invoicing
- Update client balance (if accrual accounting)
Best Practices
- Issue at delivery time - Mark as issued when delivery actually occurs
- Verify data first - Review all details before issuing
- Capture signatures - Get client signature on physical copy
- Photo evidence - Take photo of delivered goods and signature
- Log the action - Record who issued it and when
- Update systems - Sync status to logistics and inventory systems
- Convert promptly - Don't delay invoicing after delivery
- Archive documents - Keep signed copies per legal requirements
- Notify stakeholders - Alert accounting and sales teams
- Track conversions - Monitor which delivery notes need invoicing
Delivery Note Lifecycle
draft → issued → converted
↓
cancelled
- Draft - Created but not yet delivered
- Issued - Delivery occurred, waiting for invoicing
- Converted - Invoice created from delivery note
- Cancelled - Delivery cancelled (from draft or issued)
Compliance Notes
Romanian Requirements
- Delivery notes (AVZ - Aviz de însoțire a mărfii) required for:
- Transport of goods between locations
- Deliveries to clients
- Proof of delivery for VAT purposes
Retention Period
- Keep signed delivery notes for minimum legal period
- Typically 5-10 years depending on regulation
- Both physical and digital copies recommended
Tax Implications
- Delivery note date may affect revenue recognition
- Must match or precede invoice date
- Required for VAT deduction by client
After Issuing
Next steps after marking as issued:
- Archive signed physical copy
- Update inventory systems
- Schedule invoice conversion
- Monitor payment timeline
- Track outstanding deliveries not yet invoiced