# Anulare extensie QR activ (Hibrid)

**POST** `/v2/mia/qr/{qrId}/extension/cancel`

Permite anularea unei extensii active aferente unui QR Hibrid. Este utilă în cazul în care extensia nu mai este necesară (de exemplu, comanda a fost anulată sau modificată).

***

#### Parametri cerere (path)

| Nume | Tip           | Obligatoriu | Descriere                        |
| ---- | ------------- | ----------- | -------------------------------- |
| qrId | string (guid) | da          | Identificatorul unic al QR-ului. |

***

#### Parametri cerere (body)

| Nume   | Tip               | Obligatoriu | Descriere                                           |
| ------ | ----------------- | ----------- | --------------------------------------------------- |
| reason | string (max. 500) | nu          | Motivul pentru care se solicită anularea extensiei. |

#### Request example

```json
{
  "reason": "Clientul a renunțat la comandă."
}
```

***

#### Parametri răspuns

| Nume                | Tip           | Descriere                                |
| ------------------- | ------------- | ---------------------------------------- |
| result              | obiect        | Obiectul rezultat al răspunsului.        |
| result.extensionId  | string (guid) | Identificatorul extensiei anulate.       |
| ok                  | boolean       | `true` - fără erori, `false` - cu erori. |
| errors              | array         | Lista erorilor apărute la procesare.     |
| errors.errorCode    | string        | Codul erorii.                            |
| errors.errorMessage | string        | Descrierea erorii.                       |

***

#### Response example

```json
{
  "result": {
    "extensionId": "40e6ba44-7dff-48cc-91ec-386a38318c68"
  },
  "ok": true
}
```


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.maibmerchants.md/mia-qr-api/endpoint-uri/anulare-plata/anulare-extensie-qr-activ-hibrid.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
