List supplier bills
curl --request GET \
--url https://api.contazen.ro/v1/supplier-bills \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.contazen.ro/v1/supplier-bills"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.contazen.ro/v1/supplier-bills', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.contazen.ro/v1/supplier-bills",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.contazen.ro/v1/supplier-bills"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("Authorization", "Bearer <token>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://api.contazen.ro/v1/supplier-bills")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.contazen.ro/v1/supplier-bills")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["Authorization"] = 'Bearer <token>'
response = http.request(request)
puts response.read_body{
"success": true,
"data": {
"object": "list",
"has_more": true,
"total": 123,
"page": 123,
"per_page": 123,
"total_pages": 123,
"data": [
{
"id": "<string>",
"object": "supplier_bill",
"invoice_number": "<string>",
"invoice_type_code": "380",
"invoice_type": "invoice",
"issue_date": "2023-12-25",
"due_date": "2023-12-25",
"currency": "RON",
"amounts": {
"tax_exclusive": 123,
"tax": 123,
"tax_inclusive": 123,
"paid": 123,
"unpaid": 123
},
"status": "unpaid",
"payment_date": "2023-12-25",
"payment_amount": 123,
"supplier": {
"id": "<string>",
"name": "<string>",
"vat_id": "<string>",
"reg_com": "<string>",
"address": "<string>",
"email": "<string>",
"phone": "<string>"
},
"supplier_id": "<string>",
"expense_id": "<string>",
"client_id": "<string>",
"efactura_message_id": 123,
"efactura_pdf_url": "<string>",
"order_reference": "<string>",
"note": "<string>",
"created_at": 123,
"updated_at": 123,
"expense": {},
"client": {},
"efactura_message": {
"id": 123,
"message_id": "<string>",
"cif": "<string>",
"type": "<string>",
"creation_date": "2023-11-07T05:31:56Z",
"environment": "test"
},
"lines": [
{}
]
}
],
"totals": {
"count": 123,
"tax_exclusive": 123,
"tax": 123,
"tax_inclusive": 123,
"paid": 123,
"unpaid": 123,
"by_currency": {}
}
},
"meta": {
"version": "v1",
"request_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"response_time": "23.45ms"
}
}{
"success": false,
"error": {
"message": "<string>",
"type": "api_error",
"code": "<string>",
"param": "<string>",
"doc_url": "<string>"
},
"meta": {
"version": "v1",
"request_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"response_time": "23.45ms"
}
}Supplier Bills
List Supplier Bills
List supplier invoices received from the ANAF SPV inbox (e-Factura).
GET
/
supplier-bills
List supplier bills
curl --request GET \
--url https://api.contazen.ro/v1/supplier-bills \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.contazen.ro/v1/supplier-bills"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.contazen.ro/v1/supplier-bills', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.contazen.ro/v1/supplier-bills",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.contazen.ro/v1/supplier-bills"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("Authorization", "Bearer <token>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://api.contazen.ro/v1/supplier-bills")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.contazen.ro/v1/supplier-bills")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["Authorization"] = 'Bearer <token>'
response = http.request(request)
puts response.read_body{
"success": true,
"data": {
"object": "list",
"has_more": true,
"total": 123,
"page": 123,
"per_page": 123,
"total_pages": 123,
"data": [
{
"id": "<string>",
"object": "supplier_bill",
"invoice_number": "<string>",
"invoice_type_code": "380",
"invoice_type": "invoice",
"issue_date": "2023-12-25",
"due_date": "2023-12-25",
"currency": "RON",
"amounts": {
"tax_exclusive": 123,
"tax": 123,
"tax_inclusive": 123,
"paid": 123,
"unpaid": 123
},
"status": "unpaid",
"payment_date": "2023-12-25",
"payment_amount": 123,
"supplier": {
"id": "<string>",
"name": "<string>",
"vat_id": "<string>",
"reg_com": "<string>",
"address": "<string>",
"email": "<string>",
"phone": "<string>"
},
"supplier_id": "<string>",
"expense_id": "<string>",
"client_id": "<string>",
"efactura_message_id": 123,
"efactura_pdf_url": "<string>",
"order_reference": "<string>",
"note": "<string>",
"created_at": 123,
"updated_at": 123,
"expense": {},
"client": {},
"efactura_message": {
"id": 123,
"message_id": "<string>",
"cif": "<string>",
"type": "<string>",
"creation_date": "2023-11-07T05:31:56Z",
"environment": "test"
},
"lines": [
{}
]
}
],
"totals": {
"count": 123,
"tax_exclusive": 123,
"tax": 123,
"tax_inclusive": 123,
"paid": 123,
"unpaid": 123,
"by_currency": {}
}
},
"meta": {
"version": "v1",
"request_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"response_time": "23.45ms"
}
}{
"success": false,
"error": {
"message": "<string>",
"type": "api_error",
"code": "<string>",
"param": "<string>",
"doc_url": "<string>"
},
"meta": {
"version": "v1",
"request_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"response_time": "23.45ms"
}
}Overview
Returns the supplier invoices that Contazen has imported from your ANAF SPV inbox. This is the API equivalent of the Facturi primite de la furnizori view in the web app. Results span every work point under your parent company. Use the filter parameters to narrow by status, date range, supplier (CIF or name), or currency.Totals
The response includes atotals block with both global aggregates (count,
tax-exclusive, tax, tax-inclusive, paid, unpaid) and a by_currency
breakdown — supplier bills frequently mix RON with foreign currencies and
summing across them produces meaningless numbers.
Reciprocal client
When a row’s supplier CIF matches one of your firm’s clients,client_id is
populated with that client’s CzUid. This makes it easy to surface a “your
supplier is also your client” hint in the UI.Query Parameters
Was this page helpful?