curl -X GET "https://api.contazen.ro/v1/expenses/exp_abc123?expand=supplier,category,user" \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "Content-Type: application/json"
{
"success": true,
"expense": {
"id": "exp_abc123",
"reference": "INV-2024-001",
"description": "Office supplies purchase including paper, pens, and folders",
"amount": {
"total": "238.00",
"without_vat": "200.00",
"vat": "38.00",
"currency": "RON"
},
"account_amount": {
"total": "238.00",
"without_vat": "200.00",
"vat": "38.00",
"currency": "RON"
},
"vat_percent": 19,
"with_vat": true,
"date": "2024-01-15",
"due_date": "2024-02-15",
"paid_date": null,
"is_paid": false,
"payment_type": null,
"status": "unpaid",
"supplier": {
"id": "sup_xyz789",
"name": "Office Depot SRL",
"cui": "RO12345678",
"rc": "J40/1234/2020",
"address": "Str. Exemplu 123, Sector 1",
"city": "Bucharest",
"county": "Bucharest",
"country": "Romania"
},
"category": {
"id": 1,
"name": "Office Expenses",
"parent_id": null
},
"user": {
"id": 1,
"name": "John Doe"
},
"attachment": {
"url": "https://api.contazen.ro/v1/files/download/att_def456",
"type": "pdf"
},
"efactura": {
"supplier_invoice_id": "si_abc123",
"invoice_number": "119079",
"anaf_message_id": "4891234567",
"xml_available": true,
"pdf_available": true,
"pdf_url": "https://app.contazen.ro/api/v1/expenses/exp_abc123/efactura-pdf"
},
"created_at": "2024-01-15 10:30:00",
"updated_at": "2024-01-15 10:30:00"
}
}
Get detailed information about a specific expense by its CzUid
curl -X GET "https://api.contazen.ro/v1/expenses/exp_abc123?expand=supplier,category,user" \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "Content-Type: application/json"
{
"success": true,
"expense": {
"id": "exp_abc123",
"reference": "INV-2024-001",
"description": "Office supplies purchase including paper, pens, and folders",
"amount": {
"total": "238.00",
"without_vat": "200.00",
"vat": "38.00",
"currency": "RON"
},
"account_amount": {
"total": "238.00",
"without_vat": "200.00",
"vat": "38.00",
"currency": "RON"
},
"vat_percent": 19,
"with_vat": true,
"date": "2024-01-15",
"due_date": "2024-02-15",
"paid_date": null,
"is_paid": false,
"payment_type": null,
"status": "unpaid",
"supplier": {
"id": "sup_xyz789",
"name": "Office Depot SRL",
"cui": "RO12345678",
"rc": "J40/1234/2020",
"address": "Str. Exemplu 123, Sector 1",
"city": "Bucharest",
"county": "Bucharest",
"country": "Romania"
},
"category": {
"id": 1,
"name": "Office Expenses",
"parent_id": null
},
"user": {
"id": 1,
"name": "John Doe"
},
"attachment": {
"url": "https://api.contazen.ro/v1/files/download/att_def456",
"type": "pdf"
},
"efactura": {
"supplier_invoice_id": "si_abc123",
"invoice_number": "119079",
"anaf_message_id": "4891234567",
"xml_available": true,
"pdf_available": true,
"pdf_url": "https://app.contazen.ro/api/v1/expenses/exp_abc123/efactura-pdf"
},
"created_at": "2024-01-15 10:30:00",
"updated_at": "2024-01-15 10:30:00"
}
}
supplier - Include full supplier details instead of just the IDcategory - Include full category details instead of just the IDuser - Include user information for who created the expenseShow Expense Object Properties
paid, unpaid, overdue, or registerednull for manually created expenses.Show Efactura Object
curl -X GET "https://api.contazen.ro/v1/expenses/exp_abc123?expand=supplier,category,user" \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "Content-Type: application/json"
{
"success": true,
"expense": {
"id": "exp_abc123",
"reference": "INV-2024-001",
"description": "Office supplies purchase including paper, pens, and folders",
"amount": {
"total": "238.00",
"without_vat": "200.00",
"vat": "38.00",
"currency": "RON"
},
"account_amount": {
"total": "238.00",
"without_vat": "200.00",
"vat": "38.00",
"currency": "RON"
},
"vat_percent": 19,
"with_vat": true,
"date": "2024-01-15",
"due_date": "2024-02-15",
"paid_date": null,
"is_paid": false,
"payment_type": null,
"status": "unpaid",
"supplier": {
"id": "sup_xyz789",
"name": "Office Depot SRL",
"cui": "RO12345678",
"rc": "J40/1234/2020",
"address": "Str. Exemplu 123, Sector 1",
"city": "Bucharest",
"county": "Bucharest",
"country": "Romania"
},
"category": {
"id": 1,
"name": "Office Expenses",
"parent_id": null
},
"user": {
"id": 1,
"name": "John Doe"
},
"attachment": {
"url": "https://api.contazen.ro/v1/files/download/att_def456",
"type": "pdf"
},
"efactura": {
"supplier_invoice_id": "si_abc123",
"invoice_number": "119079",
"anaf_message_id": "4891234567",
"xml_available": true,
"pdf_available": true,
"pdf_url": "https://app.contazen.ro/api/v1/expenses/exp_abc123/efactura-pdf"
},
"created_at": "2024-01-15 10:30:00",
"updated_at": "2024-01-15 10:30:00"
}
}
Use your API key (sk_live_xxx or sk_test_xxx)
Expense CzUid
Comma-separated list of relations to expand. Supported: supplier, category, user.
Was this page helpful?