Endpoints
Every address starts from https://app.efacturaspv.ro and needs the Authorization header.
Issued invoices
GET /api/v1/invoices
The firm's issued documents, newest first. It includes the invoice that has a number and waits to be sent (draft), the one annulled before it was sent (void_unissued) and the storno that waits for its number, with number null. An invoice draft, which has no number, and a deleted invoice are not listed.
Parameters
| Name | Type | Description |
| status | string | One of: uploaded, validated, rejected, storno_issued, sla_breached, issued, draft, void_unissued. |
| from | date | The first day listed, inclusive, as YYYY-MM-DD. |
| to | date | The last day listed, inclusive, as YYYY-MM-DD. |
| series | string | The series code, for example FACT. |
| page | integer | The page asked for, from 1. Default 1. A value that is not a number from 1 up is not refused: 1 is used. |
| per_page | integer | Rows per page, from 1 to 100. Default 25. A value outside the range is not refused: an allowed value is used. |
Fields of the answer
| Name | Type | Description |
| id | string | The document's identifier. |
| kind | string | invoice for an invoice, storno for a credit note. |
| number | string | null | The full number, with series. null only for a storno that has not got its number yet. |
| series | string | null | The series code. |
| status | string | One of: uploaded, validated, rejected, storno_issued, sla_breached, issued, draft, void_unissued. |
| channel | string | spv when the document goes through ANAF, direct when it is issued without an e-Factura file. |
| issue_date | date | The issue date. |
| due_date | date | null | The due date. |
| currency | string | The document's currency, for example RON. |
| amount_net | string | Total without VAT, decimal text. |
| amount_vat | string | VAT, decimal text. |
| amount_gross | string | Total with VAT, decimal text. |
| buyer | object | null | The buyer: name, cui, vat_number, country. A private person's personal number is never returned. |
| client_id | string | null | The saved client, when the document started from one. |
| storno_of_id | string | null | The invoice this document cancels. |
| created_at | timestamp | When the document was created. |
The answer has the shape { "data": [...], "pagination": { "page", "per_page", "total" } }.
draft is not a draft you type: it is an invoice that already has a number and waits to be sent (to ANAF, or to be filed by hand). void_unissued is an invoice with a number, annulled before it was sent. A storno gets its number only when it is sent, not when it is created: until then it appears with status draft and number null, and if it is annulled before, with status void_unissued and number null. The buyer of a private person has cui null: the personal number is never returned.
Request
curl https://app.efacturaspv.ro/api/v1/invoices \
-H "Authorization: Bearer efspv_live_<key>"
Example answer
{
"data": [
{
"id": "7c0f5a26-1d3e-4a61-9a58-4f2f2f3a9c11",
"kind": "invoice",
"number": "FACT0042",
"series": "FACT",
"status": "validated",
"channel": "spv",
"issue_date": "2026-11-03",
"due_date": "2026-11-17",
"currency": "RON",
"amount_net": "1000.00",
"amount_vat": "210.00",
"amount_gross": "1210.00",
"buyer": {
"name": "Client Exemplu S.R.L.",
"cui": "12345678",
"vat_number": "RO12345678",
"country": "RO"
},
"client_id": null,
"storno_of_id": null,
"created_at": "2026-11-03T09:12:44.000Z"
}
],
"pagination": {
"page": 1,
"per_page": 25,
"total": 1
}
}
One issued invoice
GET /api/v1/invoices/{id}
One document, with its lines and its payment position. An identifier of another firm answers 404, the same as one that does not exist.
Parameters
| Name | Type | Description |
| idrequired | string | The document's identifier, in the address. |
Fields of the answer
| Name | Type | Description |
| id … created_at | | The same fields as in the list of issued invoices. |
| prices_include_vat | boolean | Whether the document's prices were typed with VAT. |
| vat_breakdown | array | null | One row per VAT rate: category, ratePercent, linesNetBani, allowanceBani, taxableBani, taxBani, payableBani, roundingBani, all in the minor unit of the currency of the document (bani for lei), negative on a credit note. Each row also has treatment (the choice in the VAT column, absent for a document issued before this field existed). Base plus VAT plus rounding is the amount to pay for that rate. For a document issued before 13 November 2026 the rows are read from its lines when it has two rates or more; with one rate the field is null and the totals of the document say it all. |
| buyer_order_ref | string | null | The buyer's order reference. |
| contract_ref | string | null | The contract reference. |
| source_documents | array | The proforme and avize the invoice was made from, frozen at issue: kind (proforma or aviz), number, issue_date. An empty list when the invoice was not made from another document. In the file sent to ANAF a single aviz is the despatch advice reference; several avize and every proforma are supporting documents. |
| advance_received_on | string | null | The day an advance was received (YYYY-MM-DD), written on the invoice when it is earlier than the invoice date; null otherwise. |
| buyer.gln | string | null | The buyer's GLN, as written on the invoice at issue; null when it has none. |
| delivery | object | null | The „Delivered to” place frozen at issue: name, street, city, county, postal, country (two-letter code) and, when there is one, locationCode and locationScheme (the place's code, for example a GLN); null when the document has no delivery place. |
| delivery_date | date | null | The delivery date, YYYY-MM-DD; null when none was written. |
| attachments | array | The files sent with the invoice: for each, filename, mime and size (bytes). The list is empty when the invoice has no files; their content is in the invoice XML. |
| storno | object | null | The storno ledger, only for a final invoice that can be stornoed; otherwise null: version (to send back with a partial storno), remaining_gross_bani (how much can still be stornoed, with VAT, in bani) and fully_stornoed (true when nothing is left to storno). |
| lines[].id | string | The line identifier: sent as line_id in a partial storno. |
| lines[].storno_remaining_quantity | string | null | The quantity that can still be stornoed on the line, decimal text; null when the invoice cannot be stornoed. |
| lines[].description | string | The line description. |
| lines[].item_description | string | null | The description of the article, printed under the name; null when the line has none. |
| lines[].cpv_code | string | null | The line's CPV code; null when the line has none. |
| lines[].nc_code | string | null | The line's Combined Nomenclature code; null when the line has none. |
| lines[].quantity | string | The quantity, decimal text. |
| lines[].unit_code | string | The unit of measure, UN/ECE code. |
| lines[].unit_price | string | The unit price without VAT, decimal text, for example "8.2645" for 10.00 with VAT at 21%. Use it, not unit_price_bani divided by 100. |
| lines[].unit_price_bani | integer | The unit price without VAT, in bani. |
| lines[].unit_gross_bani | integer | null | The price as typed with VAT, in bani; null when the document's prices are without VAT. |
| lines[].vat_category | string | The VAT category. |
| lines[].vat_rate | string | null | The VAT rate, in percent. |
| lines[].vat_treatment | string | null | The line's choice in the VAT column, for example rate, reverse_charge_ro, ex_292_2_e (an exemption, with the article in the key), margin_second_hand; null for a line issued before this field existed. For reverse charge and exemptions vat_rate is 0; for schemes with no rate it is null. |
| lines[].vat_exemption_reason | string | null | The legal reason frozen on the line at issue, printed on the invoice and sent to ANAF as text; null for a line with VAT and for one issued before. |
| lines[].line_net_bani | integer | The line's net after its discount, in bani. |
| settlement | object | null | The payment position, in bani: gross_bani, credited_bani (credit notes), paid_bani, open_bani (still to collect), overpaid_bani, to_return_bani, settled (true when nothing is left to collect). |
Request
curl https://app.efacturaspv.ro/api/v1/invoices/<id> \
-H "Authorization: Bearer efspv_live_<key>"
Example answer
{
"id": "7c0f5a26-1d3e-4a61-9a58-4f2f2f3a9c11",
"kind": "invoice",
"number": "FACT0042",
"series": "FACT",
"status": "validated",
"channel": "spv",
"issue_date": "2026-11-03",
"due_date": "2026-11-17",
"currency": "RON",
"amount_net": "1000.00",
"amount_vat": "210.00",
"amount_gross": "1210.00",
"prices_include_vat": false,
"vat_breakdown": [
{
"category": "S",
"ratePercent": "21",
"linesNetBani": 100000,
"allowanceBani": 0,
"taxableBani": 100000,
"taxBani": 21000,
"payableBani": 121000,
"roundingBani": 0,
"treatment": "rate"
}
],
"buyer": {
"name": "Client Exemplu S.R.L.",
"cui": "12345678",
"vat_number": "RO12345678",
"country": "RO",
"gln": null
},
"client_id": null,
"storno_of_id": null,
"buyer_order_ref": null,
"contract_ref": null,
"source_documents": [
{
"kind": "proforma",
"number": "PRO0007",
"issue_date": "2026-10-28"
}
],
"advance_received_on": "2026-10-30",
"created_at": "2026-11-03T09:12:44.000Z",
"delivery": null,
"delivery_date": null,
"attachments": [],
"storno": {
"version": "3f9a1c07d2b84e55",
"remaining_gross_bani": 121000,
"fully_stornoed": false
},
"lines": [
{
"id": "5d1a8c30-7b52-4f09-8e21-0c4a6b9d3e77",
"storno_remaining_quantity": "10.000",
"description": "Servicii de consultanță",
"quantity": "10.000",
"item_description": null,
"cpv_code": null,
"nc_code": null,
"unit_code": "HUR",
"unit_price_bani": 10000,
"unit_price": "100.0000",
"unit_gross_bani": null,
"vat_category": "S",
"vat_rate": "21",
"vat_treatment": "rate",
"vat_exemption_reason": null,
"line_net_bani": 100000
}
],
"settlement": {
"gross_bani": 121000,
"credited_bani": 0,
"paid_bani": 50000,
"open_bani": 71000,
"overpaid_bani": 0,
"to_return_bani": 0,
"settled": false
}
}
The invoice's XML file
GET /api/v1/invoices/{id}/xml
The XML file with ANAF's seal, as a file to download.
Parameters
| Name | Type | Description |
| idrequired | string | The document's identifier, in the address. |
404 file_not_available means the seal has not arrived yet: try again later.
404 xml_not_available_direct_rail means the document was issued legally without an e-Factura file and no XML will ever exist: stop trying and take the PDF.
Request
curl https://app.efacturaspv.ro/api/v1/invoices/<id>/xml \
-H "Authorization: Bearer efspv_live_<key>"
Example of the answer when the document has no XML
{
"error": {
"code": "xml_not_available_direct_rail",
"message": "This document was issued without an e-Factura XML; its official artifact is the PDF. Use /api/v1/invoices/{id}/pdf."
}
}
The invoice's PDF
GET /api/v1/invoices/{id}/pdf
The document's PDF, as a file to download, the same paper the app's „Descarcă PDF” button gives: it exists from the moment the invoice has its number, before ANAF answers.
Parameters
| Name | Type | Description |
| idrequired | string | The document's identifier, in the address. |
404 pdf_not_available means the document has no paper (rejected, or annulled before it was sent), or that the PDF cannot be drawn right now: in the second case, try again later.
Request
curl https://app.efacturaspv.ro/api/v1/invoices/<id>/pdf \
-H "Authorization: Bearer efspv_live_<key>"
Example of the answer when the document has no PDF
{
"error": {
"code": "pdf_not_available",
"message": "The PDF is not available for this document."
}
}
Invoices from SPV
GET /api/v1/received
The documents brought in from SPV, newest first. By default the list holds purchases only, the invoices suppliers sent the firm; with direction=sale or direction=all the sales appear too, the invoices the firm issued from another program and read back from SPV.
Parameters
| Name | Type | Description |
| direction | string | purchase (default), sale or all. Any other value answers 400 invalid_direction_filter. |
| origin | string | spv (default), manual or all. spv holds only the documents brought in from SPV; manual, the documents added by hand in the app (fiscal receipt, receipt, external invoice, proforma, delivery note), with no XML and no download id. Any other value answers 400 invalid_origin_filter. |
| from | date | The first day listed, inclusive, as YYYY-MM-DD. |
| to | date | The last day listed, inclusive, as YYYY-MM-DD. |
| supplier_cif | string | The supplier number, with or without RO in front: RO12345678, 12345678 and ro 1234 5678 find the same supplier. |
| processed | boolean | true for documents marked as processed, false for the others. |
| page | integer | The page asked for, from 1. Default 1. A value that is not a number from 1 up is not refused: 1 is used. |
| per_page | integer | Rows per page, from 1 to 100. Default 25. A value outside the range is not refused: an allowed value is used. |
Fields of the answer
| Name | Type | Description |
| id | string | The document's identifier. |
| direction | string | purchase or sale. |
| origin | string | spv for a document brought in from SPV, manual for one added by hand. |
| kind | string | null | The kind of a document added by hand: invoice, credit_note, fiscal_receipt, receipt, proforma or delivery_note. null for an SPV document. |
| download_id | string | null | The SPV download id. null for a document added by hand. |
| number | string | The document number, as its issuer writes it. |
| supplier_name | string | The supplier name. On a sale, the firm itself. |
| supplier_cif | string | The supplier number as the supplier's most recent received invoice writes it: one value per supplier, not per invoice. RO and digits while the supplier pays VAT, digits alone while it does not, the country prefix for a foreign supplier. Older rows of a firm whose VAT status changed show the newer form. Compare numbers on their key (spaces removed, upper case, a leading RO dropped), never as identical texts. |
| customer_name | string | null | The buyer. On a sale, the firm's client; its number is never returned. |
| issued_in_app | boolean | True when a sale is the SPV copy of an invoice issued from the app, which /api/v1/invoices also returns. A program reading both lists leaves it out of one. |
| issue_date | date | The issue date. |
| due_date | date | null | The due date. |
| currency | string | The document's currency. |
| type_code | string | null | The document type (UNTDID 1001): 380 invoice, 381 credit note, 384 corrected invoice, 389 self-billed invoice, 751 invoice for a fiscal receipt. |
| amount_total | string | The amount to pay (BT-115) as the document writes it, with no change of sign: the total minus what was paid before it was issued. For an invoice paid in full at the till or in advance it is 0.00. The total with VAT is in amount_document_total. A 381 credit note has positive amounts and reduces what you owe; a 380 invoice with negative amounts is a credit too. |
| amount_document_total | string | The document total with VAT (BT-112) as the document writes it, with no change of sign. Neither the payment made at issue nor the recorded payments are taken off it. |
| amount_prepaid | string | null | The amount paid before the document was issued (BT-113), as the document writes it: paid at the till or in advance. null when the document writes none. |
| amount_vat | string | The VAT as the document writes it, with no change of sign. |
| amount_paid | string | How much of the invoice has been paid, as an amount with two decimals in the document's currency: the sum of the recorded payments, 0.00 when there is none. What is left to pay is amount_total minus amount_paid, never below 0, and nothing for an invoice paid at issue. An invoice marked as paid before payments existed has 0.00 here, paid_at filled in and nothing left to pay. An invoice paid at issue (amount_prepaid) also has 0.00 here and paid_at null: the amount paid at issue is not a recorded payment; you recognise it by amount_total 0.00 with amount_prepaid filled in. |
| paid_at | timestamp | null | When it was marked as paid, or when the payment that covered the invoice came in. null for an invoice paid at issue. |
| processed_at | timestamp | null | When it was marked as processed. |
| received_at | timestamp | null | When it appeared in SPV. |
| created_at | timestamp | When it was brought into the app. |
The answer has the shape { "data": [...], "pagination": { "page", "per_page", "total" } }.
Request
curl https://app.efacturaspv.ro/api/v1/received \
-H "Authorization: Bearer efspv_live_<key>"
Example answer
{
"data": [
{
"id": "0b9c1f84-5b0e-4d2a-8f43-2a1c9e7d6b10",
"direction": "purchase",
"origin": "spv",
"kind": null,
"download_id": "3012345678",
"number": "ABC 1187",
"supplier_name": "Furnizor Exemplu S.R.L.",
"supplier_cif": "RO87654321",
"customer_name": "Firma Mea S.R.L.",
"issued_in_app": false,
"issue_date": "2026-11-02",
"due_date": "2026-11-30",
"currency": "RON",
"type_code": "380",
"amount_total": "595.00",
"amount_document_total": "595.00",
"amount_prepaid": null,
"amount_vat": "95.00",
"amount_paid": "200.00",
"paid_at": null,
"processed_at": null,
"received_at": "2026-11-03T04:01:10.000Z",
"created_at": "2026-11-03T04:01:12.000Z"
}
],
"pagination": {
"page": 1,
"per_page": 25,
"total": 1
}
}
Proformas, offers, orders, estimates and delivery notes
GET /api/v1/documents
The documents that are not invoices, newest first.
Parameters
| Name | Type | Description |
| type | string | One of: proforma, oferta, comanda, deviz, aviz. |
| status | string | One of: draft, issued, void. |
| from | date | The first day listed, inclusive, as YYYY-MM-DD. |
| to | date | The last day listed, inclusive, as YYYY-MM-DD. |
| page | integer | The page asked for, from 1. Default 1. A value that is not a number from 1 up is not refused: 1 is used. |
| per_page | integer | Rows per page, from 1 to 100. Default 25. A value outside the range is not refused: an allowed value is used. |
Fields of the answer
| Name | Type | Description |
| id | string | The document's identifier. |
| type | string | proforma, oferta, comanda, deviz or aviz. |
| status | string | draft, issued or void. |
| number | string | null | The full number, with series. |
| series | string | null | The series code. |
| issue_date | date | null | The issue date. |
| valid_until | date | null | Valid until. |
| currency | string | The document's currency. |
| amount_net | string | Total without VAT, decimal text. |
| amount_vat | string | VAT, decimal text. |
| amount_gross | string | Total with VAT, decimal text. |
| buyer | object | null | The buyer: name, cui, vat_number, country. A private person's personal number is never returned. |
| client_id | string | null | The saved client. |
| converted_invoice_id | string | null | The invoice the document was turned into, while that invoice stands; otherwise null. |
| created_at | timestamp | When the document was created. |
The answer has the shape { "data": [...], "pagination": { "page", "per_page", "total" } }.
Request
curl https://app.efacturaspv.ro/api/v1/documents \
-H "Authorization: Bearer efspv_live_<key>"
Example answer
{
"data": [
{
"id": "3d1e8a7b-9c24-4f10-b6a5-8e0d4c2f7a33",
"type": "proforma",
"status": "issued",
"number": "PF0007",
"series": "PF",
"issue_date": "2026-11-05",
"valid_until": "2026-11-19",
"currency": "EUR",
"amount_net": "500.00",
"amount_vat": "0.00",
"amount_gross": "500.00",
"buyer": {
"name": "Client Exemplu GmbH",
"cui": null,
"vat_number": "DE123456789",
"country": "DE"
},
"client_id": null,
"converted_invoice_id": null,
"created_at": "2026-11-05T10:00:00.000Z"
}
],
"pagination": {
"page": 1,
"per_page": 25,
"total": 1
}
}
Clients
GET /api/v1/clients
The firm's saved clients, newest first. Archived clients appear only with archived=true.
Parameters
| Name | Type | Description |
| search | string | The start of the name, upper and lower case treated alike. |
| cui | string | The client's tax number, exact. |
| archived | boolean | true includes archived clients too; false (default) leaves them out. |
| page | integer | The page asked for, from 1. Default 1. A value that is not a number from 1 up is not refused: 1 is used. |
| per_page | integer | Rows per page, from 1 to 100. Default 25. A value outside the range is not refused: an allowed value is used. |
Fields of the answer
| Name | Type | Description |
| id | string | The client's identifier. |
| type | string | b2b, pfa or b2c. |
| name | string | The client's name. |
| cui | string | null | The tax number. For a private person, the personal number is never returned. |
| vat_number | string | null | The VAT number. |
| country | string | The country, two-letter code. |
| email | string | null | The client's e-mail address. |
| contact_name | string | null | The client's contact person. |
| emails | string[] | Every address the client's documents go to; the first is email. |
| default_currency | string | null | The default currency of the client's documents. |
| default_document_language | string | null | The default language of the client's documents. |
| ibans | string[] | The client's saved bank accounts, the ones you typed first. |
| gln | string | null | The client's GLN (13 digits); null when it has none. |
| supplier_code | string | null | The code the client gives your firm as its supplier; null when it has none. |
| supplier_code_scheme | string | null | The identifier of the supplier code (an ISO 6523 code, for example 0060); null when none is given. |
| default_delivery | object | null | The client's default delivery address, with the same fields as delivery on an issued invoice; a new draft of the client starts with it. null when the client has none. |
| archived_at | timestamp | null | When it was archived. |
| created_at | timestamp | When it was created. |
The answer has the shape { "data": [...], "pagination": { "page", "per_page", "total" } }.
Request
curl https://app.efacturaspv.ro/api/v1/clients \
-H "Authorization: Bearer efspv_live_<key>"
Example answer
{
"data": [
{
"id": "a41b0c6e-7d2f-4e93-8b15-6c9f0d3e1a22",
"type": "b2b",
"name": "Client Exemplu S.R.L.",
"cui": "12345678",
"vat_number": "RO12345678",
"country": "RO",
"email": "contabilitate@exemplu.ro",
"contact_name": "Maria Ionescu",
"emails": [
"contabilitate@exemplu.ro",
"maria@exemplu.ro"
],
"default_currency": "RON",
"default_document_language": "ro",
"ibans": [
"RO49AAAA1B31007593840000"
],
"gln": null,
"supplier_code": null,
"supplier_code_scheme": null,
"default_delivery": null,
"archived_at": null,
"created_at": "2026-09-01T08:30:00.000Z"
}
],
"pagination": {
"page": 1,
"per_page": 25,
"total": 1
}
}
Payments
GET /api/v1/payments
The payments recorded on issued invoices (from the app or from another program), newest first. Voided ones are left out unless you ask for voided=true.
Parameters
| Name | Type | Description |
| from | date | The first day listed, inclusive, as YYYY-MM-DD. |
| to | date | The last day listed, inclusive, as YYYY-MM-DD. |
| invoice_id | string | Only this invoice's payments, whether it was issued from the app or in another program. |
| voided | boolean | true includes voided payments too, to match against your own records; false (default) leaves them out. |
| page | integer | The page asked for, from 1. Default 1. A value that is not a number from 1 up is not refused: 1 is used. |
| per_page | integer | Rows per page, from 1 to 100. Default 25. A value outside the range is not refused: an allowed value is used. |
Fields of the answer
| Name | Type | Description |
| id | string | The payment's identifier. |
| invoice_id | string | The invoice paid, from the app or from another program (see invoice_source). |
| invoice_number | string | null | The invoice's number. |
| invoice_source | string | `app` for an invoice issued from the app, `other_program` for one issued in another program and brought in from SPV. Then invoice_id and invoice_number belong to that invoice. |
| kind | string | payment for money received, refund for money given back (the amount is negative). |
| method | string | One of: cash, bank, card, compensation, other, fiscal_receipt, bank_fee. |
| amount_bani | integer | The amount, in bani, negative for a refund. |
| currency | string | The payment's currency. |
| paid_at | date | The payment date. |
| voided_at | timestamp | null | When it was voided; null while it stands. |
| created_at | timestamp | When it was recorded. |
| bank_provenance | object | null | When the money came from a bank statement: bankLabel, bookingDate, bankRef, importedAt, and nothing else. The payer's name and account from the statement are never included. |
The answer has the shape { "data": [...], "pagination": { "page", "per_page", "total" } }.
Request
curl https://app.efacturaspv.ro/api/v1/payments \
-H "Authorization: Bearer efspv_live_<key>"
Example answer
{
"data": [
{
"id": "5e2a9d10-3b47-4c68-a1f9-0d7b8c4e6f55",
"invoice_id": "7c0f5a26-1d3e-4a61-9a58-4f2f2f3a9c11",
"invoice_number": "FACT0042",
"invoice_source": "app",
"kind": "payment",
"method": "bank",
"amount_bani": 50000,
"currency": "RON",
"paid_at": "2026-11-10",
"voided_at": null,
"created_at": "2026-11-10T07:45:00.000Z",
"bank_provenance": {
"bankLabel": "Extras BT noiembrie",
"bookingDate": "2026-11-10",
"bankRef": "REF123",
"importedAt": "2026-11-10T07:40:00.000Z"
}
}
],
"pagination": {
"page": 1,
"per_page": 25,
"total": 1
}
}
Creating an invoice draft
POST /api/v1/drafts
It creates a draft (answer 201, { "draft": … }) and does not issue: the draft is issued by a separate call, with a key that holds the right to issue, or by a person in the app. This call does not need the right to issue. No field is required: whatever is missing is chosen in the app before issuing. The Idempotency-Key header is accepted: the same header sent a second time gives the same draft.
- The Idempotency-Key header is accepted.
Parameters
| Name | Type | Description |
| clientId | string | A saved client; its default currency and language are taken when you give none. |
| seriesId | string | The series it will be issued in. |
| issueDate | date | The issue date, YYYY-MM-DD. |
| dueDate | date | The due date, YYYY-MM-DD. When absent and issueDate is given, it is the issue date plus the client's payment term (0 days if saved so), else the firm's default term, else the issue date itself. With no issueDate it stays empty and is filled in the app when the draft is opened. |
| currency | string | The document's currency. |
| language | string | The document's language. |
| buyerOrderRef, contractRef, paymentRef, projectRef, salesOrderRef, receiptAdviceRef | string | References the document carries. |
| delivery | object | null | The „Delivered to” place: name, street, city, county and, when you have them, postal, country (default RO), locationCode and locationScheme. An absent key means the client's default delivery address, if it has one; null means no delivery place; a place written here is kept as written. A place missing its name, street, city or county is saved in the draft, but issuing refuses it. |
| deliveryDate | date | The delivery date, YYYY-MM-DD; null or absent means no date. |
| buyerReference | string | The client's own reference for this invoice, at most 200 characters. |
| periodStart, periodEnd | date | The invoiced period, YYYY-MM-DD. Both may be absent, or only one. |
| notes | string | Remarks, printed under the lines. When absent, null or empty, the client's standing notes are used, if it has any. |
| pricesIncludeVat | boolean | Whether the line prices include VAT. Absent means without VAT, whatever the firm's own setting. |
| lines | array | The document lines, at most 200. With no lines the draft is created empty. |
| lines[].description | string | The line description; text longer than 500 characters is kept cut to 500. Default empty: a line with no description is saved, but cannot be issued. |
| lines[].itemDescription | string | The description of the article, at most 200 characters; it is printed under the name and sent to ANAF. |
| lines[].cpvCode | string | The line's CPV code, for example 15980000-1. The code reaches the invoice and is checked only when the client is marked “Public institution” or the firm ticked the setting that shows the CPV code column on all documents, in Settings → Issuing; then a code that is not in the European Union's CPV list is saved in the draft, but issuing refuses it. Otherwise it stays on the draft and is neither checked nor sent. |
| lines[].ncCode | string | The line's Combined Nomenclature code, 4, 6 or 8 digits (spaces and dots are removed). The typed text is saved in the draft; a code that is not 4, 6 or 8 digits makes issuing refuse. |
| lines[].quantity | string | The quantity, decimal text with at most 3 decimals (a number is accepted too). Default 1. |
| lines[].unitCode | string | The unit of measure, UN/ECE code of 2 or 3 characters, for example H87 or HUR. Default H87. |
| lines[].unitPriceBani | integer | The unit price without VAT, in bani, when prices are without VAT. Default 0. |
| lines[].unitGrossBani | integer | The price with VAT you want the buyer to pay, in whole bani (10.00 stays 10.00); the price without VAT is derived from it. Given when pricesIncludeVat is true. |
| lines[].buyerItemCode | string | The client's own code for the article, at most 100 characters. |
| lines[].gtin | string | The article's barcode (GTIN/EAN), digits only, at most 14. The check digit is checked when the invoice is issued. |
| lines[].vatCategory, lines[].vatRate | string | The line's VAT category and rate. The category is S (default) with rate 21 or 11, or O, with rate 0; any other category or rate answers 422. A missing rate leaves the line unfinished: the draft is saved, but cannot be issued until a rate is chosen. |
| lines[].discountBani, lines[].discountPercent | integer, string | The line's discount, either in bani or in percent (text above 0 and below 100, at most two decimals, for example "12.5"), not both. In the document's own prices: with VAT when pricesIncludeVat is true. |
| lines[].foreignPrice | object | For an invoice in lei: the line's price worked out from another currency, an object { currency, amountMinor, markupBp, rate, rateDate, print }. currency is the ISO code (not RON), amountMinor the amount in minor units (10000 = 100.00 EUR), markupBp the markup in hundredths of a percent (200 = 2%, default 0), rate the BNR rate for one unit of the currency (decimal text, at most 6 decimals), rateDate the day of the rate, print whether the sentence is printed on the line (default true). The line price in bani must be exactly amountMinor × rate × (1 + markup), rounded once; otherwise it is not kept at issue and nothing is printed. Ignored when the draft's currency is not RON. An invalid object answers 422 draft_invalid with lines[0]: line_foreign_price_invalid. |
| docDiscountBani, docDiscountPercent | integer, string | The discount on the whole document, in bani or in percent, not both; it is split over the VAT rates in proportion to their lines. |
Fields of the answer
| Name | Type | Description |
| draft | object | The draft created, with its id, its lines and the other fields sent. |
Invalid data answers 422 draft_invalid; the message names each problem, for example lines[0]: line_discount_percent_invalid, lines[0]: line_discount_percent_and_amount, lines[0]: line_unit_gross_not_integer_bani, doc_discount_percent_invalid or doc_discount_percent_and_amount.
Dates out of order (the due date before the issue date, the end of the period before its start), an empty quantity, an unfinished CPV code and a wrong barcode are saved in the draft; the app shows them under "To complete" and issuing refuses them.
A lineNetBani sent in a line is replaced: the server works it out (if you send it, it must be a whole number of bani).
Request
curl -X POST https://app.efacturaspv.ro/api/v1/drafts \
-H "Authorization: Bearer efspv_live_<key>" \
-H "Idempotency-Key: <a value of yours, for example a UUID>" \
-H "Content-Type: application/json" \
-d '<the body below>'
Request body
{
"clientId": "a41b0c6e-7d2f-4e93-8b15-6c9f0d3e1a22",
"issueDate": "2026-11-14",
"dueDate": "2026-11-28",
"pricesIncludeVat": false,
"lines": [
{
"description": "Servicii de consultanță",
"quantity": "10",
"unitCode": "HUR",
"unitPriceBani": 10000,
"vatCategory": "S",
"vatRate": "21"
}
]
}
Example answer
{
"draft": {
"id": "c8d3f1a0-2b64-4e7d-9a10-5f6e7b8c9d01",
"clientId": "a41b0c6e-7d2f-4e93-8b15-6c9f0d3e1a22",
"issueDate": "2026-11-14",
"dueDate": "2026-11-28",
"pricesIncludeVat": false,
"lines": [
{
"description": "Servicii de consultanță",
"quantity": "10",
"unitCode": "HUR",
"unitPriceBani": 10000,
"vatCategory": "S",
"vatRate": "21",
"lineNetBani": 100000
}
]
}
}
Issuing a draft
POST /api/v1/drafts/{id}/issue
It issues a draft made with POST /api/v1/drafts or in the app: it numbers it and sends it by the firm's way (ANAF, filing by hand or, for some buyers, straight to the client). It makes the same checks as „Emite” in the app: the plan, the firm's limit of issues per minute, the monthly limit, the daily technical limits, the series and the order of dates, the VAT rules. It needs the key's right to issue („Poate emite”) and has no body. A draft the app refuses stays in „Nefinalizate”, for a person to finish.
- Needs the right to issue
- The Idempotency-Key header is accepted.
Parameters
| Name | Type | Description |
| idrequired | string | The draft's identifier, in the address. |
Fields of the answer
| Name | Type | Description |
| invoice | object | The invoice issued, the same fields as GET /api/v1/invoices/{id}, with its number. |
| pdf_url | string | The address of the invoice PDF (GET /api/v1/invoices/{id}/pdf). The PDF exists from the moment of the answer, even before ANAF has answered. |
| warnings | array | The warnings the confirm window in the app would have shown, each { code, line }: code is line_price_zero (the line has a price of 0) or line_cpv_missing (the client is a public institution and the line has no CPV code), and line is the number of the line, from 0, as in lines[0], or null. A warning does not stop the issue. |
| transport | string | The way of the document: anaf (it is sent to ANAF), manual (the firm files it in SPV) or direct (the document is complete when issued, with no ANAF). |
The answer is 201. A repeated call with the same Idempotency-Key issues once and answers with the same invoice, with the header Idempotent-Replayed: true.
Each refusal has its own code and status, and the list of problems, when there is one, is in problems, codes only (never sentences). draft_already_emitted carries in params.invoice_id the invoice made from this draft. The limits of the month and of the day count as at the button: emission_monthly_cap_reached names the plan and the limit in params, and emission_daily_ceiling_reached comes from the technical limit of 200 documents a day for a firm.
402 feature_not_included is also the answer when the firm's plan does not include issuing invoices.
Request
curl -X POST https://app.efacturaspv.ro/api/v1/drafts/<id>/issue \
-H "Authorization: Bearer efspv_live_<key>" \
-H "Idempotency-Key: <a value of yours, for example a UUID>"
Example answer
{
"invoice": {
"id": "7c0f5a26-1d3e-4a61-9a58-4f2f2f3a9c11",
"kind": "invoice",
"number": "FACT000042",
"series": "FACT",
"status": "draft",
"channel": "spv",
"issue_date": "2026-11-16",
"due_date": "2026-11-30",
"currency": "RON",
"amount_net": "100.00",
"amount_vat": "21.00",
"amount_gross": "121.00",
"buyer": {
"name": "CUMPARATOR SRL",
"cui": "RO12345678",
"vat_number": "RO12345678",
"country": "RO"
},
"client_id": "a41b0c6e-7d2f-4e93-8b15-6c9f0d3e1a22",
"storno_of_id": null,
"created_at": "2026-11-16T09:30:00.000Z"
},
"pdf_url": "/api/v1/invoices/7c0f5a26-1d3e-4a61-9a58-4f2f2f3a9c11/pdf",
"warnings": [
{
"code": "line_price_zero",
"line": 1
}
],
"transport": "anaf"
}
Deleting a draft
DELETE /api/v1/drafts/{id}
It deletes an unfinished draft, for good and with no fiscal trace. It needs the right to issue, although in the app any member may delete a draft: the call can delete work a person typed. If an invoice was already made from the draft, the invoice is left untouched.
Parameters
| Name | Type | Description |
| idrequired | string | The draft's identifier, in the address. |
Fields of the answer
| Name | Type | Description |
| id | string | The deleted draft's identifier. |
| deleted | boolean | Always true. |
The second time the draft is gone and the call answers 404 draft_not_found.
Request
curl -X DELETE https://app.efacturaspv.ro/api/v1/drafts/<id> \
-H "Authorization: Bearer efspv_live_<key>"
Example answer
{
"id": "c3d2f8a0-5b71-4e0f-9a64-2d8e7b1c4a90",
"deleted": true
}
Storno an invoice
POST /api/v1/invoices/{id}/storno
Cancels an issued invoice by a storno, whole or by lines, like the storno button in the app: the same checks, the same amounts, the same document that goes to ANAF. It needs the right to issue and the Idempotency-Key header: a repeated request with the same value answers with the first storno and makes no other. With no lines, everything left of the invoice is stornoed. With lines, the quantities given are stornoed; read the invoice first (GET /api/v1/invoices/{id}) for the id of each line, what is left of it (storno_remaining_quantity) and the version (storno.version), which you send back.
- Needs the right to issue
- The Idempotency-Key header is required.
Parameters
| Name | Type | Description |
| idrequired | string | The identifier of the invoice to storno, in the address. |
| reason_coderequired | string | The reason, one of return (goods returned), not_delivered (service not performed or delivery partial), wrong_qty (quantity or price wrong on the invoice) and other (another reason). The app writes the Romanian sentence of the reason in the firm records. |
| reason_note | string | Required with other: the reason in your own words. Ignored with the other reasons. |
| lines | array | The lines to storno, each with line_id (from GET /api/v1/invoices/{id}, lines[].id) and quantity (positive decimal text, at most what is left of the line). A line appears at most once. Leaving the field out stornoes the whole invoice, and then nothing may have been stornoed from it before. |
| storno_version | string | Required with lines: the storno.version read from the invoice. If something was stornoed in the meantime the request is refused with storno_lines_stale and you make it again after reading the invoice. |
Fields of the answer
| Name | Type | Description |
| storno | object | The storno document, in the same fields as in the list of issued invoices. It starts as a draft with number null and gets its number when it goes to ANAF; read it at any time by its id from GET /api/v1/invoices/{id} (it also appears in the list), with status draft and number null until it gets its number. |
| original | object | The invoice that was stornoed, as it stands now. It becomes storno_issued at once for an invoice issued directly; for an invoice through ANAF, once ANAF validates the storno. |
| replayed | boolean | True when the answer repeats a storno made by an earlier request (the same Idempotency-Key value). |
| parked | boolean | True when the storno waits for the firm's emission to be ready and goes by itself after that; it must not be sent again. |
| remaining_gross_bani | integer | How much can still be stornoed of the invoice, with VAT, in bani, after this storno. |
| fully_stornoed | boolean | True when nothing is left to storno of the invoice. |
| collected_bani | integer | How much was collected on the invoice that was stornoed, in bani (payments minus refunds). If it is more than what is left to pay after the storno, the difference shows as to_return_bani in settlement and is closed by a refund. |
The answer is 201 for the first request and for a repeat with the same Idempotency-Key value, with the header Idempotent-Replayed: true and replayed: true. A refused request writes nothing and is not remembered: after you fix the cause you can send it with the same value.
GET /api/v1/invoices/{id} also has lines[].id, lines[].storno_remaining_quantity (how much of the line can still be stornoed, decimal text) and storno: { version, remaining_gross_bani, fully_stornoed }. storno is null for a document that cannot be stornoed (anything but an invoice, an invoice not yet issued or still at ANAF).
The refusals about a line (storno_line_not_found, storno_exceeds_remaining, storno_amount_too_small, storno_lines_required for a line) name the line in error.params.line_id; storno_exceeds_remaining also says error.params.remaining_quantity, how much of it can still be stornoed.
A storno made by a key appears in the document history as made by the API key, with its name.
Request
curl -X POST https://app.efacturaspv.ro/api/v1/invoices/<id>/storno \
-H "Authorization: Bearer efspv_live_<key>" \
-H "Idempotency-Key: <a value of yours, for example a UUID>" \
-H "Content-Type: application/json" \
-d '<the body below>'
Request body
{
"reason_code": "return",
"lines": [
{
"line_id": "5d1a8c30-7b52-4f09-8e21-0c4a6b9d3e77",
"quantity": "3"
}
],
"storno_version": "4d186321c1a7f0f354b297e8914ab240"
}
Answer (201)
{
"storno": {
"id": "9b2e6d41-3c58-4a17-b0e9-6f1d8a2c7e54",
"kind": "storno",
"number": null,
"series": "FACT",
"status": "draft",
"channel": "spv",
"issue_date": "2026-11-16",
"due_date": null,
"currency": "RON",
"amount_net": "-300.00",
"amount_vat": "-63.00",
"amount_gross": "-363.00",
"buyer": {
"name": "Client Exemplu S.R.L.",
"cui": "12345678",
"vat_number": "RO12345678",
"country": "RO"
},
"client_id": null,
"storno_of_id": "7c0f5a26-1d3e-4a61-9a58-4f2f2f3a9c11",
"created_at": "2026-11-16T09:12:44.000Z"
},
"original": {
"id": "7c0f5a26-1d3e-4a61-9a58-4f2f2f3a9c11",
"kind": "invoice",
"number": "FACT0042",
"series": "FACT",
"status": "validated",
"channel": "spv",
"issue_date": "2026-11-03",
"due_date": "2026-11-17",
"currency": "RON",
"amount_net": "1000.00",
"amount_vat": "210.00",
"amount_gross": "1210.00",
"buyer": {
"name": "Client Exemplu S.R.L.",
"cui": "12345678",
"vat_number": "RO12345678",
"country": "RO"
},
"client_id": null,
"storno_of_id": null,
"created_at": "2026-11-03T09:12:44.000Z"
},
"replayed": false,
"parked": false,
"remaining_gross_bani": 84700,
"fully_stornoed": false,
"collected_bani": 50000
}
Annulling an invoice
POST /api/v1/invoices/{id}/void
Annuls a numbered invoice that has not reached ANAF yet (it waits to be sent) or that ANAF rejected, or a storno that still waits for its number. It needs the right to issue. It applies the same rules as the button in the app: what was typed on the invoice goes back among the firm's drafts, and the number stays used. An invoice ANAF validated, or one that was sent and not checked yet, is not annulled but corrected with a storno.
- Needs the right to issue
- The Idempotency-Key header is accepted.
Parameters
| Name | Type | Description |
| idrequired | string | The invoice's identifier, in the path. |
| reasonrequired | string | The reason, a text that is not empty. It is kept in the document's history, beside the key's name. |
Fields of the answer
| Name | Type | Description |
| invoice | object | The invoice as the list shows it, with status void_unissued. The number stays used: in the firm's journal it appears as an annulled line, so there is no silent gap in the series. A storno annulled before it got its number keeps number null. |
| restored_draft_id | string | null | The draft the invoice was issued from, put back among the firm's drafts with everything typed on it. null when the invoice did not start from a draft. |
The body is { "reason": "…" }. With no reason the answer is 400 reason_required. An unknown id, or one of another firm, answers 404 invoice_not_found.
An invoice in another state answers 409 void_not_allowed, with its status in params.status. The Idempotency-Key header is accepted: a repeat with the same value answers with the invoice as it is now, with the header Idempotent-Replayed: true.
In the document's history the act appears as made by the API key, by its name, not by a person.
Request
curl -X POST https://app.efacturaspv.ro/api/v1/invoices/<id>/void \
-H "Authorization: Bearer efspv_live_<key>" \
-H "Idempotency-Key: <a value of yours, for example a UUID>" \
-H "Content-Type: application/json" \
-d '<the body below>'
Request body
{
"reason": "Client greșit"
}
Example answer
{
"invoice": {
"id": "7c0f5a26-1d3e-4a61-9a58-4f2f2f3a9c11",
"kind": "invoice",
"number": "FACT0042",
"series": "FACT",
"status": "void_unissued",
"channel": "spv",
"issue_date": "2026-11-14",
"due_date": "2026-11-28",
"currency": "RON",
"amount_net": "1000.00",
"amount_vat": "210.00",
"amount_gross": "1210.00",
"buyer": {
"name": "Client Exemplu S.R.L.",
"cui": "12345678",
"vat_number": "RO12345678",
"country": "RO"
},
"client_id": "a41b0c6e-7d2f-4e93-8b15-6c9f0d3e1a22",
"storno_of_id": null,
"created_at": "2026-11-14T09:12:40.000Z"
},
"restored_draft_id": "c8d3f1a0-2b64-4e7d-9a10-5f6e7b8c9d01"
}
Deleting a numbered invoice
POST /api/v1/invoices/{id}/delete
Deletes a numbered invoice that never left for ANAF and gives its number back to the series, so the next issue gets exactly the same number and the series has no gap. It needs the right to issue. It applies the same rules as the button in the app: only the last number of the series is deleted, and what was typed on the invoice goes back among the firm's drafts.
- Needs the right to issue
- The Idempotency-Key header is accepted.
Parameters
| Name | Type | Description |
| idrequired | string | The invoice's identifier, in the path. |
| reasonrequired | string | The reason, a text that is not empty. It is kept in the document's history, beside the key's name. |
Fields of the answer
| Name | Type | Description |
| id | string | The deleted invoice's identifier. |
| deleted | boolean | Always true. |
| released_number | string | null | The number given back to the series: the next issue in that series gets it. On a second delete it is the number given back the first time. |
| already_deleted | boolean | true when the invoice was already deleted: nothing changed and the number was not given back again. |
The body is { "reason": "…" }. With no reason the answer is 400 reason_required. An unknown id, or one of another firm, answers 404 invoice_not_found. After the delete the invoice is in no list and a GET on it answers 404.
Refusals: 409 delete_already_sent (the invoice reached ANAF), delete_already_issued (an invoice issued directly, with its number spent: correct it with a storno), delete_manual_not_confirmed (the firm files by hand and the file may already be in SPV), delete_not_allowed (not an ordinary invoice that was never issued and has a number), action_in_flight (the invoice is being sent right now, try again in a minute) and delete_not_last_number (another invoice already took the next number of the series; annul the invoice instead of deleting it).
A second delete of the same invoice answers 200 with already_deleted: true and does not give the number back again. The Idempotency-Key header is accepted; a repeat with the same value answers with the first answer, with the header Idempotent-Replayed: true.
Request
curl -X POST https://app.efacturaspv.ro/api/v1/invoices/<id>/delete \
-H "Authorization: Bearer efspv_live_<key>" \
-H "Idempotency-Key: <a value of yours, for example a UUID>" \
-H "Content-Type: application/json" \
-d '<the body below>'
Request body
{
"reason": "Emisă din greșeală"
}
Example answer
{
"id": "7c0f5a26-1d3e-4a61-9a58-4f2f2f3a9c11",
"deleted": true,
"released_number": "FACT0042",
"already_deleted": false
}
Recording a payment
POST /api/v1/payments
Records a payment on an invoice issued in the app or in another program, with the same checks as the payment window in the app (answer 201). For cash you can also ask for the numbered receipt (chitanță). The payment keeps the key that recorded it, and the invoice's history shows it as made by the API key. The call needs the right to issue and the Idempotency-Key header: a repeat without it would be a second payment.
- Needs the right to issue
- The Idempotency-Key header is required.
Parameters
| Name | Type | Description |
| invoice_idrequired | string | The invoice paid: one issued in the app, or one issued in another program and brought in from SPV. |
| methodrequired | string | One of the values of the method field of the list of payments (GET /api/v1/payments): cash, bank, card, compensation, other, fiscal_receipt, bank_fee. |
| amount_banirequired | integer | The amount, in bani of the invoice's currency: a positive whole number. More than what is left to pay is accepted (see settlement.overpaid_bani). |
| paid_atrequired | date | The day the money arrived, as YYYY-MM-DD. It cannot be in the future. |
| note | string | A free text, at most 500 characters. |
| receipt | boolean | true asks for the numbered receipt. Only for method cash and only for an invoice issued in the app. It also needs cashier_name. |
| receipt_series_id | string | The receipt series. Without it the firm's default series is used, or the only active one. |
| cashier_name | string | The cashier printed on the receipt, at most 120 characters. Required with receipt: a key has no person whose name could be printed. |
Fields of the answer
| Name | Type | Description |
| payment | object | The payment, with the same fields as in the list of payments. |
| receipt | object | null | The receipt, when you asked for it: id, number and warnings. Each warning has code and params and does not stop the receipt: the cash ceiling exceeded (chitanta_cash_ceiling, chitanta_cash_ceiling_unchecked), the receipt dated before the invoice (chitanta_before_invoice) or the order of dates in the series (series_chronology_violation, when the series allows it). |
| settlement | object | Where the invoice stands after the payment: gross_bani, credited_bani (what credit notes took), paid_bani, open_bani (what is left to pay, never below 0), overpaid_bani (what was collected beyond what the invoice still stands for) and settled. |
A bank transfer that a statement uploaded in the app already shows (the same amount, the same currency, not yet matched) is not recorded through the API: the answer is 409 payment_bank_line_waiting, with booking_date, amount_bani and count in params, and never the payer's name or account. A person answers the question whether it is the same payment in the app, because the answer teaches the app a client's bank account.
The same Idempotency-Key value with the same body returns the first payment, with the header Idempotent-Replayed: true, and no second record.
Request
curl -X POST https://app.efacturaspv.ro/api/v1/payments \
-H "Authorization: Bearer efspv_live_<key>" \
-H "Idempotency-Key: <a value of yours, for example a UUID>" \
-H "Content-Type: application/json" \
-d '<the body below>'
Request body
{
"invoice_id": "7c0f5a26-1d3e-4a61-9a58-4f2f2f3a9c11",
"method": "bank",
"amount_bani": 50000,
"paid_at": "2026-11-10",
"note": "OP 17"
}
Example answer
{
"payment": {
"id": "5e2a9d10-3b47-4c68-a1f9-0d7b8c4e6f55",
"invoice_id": "7c0f5a26-1d3e-4a61-9a58-4f2f2f3a9c11",
"invoice_number": "FACT0042",
"invoice_source": "app",
"kind": "payment",
"method": "bank",
"amount_bani": 50000,
"currency": "RON",
"paid_at": "2026-11-10",
"voided_at": null,
"created_at": "2026-11-10T07:45:00.000Z",
"bank_provenance": null
},
"receipt": null,
"settlement": {
"gross_bani": 121000,
"credited_bani": 0,
"paid_bani": 50000,
"open_bani": 71000,
"overpaid_bani": 0,
"settled": false
}
}
Cancelling a payment
POST /api/v1/payments/{id}/void
Cancels a payment, as the button that cancels a payment in the app does (answer 200). The payment stays in the list, marked as cancelled, and leaves every sum; the invoice is worked out again from the payments left. If a bank statement line funded the payment, the line goes back to be matched. The call needs the right to issue.
- Needs the right to issue
- The Idempotency-Key header is accepted.
Parameters
| Name | Type | Description |
| idrequired | string | The payment to cancel, in the address. |
| reason | string | The reason, optional. Without it the payment carries a default reason, and the history shows none. |
Fields of the answer
| Name | Type | Description |
| payment | object | The cancelled payment, with voided_at filled in. |
| bank_line_reopened | boolean | true when a bank statement line that funded the payment went back to be matched, so a person can match it in the app. |
A payment that has a live receipt cannot be cancelled by itself: the answer is 409 payment_has_chitanta, with receipt_id and receipt_number in params. The receipt is cancelled first, and its payment is cancelled with it. Idempotency-Key is read when sent: the same value returns the first answer; without it, a second cancellation is 409 payment_already_voided.
Request
curl -X POST https://app.efacturaspv.ro/api/v1/payments/<id>/void \
-H "Authorization: Bearer efspv_live_<key>" \
-H "Idempotency-Key: <a value of yours, for example a UUID>" \
-H "Content-Type: application/json" \
-d '<the body below>'
Request body
{
"reason": "Plată introdusă greșit"
}
Example answer
{
"payment": {
"id": "5e2a9d10-3b47-4c68-a1f9-0d7b8c4e6f55",
"invoice_id": "7c0f5a26-1d3e-4a61-9a58-4f2f2f3a9c11",
"invoice_number": "FACT0042",
"invoice_source": "app",
"kind": "payment",
"method": "bank",
"amount_bani": 50000,
"currency": "RON",
"paid_at": "2026-11-10",
"voided_at": "2026-11-10T09:12:00.000Z",
"created_at": "2026-11-10T07:45:00.000Z",
"bank_provenance": null
},
"bank_line_reopened": false
}
Record a refund
POST /api/v1/refunds
Records money given back to the client on an invoice issued from the app, usually after a credit note. It applies the same checks as the button in the app. It needs the right “Can issue” and the Idempotency-Key header: the same value sent a second time returns the first refund, not a second one.
- Needs the right to issue
- The Idempotency-Key header is required.
Parameters
| Name | Type | Description |
| invoice_idrequired | string | The invoice issued from the app that was collected on. |
| methodrequired | string | One of: cash, bank, card, compensation, other, fiscal_receipt, bank_fee. |
| amount_banirequired | integer | The amount given back, in bani, positive and at most what was collected and not yet given back. |
| paid_atrequired | date | The day of the refund, as YYYY-MM-DD, not in the future. |
| note | string | A note, at most 500 characters. |
Fields of the answer
| Name | Type | Description |
| payment | object | The refund recorded, with the same fields as a payment of the list of payments; the amount is negative. |
| id | string | The payment's identifier. |
| invoice_id | string | The invoice it is recorded on. |
| invoice_number | string | null | The invoice's number. |
| invoice_source | string | `app` for an invoice issued from the app. |
| kind | string | `refund` for money given back, `payment` for money received. |
| method | string | The payment method. |
| amount_bani | integer | The amount, in bani; negative for a refund. |
| currency | string | The invoice's currency. |
| paid_at | date | The payment day. |
| voided_at | timestamp | null | When it was cancelled; null while it stands. |
| created_at | timestamp | When it was recorded. |
| bank_provenance | null | Always null here: a refund or cancel made through the API does not come from a bank statement. |
Answers 201. A refund in cash issues no receipt. The notification payment.refunded is sent, once.
An invoice issued in another program takes no refund here (409 sale_refund_not_offered): cancel the wrong payment and record it again.
A wrong refund is cancelled in the app, on its row; it is not edited.
Request
curl -X POST https://app.efacturaspv.ro/api/v1/refunds \
-H "Authorization: Bearer efspv_live_<key>" \
-H "Idempotency-Key: <a value of yours, for example a UUID>" \
-H "Content-Type: application/json" \
-d '<the body below>'
Request body
{
"invoice_id": "7c0f5a26-1d3e-4a61-9a58-4f2f2f3a9c11",
"method": "bank",
"amount_bani": 5000,
"paid_at": "2026-11-16",
"note": "Stornare FACT0042"
}
Example answer
{
"payment": {
"id": "5f0d6a1e-3c2b-4e8f-9a47-1b6c2d3e4f50",
"invoice_id": "7c0f5a26-1d3e-4a61-9a58-4f2f2f3a9c11",
"invoice_number": "FACT0042",
"invoice_source": "app",
"kind": "refund",
"method": "bank",
"amount_bani": -5000,
"currency": "RON",
"paid_at": "2026-11-16",
"voided_at": null,
"created_at": "2026-11-16T09:12:44.000Z",
"bank_provenance": null
}
}
Cancel a receipt
POST /api/v1/receipts/{id}/void
Cancels a receipt together with its payment, like the button “Void receipt” in the app: the receipt keeps its number and reads as cancelled, the amount returns to what is still owed. It needs the right “Can issue”. The Idempotency-Key header is accepted.
- Needs the right to issue
- The Idempotency-Key header is accepted.
Parameters
| Name | Type | Description |
| idrequired | string | The receipt's identifier, in the address. |
| reasonrequired | string | The reason for the cancel. |
Fields of the answer
| Name | Type | Description |
| receipt.id | string | The receipt's identifier. |
| receipt.number | string | The receipt's number. |
| receipt.status | string | `void` after the cancel. |
| payment | object | The receipt's payment, now cancelled (voided_at filled in), with the same fields as above. |
The notification payment.voided is sent, once. Without an Idempotency-Key, a second cancel of the same receipt answers 409 chitanta_already_voided.
A payment with a receipt is cancelled only through its receipt.
Request
curl -X POST https://app.efacturaspv.ro/api/v1/receipts/<id>/void \
-H "Authorization: Bearer efspv_live_<key>" \
-H "Idempotency-Key: <a value of yours, for example a UUID>" \
-H "Content-Type: application/json" \
-d '<the body below>'
Request body
{
"reason": "Sumă greșită"
}
Example answer
{
"receipt": {
"id": "2d9c8b7a-6e5f-4a3b-8c1d-0e9f8a7b6c5d",
"number": "CH0007",
"status": "void"
},
"payment": {
"id": "5f0d6a1e-3c2b-4e8f-9a47-1b6c2d3e4f50",
"invoice_id": "7c0f5a26-1d3e-4a61-9a58-4f2f2f3a9c11",
"invoice_number": "FACT0042",
"invoice_source": "app",
"kind": "payment",
"method": "bank",
"amount_bani": 12100,
"currency": "RON",
"paid_at": "2026-11-16",
"voided_at": "2026-11-16T09:20:01.000Z",
"created_at": "2026-11-16T09:12:44.000Z",
"bank_provenance": null
}
}
A receipt's PDF
GET /api/v1/receipts/{id}/pdf
Downloads the receipt PDF, the same file the app downloads. It needs no “Can issue” right: it is a read.
Parameters
| Name | Type | Description |
| idrequired | string | The receipt's identifier, in the address. |
Answers application/pdf. While the paper is still being made the answer is 404 pdf_not_available; try again in a few seconds. A cancelled receipt shows the cancelled mark once the paper is made again.
Request
curl https://app.efacturaspv.ro/api/v1/receipts/<id>/pdf \
-H "Authorization: Bearer efspv_live_<key>"
The answer while the paper is being made; otherwise the answer is the PDF file.
{
"error": {
"code": "pdf_not_available",
"message": "The PDF is not available yet for this receipt."
}
}
The firm's products
GET /api/v1/products
The products of the “Products” page, the oldest change first. A program that keeps a shop or a stock in step keeps the updated_at of the last row it read, sends it as updated_since and goes forward page by page: it loses no change. Any key reads; no right is needed.
Parameters
| Name | Type | Description |
| search | string | A part of the name or of the code, in any letter case. |
| updated_since | date | timestamp | The products changed from then on, the moment included: a day YYYY-MM-DD (from the start of that day, Romanian time) or an RFC 3339 time, for example 2026-11-21T08:30:00Z. Anything else answers 400 invalid_updated_since_filter. |
| page | integer | The page asked for, from 1. Default 1. A value that is not a number from 1 up is not refused: 1 is used. |
| per_page | integer | Rows per page, from 1 to 100. Default 25. A value outside the range is not refused: an allowed value is used. |
Fields of the answer
| Name | Type | Description |
| id | string | The product's identifier. |
| name | string | The name, at most 500 characters. The firm cannot have two products with the same name, in any letter case. |
| code | string | null | The product's code, at most 64 characters. It goes onto the invoice line as the item's code. |
| unit_code | string | The unit of measure, a code from the units list of GET /api/v1/reference. Default H87 (piece). |
| description | string | null | The text that appears under the product's name on the invoice line, at most 200 characters. |
| cpv_code | string | null | The product's CPV code, from the European list. |
| nc_code | string | null | The Combined Nomenclature code: 4, 6 or 8 digits. |
| vat_category | string | The VAT category: S for a rate, E for an exemption, O for the farmers' regime. The app sets it from the VAT choice. |
| vat_rate | string | The VAT rate, decimal text (21.00). A firm that does not pay VAT always has 0.00, whatever is sent. |
| vat_treatment | string | The VAT choice, a key from vat_treatments of GET /api/v1/reference. rate means an ordinary rate. |
| vat_exemption_text | string | null | The reason you typed, only for the choice exempt_other (at most 100 characters). |
| prices[].currency | string | The price's currency, a code from the currencies list of GET /api/v1/reference. |
| prices[].unit_price_minor | integer | The price without VAT, a whole number in the currency's smallest unit: bani for lei, cents for euro, whole yen for yen. 150.00 lei is 15000. |
| prices[].unit_gross_minor | integer | null | The price with VAT, in the same unit, only when the price was entered with VAT; otherwise null. |
| created_at | timestamp | When the product was created. |
| updated_at | timestamp | The product's last change, in the app or through the API. |
The answer has the shape { "data": [...], "pagination": { "page", "per_page", "total" } }, in the order of updated_at, then id, ascending.
Prices are whole numbers in the currency's smallest unit (unit_price_minor), not decimal text.
Request
curl https://app.efacturaspv.ro/api/v1/products \
-H "Authorization: Bearer efspv_live_<key>"
Example answer
{
"data": [
{
"id": "5b1e9c52-3a47-4d0e-8f6a-2c7d90b4e113",
"name": "Consultanță",
"code": "CON-1",
"unit_code": "HUR",
"description": null,
"cpv_code": null,
"nc_code": null,
"vat_category": "S",
"vat_rate": "21.00",
"vat_treatment": "rate",
"vat_exemption_text": null,
"prices": [
{
"currency": "RON",
"unit_price_minor": 15000,
"unit_gross_minor": null
},
{
"currency": "EUR",
"unit_price_minor": 3000,
"unit_gross_minor": 3630
}
],
"created_at": "2026-11-21T09:12:40.000Z",
"updated_at": "2026-11-23T10:05:11.000Z"
}
],
"pagination": {
"page": 1,
"per_page": 25,
"total": 1
}
}
One product
GET /api/v1/products/{id}
One product of the firm, with all its prices. An identifier of another firm answers 404 product_not_found, the same as one that does not exist.
Parameters
| Name | Type | Description |
| idrequired | string | The product's identifier, in the path. |
Fields of the answer
| Name | Type | Description |
| id | string | The product's identifier. |
| name | string | The name, at most 500 characters. The firm cannot have two products with the same name, in any letter case. |
| code | string | null | The product's code, at most 64 characters. It goes onto the invoice line as the item's code. |
| unit_code | string | The unit of measure, a code from the units list of GET /api/v1/reference. Default H87 (piece). |
| description | string | null | The text that appears under the product's name on the invoice line, at most 200 characters. |
| cpv_code | string | null | The product's CPV code, from the European list. |
| nc_code | string | null | The Combined Nomenclature code: 4, 6 or 8 digits. |
| vat_category | string | The VAT category: S for a rate, E for an exemption, O for the farmers' regime. The app sets it from the VAT choice. |
| vat_rate | string | The VAT rate, decimal text (21.00). A firm that does not pay VAT always has 0.00, whatever is sent. |
| vat_treatment | string | The VAT choice, a key from vat_treatments of GET /api/v1/reference. rate means an ordinary rate. |
| vat_exemption_text | string | null | The reason you typed, only for the choice exempt_other (at most 100 characters). |
| prices[].currency | string | The price's currency, a code from the currencies list of GET /api/v1/reference. |
| prices[].unit_price_minor | integer | The price without VAT, a whole number in the currency's smallest unit: bani for lei, cents for euro, whole yen for yen. 150.00 lei is 15000. |
| prices[].unit_gross_minor | integer | null | The price with VAT, in the same unit, only when the price was entered with VAT; otherwise null. |
| created_at | timestamp | When the product was created. |
| updated_at | timestamp | The product's last change, in the app or through the API. |
Request
curl https://app.efacturaspv.ro/api/v1/products/<id> \
-H "Authorization: Bearer efspv_live_<key>"
Example answer
{
"id": "5b1e9c52-3a47-4d0e-8f6a-2c7d90b4e113",
"name": "Consultanță",
"code": "CON-1",
"unit_code": "HUR",
"description": null,
"cpv_code": null,
"nc_code": null,
"vat_category": "S",
"vat_rate": "21.00",
"vat_treatment": "rate",
"vat_exemption_text": null,
"prices": [
{
"currency": "RON",
"unit_price_minor": 15000,
"unit_gross_minor": null
},
{
"currency": "EUR",
"unit_price_minor": 3000,
"unit_gross_minor": 3630
}
],
"created_at": "2026-11-21T09:12:40.000Z",
"updated_at": "2026-11-23T10:05:11.000Z"
}
Adding a product
POST /api/v1/products
Adds a product to the firm's catalog, with the same checks as “New product” in the app. It needs the right to change products, which the firm's owner gives on the key's row. A new document that picks the product finds it at once; documents already issued do not change.
- Needs the right to change products
- The Idempotency-Key header is accepted.
Parameters
| Name | Type | Description |
| name | string | The product name. Required when creating; when changing, leaving it out keeps the current name. |
| code | string | The product code. null or an empty text clears it. |
| unit_code | string | The unit of measure, from the units list. Default H87. |
| description, cpv_code, nc_code | string | The product's optional fields. null or an empty text clears them. |
| vat_rate | number | The VAT rate: 21 or 11, or one of the older rates (19, 9, 5). Required when creating for a VAT payer, unless you send vat_treatment. |
| vat_treatment, vat_exemption_text | string | The VAT choice (a key from vat_treatments with product_use true) and, for exempt_other, the reason. The choice sets the category and the rate by itself. |
| prices | array | The list of prices, one per currency, each { "currency", "unit_price_minor", "unit_gross_minor" (optional) }. Required when creating; when changing, if you send it, it replaces the whole list: a currency missing from it is removed. |
Fields of the answer
| Name | Type | Description |
| id | string | The product's identifier. |
| name | string | The name, at most 500 characters. The firm cannot have two products with the same name, in any letter case. |
| code | string | null | The product's code, at most 64 characters. It goes onto the invoice line as the item's code. |
| unit_code | string | The unit of measure, a code from the units list of GET /api/v1/reference. Default H87 (piece). |
| description | string | null | The text that appears under the product's name on the invoice line, at most 200 characters. |
| cpv_code | string | null | The product's CPV code, from the European list. |
| nc_code | string | null | The Combined Nomenclature code: 4, 6 or 8 digits. |
| vat_category | string | The VAT category: S for a rate, E for an exemption, O for the farmers' regime. The app sets it from the VAT choice. |
| vat_rate | string | The VAT rate, decimal text (21.00). A firm that does not pay VAT always has 0.00, whatever is sent. |
| vat_treatment | string | The VAT choice, a key from vat_treatments of GET /api/v1/reference. rate means an ordinary rate. |
| vat_exemption_text | string | null | The reason you typed, only for the choice exempt_other (at most 100 characters). |
| prices[].currency | string | The price's currency, a code from the currencies list of GET /api/v1/reference. |
| prices[].unit_price_minor | integer | The price without VAT, a whole number in the currency's smallest unit: bani for lei, cents for euro, whole yen for yen. 150.00 lei is 15000. |
| prices[].unit_gross_minor | integer | null | The price with VAT, in the same unit, only when the price was entered with VAT; otherwise null. |
| created_at | timestamp | When the product was created. |
| updated_at | timestamp | The product's last change, in the app or through the API. |
It answers 201 with the product. A name the firm already has answers 409 product_name_exists, with the existing product in params.product_id. Invalid data answers 422 product_invalid, with problems naming each problem; nothing is written.
The Idempotency-Key header is accepted: a repeat with the same value answers with the same product and does not make a second one. The product, its prices and this record are written together.
The digital service answer and the automatically added products are set in the app only; the call cannot set them.
Request
curl -X POST https://app.efacturaspv.ro/api/v1/products \
-H "Authorization: Bearer efspv_live_<key>" \
-H "Idempotency-Key: <a value of yours, for example a UUID>" \
-H "Content-Type: application/json" \
-d '<the body below>'
Request body
{
"name": "Consultanță",
"code": "CON-1",
"unit_code": "HUR",
"vat_rate": 21,
"prices": [
{
"currency": "RON",
"unit_price_minor": 15000
}
]
}
Example answer
{
"id": "5b1e9c52-3a47-4d0e-8f6a-2c7d90b4e113",
"name": "Consultanță",
"code": "CON-1",
"unit_code": "HUR",
"description": null,
"cpv_code": null,
"nc_code": null,
"vat_category": "S",
"vat_rate": "21.00",
"vat_treatment": "rate",
"vat_exemption_text": null,
"prices": [
{
"currency": "RON",
"unit_price_minor": 15000,
"unit_gross_minor": null
},
{
"currency": "EUR",
"unit_price_minor": 3000,
"unit_gross_minor": 3630
}
],
"created_at": "2026-11-21T09:12:40.000Z",
"updated_at": "2026-11-23T10:05:11.000Z"
}
Changing a product
POST /api/v1/products/{id}
Changes a product of the firm, with the same checks as the save in the “Product” window of the app. It needs the right to change products. A field left out keeps its value, so a new price alone changes only the price; the name, the unit, the rate, the digital service answer and the automatically added products stay as they were.
- Needs the right to change products
- The Idempotency-Key header is accepted.
Parameters
| Name | Type | Description |
| idrequired | string | The product's identifier, in the path. |
| name | string | The product name. Required when creating; when changing, leaving it out keeps the current name. |
| code | string | The product code. null or an empty text clears it. |
| unit_code | string | The unit of measure, from the units list. Default H87. |
| description, cpv_code, nc_code | string | The product's optional fields. null or an empty text clears them. |
| vat_rate | number | The VAT rate: 21 or 11, or one of the older rates (19, 9, 5). Required when creating for a VAT payer, unless you send vat_treatment. |
| vat_treatment, vat_exemption_text | string | The VAT choice (a key from vat_treatments with product_use true) and, for exempt_other, the reason. The choice sets the category and the rate by itself. |
| prices | array | The list of prices, one per currency, each { "currency", "unit_price_minor", "unit_gross_minor" (optional) }. Required when creating; when changing, if you send it, it replaces the whole list: a currency missing from it is removed. |
Fields of the answer
| Name | Type | Description |
| id | string | The product's identifier. |
| name | string | The name, at most 500 characters. The firm cannot have two products with the same name, in any letter case. |
| code | string | null | The product's code, at most 64 characters. It goes onto the invoice line as the item's code. |
| unit_code | string | The unit of measure, a code from the units list of GET /api/v1/reference. Default H87 (piece). |
| description | string | null | The text that appears under the product's name on the invoice line, at most 200 characters. |
| cpv_code | string | null | The product's CPV code, from the European list. |
| nc_code | string | null | The Combined Nomenclature code: 4, 6 or 8 digits. |
| vat_category | string | The VAT category: S for a rate, E for an exemption, O for the farmers' regime. The app sets it from the VAT choice. |
| vat_rate | string | The VAT rate, decimal text (21.00). A firm that does not pay VAT always has 0.00, whatever is sent. |
| vat_treatment | string | The VAT choice, a key from vat_treatments of GET /api/v1/reference. rate means an ordinary rate. |
| vat_exemption_text | string | null | The reason you typed, only for the choice exempt_other (at most 100 characters). |
| prices[].currency | string | The price's currency, a code from the currencies list of GET /api/v1/reference. |
| prices[].unit_price_minor | integer | The price without VAT, a whole number in the currency's smallest unit: bani for lei, cents for euro, whole yen for yen. 150.00 lei is 15000. |
| prices[].unit_gross_minor | integer | null | The price with VAT, in the same unit, only when the price was entered with VAT; otherwise null. |
| created_at | timestamp | When the product was created. |
| updated_at | timestamp | The product's last change, in the app or through the API. |
It answers 200 with the product. An unknown identifier, or one of another firm, answers 404 product_not_found; a name another product has, 409 product_name_exists, with that product in params.product_id; invalid data, 422 product_invalid.
A product is not deleted through the API. The Idempotency-Key header is accepted, as when adding.
Request
curl -X POST https://app.efacturaspv.ro/api/v1/products/<id> \
-H "Authorization: Bearer efspv_live_<key>" \
-H "Idempotency-Key: <a value of yours, for example a UUID>" \
-H "Content-Type: application/json" \
-d '<the body below>'
Request body
{
"prices": [
{
"currency": "RON",
"unit_price_minor": 18000
}
]
}
Example answer
{
"id": "5b1e9c52-3a47-4d0e-8f6a-2c7d90b4e113",
"name": "Consultanță",
"code": "CON-1",
"unit_code": "HUR",
"description": null,
"cpv_code": null,
"nc_code": null,
"vat_category": "S",
"vat_rate": "21.00",
"vat_treatment": "rate",
"vat_exemption_text": null,
"prices": [
{
"currency": "RON",
"unit_price_minor": 18000,
"unit_gross_minor": null
}
],
"created_at": "2026-11-21T09:12:40.000Z",
"updated_at": "2026-11-23T10:05:11.000Z"
}
The base lists
GET /api/v1/reference
All the lists a draft or a product can name, in one request: the countries, the currencies, the document languages, the units of measure, the VAT rates and the VAT choices of the firm, the active series and the active bank accounts. A program reads it before it makes a draft or a product and builds both from values of the answer only. Any key reads; no right is needed.
Fields of the answer
| Name | Type | Description |
| countries[].code | string | The country code, two letters (RO). |
| countries[].name_ro | string | The country name in Romanian. |
| countries[].name_en | string | The country name in English. |
| countries[].eu | boolean | true for a country of the European Union. |
| currencies[].code | string | The currency code: RON and the currencies BNR publishes, the ones a document can be issued in. |
| currencies[].name_ro | string | The currency name in Romanian. |
| currencies[].name_en | string | The currency name in English. |
| currencies[].minor_digits | integer | How many decimals the smallest unit has: 2 for lei and euro, 0 for yen, 3 for the Bahraini dinar. A price in unit_price_minor is divided by 10 to this power. |
| languages[].code | string | The code of a language a document can be printed in. |
| languages[].name_ro | string | The language name in Romanian. |
| languages[].name_en | string | The language name in English. |
| units[].code | string | The unit-of-measure code (H87 for piece): the only values accepted for unit_code on a product or a draft line. |
| units[].name_ro | string | The unit name in Romanian, as the app writes it. |
| units[].name_en | string | The unit name in English. |
| vat_rates[].rate | string | A VAT rate a line can carry. A firm that does not pay VAT has only 0. |
| vat_rates[].current | boolean | true for the rates in force (21 and 11), false for the older ones, kept for documents of the past. |
| vat_treatments[].key | string | The VAT choice, as a draft line or a product names it. |
| vat_treatments[].category | string | The VAT category of the choice: S, E, AE, O, K or G. |
| vat_treatments[].rate | string | null | The choice's rate: 0 for any choice without VAT, null for an ordinary rate, which is picked separately. |
| vat_treatments[].name_ro | string | The choice name in Romanian, as the app writes it. |
| vat_treatments[].name_en | string | The choice name in English. |
| vat_treatments[].product_use | boolean | true if the choice can be saved on a product. A few (reverse charge, for example) depend on the client and are picked on a document line only. |
| series[].id | string | The identifier of the series, as seriesId on a draft. |
| series[].code | string | The series code, for example FCT. |
| series[].doc_type | string | What the series numbers: invoice, proforma, receipt and so on. |
| series[].label | string | null | The label the firm gave the series, for people only. |
| series[].is_default | boolean | true for the series picked by default. |
| series[].next_number | string | The number the next document of the series gets, as written (FCT-2026-000043). |
| bank_accounts[].id | string | The account's identifier. |
| bank_accounts[].iban | string | The account's IBAN. |
| bank_accounts[].currency | string | The account's currency. |
| bank_accounts[].bank_name | string | null | The bank's name. |
| bank_accounts[].swift_bic | string | null | The SWIFT/BIC code, if the firm entered it. |
| bank_accounts[].is_default | boolean | true for the default account; it comes first. |
The series and the accounts are only the active ones of the key's firm. The VAT rates and choices are those the firm can use by its own facts (VAT payer or not, the special regimes ticked). Exchange rates are not in the answer.
A list that cannot be read is never answered shorter: the whole request fails with 500 internal_error and you repeat it.
Request
curl https://app.efacturaspv.ro/api/v1/reference \
-H "Authorization: Bearer efspv_live_<key>"
Example answer
{
"countries": [
{
"code": "RO",
"name_ro": "România",
"name_en": "Romania",
"eu": true
}
],
"currencies": [
{
"code": "RON",
"name_ro": "Leu românesc",
"name_en": "Romanian leu",
"minor_digits": 2
},
{
"code": "EUR",
"name_ro": "Euro",
"name_en": "Euro",
"minor_digits": 2
}
],
"languages": [
{
"code": "ro",
"name_ro": "Română",
"name_en": "Romanian"
},
{
"code": "en",
"name_ro": "Engleză",
"name_en": "English"
}
],
"units": [
{
"code": "H87",
"name_ro": "buc.",
"name_en": "pc."
}
],
"vat_rates": [
{
"rate": "21",
"current": true
},
{
"rate": "11",
"current": true
},
{
"rate": "19",
"current": false
}
],
"vat_treatments": [
{
"key": "rate",
"category": "S",
"rate": null,
"name_ro": "Cu TVA, la cota aleasă",
"name_en": "With VAT, at the chosen rate",
"product_use": true
}
],
"series": [
{
"id": "2d8a6f10-5b3c-4e77-91a4-0c6e3f7b8d52",
"code": "FCT",
"doc_type": "invoice",
"label": null,
"is_default": true,
"next_number": "FCT-2026-000043"
}
],
"bank_accounts": [
{
"id": "9e4c1a73-6d20-4b58-a1f3-7b2d5c8e0f64",
"iban": "RO49AAAA1B31007593840000",
"currency": "RON",
"bank_name": "Banca Exemplu",
"swift_bic": null,
"is_default": true
}
]
}
Who owes money
GET /api/v1/receivables
The documents the clients still owe, those of “Collections → Outstanding”: invoices issued in the app, invoices issued in another program and opening balances, in the order of their due date. Each row shows what is left to pay, and totals gives the sum per currency for the whole firm. A program does not add pages of invoices up itself: it would get it wrong. Any key reads; no right is needed.
Parameters
| Name | Type | Description |
| page | integer | The page asked for, from 1. Default 1. A value that is not a number from 1 up is not refused: 1 is used. |
| per_page | integer | Rows per page, from 1 to 100. Default 25. A value outside the range is not refused: an allowed value is used. |
Fields of the answer
| Name | Type | Description |
| invoice_id | string | The document identifier. For source app it is that of an invoice of GET /api/v1/invoices; for other_program, that of the invoice issued in another program. |
| number | string | null | The document number. An opening balance with no number carries the name Opening balance. |
| source | string | app for an invoice issued in the app, other_program for one issued in another program or an opening balance. |
| issue_date | date | null | The issue date. |
| due_date | date | null | The due date. |
| currency | string | The document's currency. |
| buyer | object | null | The buyer: name, cui, vat_number, country. A private person's personal number is never returned. |
| client_id | string | null | The saved client, if the document has one. |
| gross_bani | integer | The document's total with VAT, in bani (or in the currency's smallest unit). |
| owed_bani | integer | What the client owes after credit notes, before payments: gross_bani minus credited_bani. |
| credited_bani | integer | How much the credit notes cancelled. |
| paid_bani | integer | How much was collected, refunds taken off. |
| open_bani | integer | What is left to collect: the same number as on the “Outstanding” page. A document collected in full is not listed. |
| totals[].currency | string | The total's currency. |
| totals[].open_bani | integer | The sum left to collect in this currency, over the whole firm and not the page: the figure of “To collect”. |
| totals[].count | integer | How many documents owed are in this currency. |
The answer has the shape { "data": [...], "pagination": { "page", "per_page", "total" }, "totals": [...] }. Invoices issued in another program are counted as owed the way the “Outstanding” page counts them.
Amounts are whole numbers in the currency's smallest unit, not decimal text.
Request
curl https://app.efacturaspv.ro/api/v1/receivables \
-H "Authorization: Bearer efspv_live_<key>"
Example answer
{
"data": [
{
"invoice_id": "7c0f5a26-1d3e-4a61-9a58-4f2f2f3a9c11",
"number": "FCT-2026-000042",
"source": "app",
"issue_date": "2026-11-03",
"due_date": "2026-11-17",
"currency": "RON",
"buyer": {
"name": "Client Exemplu S.R.L.",
"cui": "12345678",
"vat_number": "RO12345678",
"country": "RO"
},
"client_id": "a41b0c6e-7d2f-4e93-8b15-6c9f0d3e1a22",
"gross_bani": 121000,
"owed_bani": 121000,
"credited_bani": 0,
"paid_bani": 50000,
"open_bani": 71000
}
],
"pagination": {
"page": 1,
"per_page": 25,
"total": 1
},
"totals": [
{
"currency": "RON",
"open_bani": 71000,
"count": 1
}
]
}