GET
/
invoices
/
{id}
curl https://api.contazen.ro/v1/invoices/inv_9z8y7x6w5v \
  -H "Authorization: Bearer sk_live_YOUR_API_KEY"
{
  "success": true,
  "data": {
    "id": "inv_9z8y7x6w5v",
    "object": "invoice",
    "number": "CTZ-2024-00123",
    "document_type": "fiscal",
    "date": "2024-03-15",
    "due_date": "2024-04-15",
    "client": {
      "id": "1a2b3c4d5e",
      "name": "Tech Solutions SRL",
      "cui": "RO98765432",
      "rc": "J40/5678/2021",
      "email": "contact@techsolutions.ro",
      "phone": "+40722334455",
      "address": "Bd. Tehnologie nr. 100",
      "city": "București, Sectorul 2",
      "county": "București",
      "country": "Romania",
      "bank": "BCR",
      "iban": "RO49AAAA1B31007593840000"
    },
    "lines": [
      {
        "id": "line_1",
        "description": "Web Development Services - March 2024",
        "quantity": 40,
        "unit": "ora",
        "price": 250.00,
        "vat_rate": 19,
        "subtotal": 10000.00,
        "vat_amount": 1900.00,
        "total": 11900.00
      },
      {
        "id": "line_2",
        "description": "Hosting and Maintenance",
        "quantity": 1,
        "unit": "buc",
        "price": 500.00,
        "vat_rate": 19,
        "subtotal": 500.00,
        "vat_amount": 95.00,
        "total": 595.00
      }
    ],
    "payments": [],
    "subtotal": 10500.00,
    "vat_amount": 1995.00,
    "total": 12495.00,
    "currency": "RON",
    "is_paid": false,
    "paid_amount": 0.00,
    "remaining_amount": 12495.00,
    "observations": "Payment terms: 30 days net",
    "created_at": 1710460800,
    "updated_at": 1710460800
  },
  "meta": {
    "version": "v1",
    "response_time": "34.56ms"
  }
}

Request

id
string
required
The invoice ID (ID) to retrieve
Default Expansions: When retrieving a single invoice, the lines and payments objects are automatically expanded by default. You don’t need to specify these in the expand parameter.
expand[]
array
Expand additional nested objects. See Expanding Objects for details.Available expansions:
  • lines - Invoice line items (already included by default)
  • payments - Payment records (already included by default)
  • client - Client details (optional)
  • efactura - E-Factura submission info (optional)

Invoice Status

Invoices can be in various states throughout their lifecycle. For a complete understanding of invoice states and transitions, see Invoice Lifecycle.

Quick Reference

  • Normal invoices: Regular active invoices
  • Draft invoices: Invoices not yet finalized (is_draft: true)
  • Voided invoices: Cancelled invoices that remain visible for audit purposes (status: "voided")
  • Deleted invoices: Completely removed from the system (return 404 errors)
Voided vs Deleted:
  • Voided invoices are marked as cancelled but remain accessible via API with status: "voided" for compliance and audit purposes
  • Deleted invoices are completely removed from the database and will return a 404 error

Response

success
boolean
Indicates if the request was successful
data
object
The invoice object
meta
object
Response metadata including version and response time
curl https://api.contazen.ro/v1/invoices/inv_9z8y7x6w5v \
  -H "Authorization: Bearer sk_live_YOUR_API_KEY"
{
  "success": true,
  "data": {
    "id": "inv_9z8y7x6w5v",
    "object": "invoice",
    "number": "CTZ-2024-00123",
    "document_type": "fiscal",
    "date": "2024-03-15",
    "due_date": "2024-04-15",
    "client": {
      "id": "1a2b3c4d5e",
      "name": "Tech Solutions SRL",
      "cui": "RO98765432",
      "rc": "J40/5678/2021",
      "email": "contact@techsolutions.ro",
      "phone": "+40722334455",
      "address": "Bd. Tehnologie nr. 100",
      "city": "București, Sectorul 2",
      "county": "București",
      "country": "Romania",
      "bank": "BCR",
      "iban": "RO49AAAA1B31007593840000"
    },
    "lines": [
      {
        "id": "line_1",
        "description": "Web Development Services - March 2024",
        "quantity": 40,
        "unit": "ora",
        "price": 250.00,
        "vat_rate": 19,
        "subtotal": 10000.00,
        "vat_amount": 1900.00,
        "total": 11900.00
      },
      {
        "id": "line_2",
        "description": "Hosting and Maintenance",
        "quantity": 1,
        "unit": "buc",
        "price": 500.00,
        "vat_rate": 19,
        "subtotal": 500.00,
        "vat_amount": 95.00,
        "total": 595.00
      }
    ],
    "payments": [],
    "subtotal": 10500.00,
    "vat_amount": 1995.00,
    "total": 12495.00,
    "currency": "RON",
    "is_paid": false,
    "paid_amount": 0.00,
    "remaining_amount": 12495.00,
    "observations": "Payment terms: 30 days net",
    "created_at": 1710460800,
    "updated_at": 1710460800
  },
  "meta": {
    "version": "v1",
    "response_time": "34.56ms"
  }
}