Authorizations
Use your API key (sk_live_xxx or sk_test_xxx)
Path Parameters
Invoice CzUid
curl --request POST \
--url https://api.contazen.ro/v1/invoices/{id}/unvoid \
--header 'Authorization: Bearer <token>'
{
"success": true,
"data": {
"id": "inv_1a2b3c4d5e",
"object": "invoice",
"number": "<string>",
"series": "<string>",
"full_number": "<string>",
"date": "2023-12-25",
"due_date": "2023-12-25",
"client_id": "<string>",
"client": {
"id": "cli_1a2b3c4d5e",
"object": "client",
"name": "<string>",
"type": "company",
"email": "jsmith@example.com",
"phone": "<string>",
"cui": "<string>",
"cui_prefix": "RO",
"rc": "<string>",
"address": "<string>",
"city": "<string>",
"county": "<string>",
"country": "RO",
"postal_code": "<string>",
"iban": "<string>",
"bank_name": "<string>",
"contact_person": "<string>",
"notes": "<string>",
"is_active": true,
"is_firm": true,
"created_at": "2023-11-07T05:31:56Z",
"modified_at": "2023-11-07T05:31:56Z"
},
"currency": "RON",
"exchange_rate": 123,
"subtotal": 123,
"vat_amount": 123,
"total": 123,
"subtotal_ron": 123,
"vat_amount_ron": 123,
"total_ron": 123,
"items": [
{
"id": 123,
"product_id": "<string>",
"description": "<string>",
"description_extended": "<string>",
"quantity": 123,
"price": 123,
"vat_rate": 19,
"vat_key": 123,
"unit": "buc",
"ubl_um": "H87",
"ubl_nc": "<string>",
"ubl_cpv": "<string>",
"subtotal": 123,
"vat_amount": 123,
"total": 123,
"save_as_product": true
}
],
"payments": [
{
"id": "<string>",
"amount": 123,
"payment_date": "2023-12-25",
"payment_method": "<string>",
"observations": "<string>",
"created_at": "2023-11-07T05:31:56Z"
}
],
"is_paid": true,
"paid_at": "2023-12-25",
"is_void": true,
"voided_at": "2023-11-07T05:31:56Z",
"void_reason": "<string>",
"is_draft": true,
"is_storno": true,
"storno_for": "<string>",
"document_type": "fiscal",
"payment_method": "<string>",
"notes": "<string>",
"observations": "<string>",
"efactura_enabled": true,
"efactura_status": "pending",
"efactura_submission_id": "<string>",
"created_at": "2023-11-07T05:31:56Z",
"modified_at": "2023-11-07T05:31:56Z"
},
"meta": {
"version": "v1",
"request_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"response_time": "23.45ms"
}
}
Reactivate a voided invoice
curl --request POST \
--url https://api.contazen.ro/v1/invoices/{id}/unvoid \
--header 'Authorization: Bearer <token>'
{
"success": true,
"data": {
"id": "inv_1a2b3c4d5e",
"object": "invoice",
"number": "<string>",
"series": "<string>",
"full_number": "<string>",
"date": "2023-12-25",
"due_date": "2023-12-25",
"client_id": "<string>",
"client": {
"id": "cli_1a2b3c4d5e",
"object": "client",
"name": "<string>",
"type": "company",
"email": "jsmith@example.com",
"phone": "<string>",
"cui": "<string>",
"cui_prefix": "RO",
"rc": "<string>",
"address": "<string>",
"city": "<string>",
"county": "<string>",
"country": "RO",
"postal_code": "<string>",
"iban": "<string>",
"bank_name": "<string>",
"contact_person": "<string>",
"notes": "<string>",
"is_active": true,
"is_firm": true,
"created_at": "2023-11-07T05:31:56Z",
"modified_at": "2023-11-07T05:31:56Z"
},
"currency": "RON",
"exchange_rate": 123,
"subtotal": 123,
"vat_amount": 123,
"total": 123,
"subtotal_ron": 123,
"vat_amount_ron": 123,
"total_ron": 123,
"items": [
{
"id": 123,
"product_id": "<string>",
"description": "<string>",
"description_extended": "<string>",
"quantity": 123,
"price": 123,
"vat_rate": 19,
"vat_key": 123,
"unit": "buc",
"ubl_um": "H87",
"ubl_nc": "<string>",
"ubl_cpv": "<string>",
"subtotal": 123,
"vat_amount": 123,
"total": 123,
"save_as_product": true
}
],
"payments": [
{
"id": "<string>",
"amount": 123,
"payment_date": "2023-12-25",
"payment_method": "<string>",
"observations": "<string>",
"created_at": "2023-11-07T05:31:56Z"
}
],
"is_paid": true,
"paid_at": "2023-12-25",
"is_void": true,
"voided_at": "2023-11-07T05:31:56Z",
"void_reason": "<string>",
"is_draft": true,
"is_storno": true,
"storno_for": "<string>",
"document_type": "fiscal",
"payment_method": "<string>",
"notes": "<string>",
"observations": "<string>",
"efactura_enabled": true,
"efactura_status": "pending",
"efactura_submission_id": "<string>",
"created_at": "2023-11-07T05:31:56Z",
"modified_at": "2023-11-07T05:31:56Z"
},
"meta": {
"version": "v1",
"request_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"response_time": "23.45ms"
}
}
Use your API key (sk_live_xxx or sk_test_xxx)
Invoice CzUid
Was this page helpful?