---
title: "$viva->orders->cancel()"
method: DELETE
path: "/Orders/cancel"
tags: ["Orders"]
---

# $viva->orders->cancel()

`DELETE /Orders/cancel`

## Request

- The document declares no server URL.
- Auth: none declared
- TypeScript: <https://skmtc.dev/qrcommunication/apis/viva-wallet-merchant-sdk-re-fe-rence-php/docs/Orders/cancel/delete.ts> (a function with typed inputs; its response is checked against the schema)

Annule un ordre de paiement non payé.

```php
$result = $viva->orders->cancel(orderCode: 1234567890);
```

## Query parameters

- `orderCode` integer, required

## Response `200`

Ordre annulé

- object

## Other responses

- `400`: `ApiException` — Ordre déjà payé ou introuvable

## Changes

- **2026-03-18** `b25ecb15a272`: 1 info
  - endpoint added

[Operation history](https://skmtc.dev/qrcommunication/apis/viva-wallet-merchant-sdk-re-fe-rence-php/changes/Orders/cancel/delete.md)

---

[API](https://skmtc.dev/qrcommunication/apis/viva-wallet-merchant-sdk-re-fe-rence-php.md) - [All operations](https://skmtc.dev/qrcommunication/apis/viva-wallet-merchant-sdk-re-fe-rence-php/llms.txt) - [OpenAPI document](https://skmtc.dev/qrcommunication/apis/viva-wallet-merchant-sdk-re-fe-rence-php/revisions/bcafd06ce584?raw)
