---
title: "Restaurare proforma anulata"
method: PUT
path: "/estimate/restore"
tags: ["Proforme"]
---

# Restaurare proforma anulata

`PUT /estimate/restore`

Restaureaza o proforma anulata anterior. Parametrii se trimit in URL (query string).

**Ai primit o eroare la restaurare?**

**Erorile de autentificare si autorizare sunt comune tuturor endpoint-urilor V1.** Pentru email/token, `cif`, drepturi pe firma sau pe serie, vezi [Erori API V1](#api-1/description/erori-api-v1). Mai jos gasesti doar erorile specifice restaurarii.

<details>
<summary><strong>Erori la restaurarea proformei</strong></summary>

<table>
  <thead>
    <tr>
      <th>Situatie</th>
      <th>Eroare</th>
      <th>Sugestie</th>
    </tr>
  </thead>
  <tbody>
    <tr>
      <td><code>number</code> lipseste din URL</td>
      <td><code>Numarul proformei trebuie specificat in url in parametrul 'number'!</code></td>
      <td>Adauga `number` in query string cu numarul proformei de restaurat, de exemplu `number=0223`.</td>
    </tr>
    <tr>
      <td><code>seriesname</code> lipseste din URL</td>
      <td><code>Seria proformei trebuie specificata in url in parametrul 'seriesname'!</code></td>
      <td>Adauga `seriesname` in query string cu seria proformei, de exemplu `seriesname=pro`.</td>
    </tr>
    <tr>
      <td>Proforma de restaurat nu exista</td>
      <td><code>Proforma cu seria si numarul pro99999999 nu a fost gasita!</code></td>
      <td>Verifica `seriesname` si `number`. Combinatia serie plus numar trebuie sa existe in cont.</td>
    </tr>
  </tbody>
</table>

</details>

## Query parameters

- `cif` string, required
- `seriesname` string, required
- `number` string, required

## Response `200`

Proforma restaurata cu succes. Daca proforma nu era anulata, raspunsul e tot `200` cu un mesaj informativ (restaurarea e idempotenta).

- SuccessResponse
  - `errorText` string
  - `message` string

## Other responses

- `400` — Parametru lipsa in URL sau document negasit
- `401` — Autentificare esuata

---

[API](https://skmtc.dev/smartbill/apis/smartbill-api.md) · [All operations](https://skmtc.dev/smartbill/apis/smartbill-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/smartbill/smartbill-api/revisions/29940a27d41c/schema)
