---
title: "Anulare proforma"
method: PUT
path: "/estimate/cancel"
tags: ["Proforme"]
---

# Anulare proforma

`PUT /estimate/cancel`

Anuleaza o proforma existenta. Proforma anulata poate fi restaurata ulterior. Parametrii se trimit in URL (query string).

**Ai primit o eroare la anulare?**

**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 anularii.

<details>
<summary><strong>Erori la anularea 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 anulat, de exemplu `number=0222`.</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 anulat 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>
    <tr>
      <td>Proforma este deja anulata</td>
      <td><code>Proforma pro0222 este deja anulata.</code></td>
      <td>Nu este o eroare: raspunsul are `errorText` gol si proforma ramane anulata.</td>
    </tr>
  </tbody>
</table>

</details>

## Query parameters

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

## Response `200`

Proforma anulata cu succes. Daca proforma era deja anulata, raspunsul e tot `200` cu un mesaj informativ (anularea 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)
