> For the complete documentation index, see [llms.txt](https://docs.maibmerchants.md/mia-qr-api/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.maibmerchants.md/mia-qr-api/en/endpoints/payment-cancellation/cancel-active-qr-extension-hybrid.md).

# Cancel Active QR Extension (Hybrid)

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

Allows the cancellation of an active extension linked to a Hybrid QR code. Useful when the extension is no longer needed (e.g., the order was canceled or modified).

***

#### Request parameters (path)

| Name | Type          | Required | Description                       |
| ---- | ------------- | -------- | --------------------------------- |
| qrId | string (guid) | Yes      | Unique identifier of the QR code. |

***

#### Request parameters (body)

| Name   | Type              | Required | Description                                       |
| ------ | ----------------- | -------- | ------------------------------------------------- |
| reason | string (max. 500) | No       | Reason for requesting the extension cancellation. |

#### Request example

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

***

#### Response parameters

| Name                | Type          | Description                                |
| ------------------- | ------------- | ------------------------------------------ |
| result              | obiect        | Response result object.                    |
| result.extensionId  | string (guid) | Identifier of the canceled extension.      |
| ok                  | boolean       | `true` - no errors, `false` - with errors. |
| errors              | array         | List of processing errors.                 |
| errors.errorCode    | string        | Error code.                                |
| errors.errorMessage | string        | Error description.                         |

***

#### Response example

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