---
title: "Cancel a QR Payment request"
method: PUT
path: "/billing/invoices/{invoiceId}/cancel"
---

# Cancel a QR Payment request

`PUT /billing/invoices/{invoiceId}/cancel`

## Request

- Base URL: `https://api-sandbox.ezypay.com/v2`
- URL: `https://api-sandbox.ezypay.com/v2/billing/invoices/{invoiceId}/cancel`
- Auth: OAuth 2
  - Client credentials
  - Token URL: `https://identity-sandbox.ezypay.com/token`

## Path parameters

- `invoiceId` string, required

## Headers

- `merchant` string, required

## Request body

- unknown

## Response `200`

200

- object
  - `id` string
  - `creditNoteId` string
  - `documentNumber` string
  - `date` string
  - `dueDate` string
  - `scheduledPaymentDate` string
  - `status` string
  - `memo` string
  - `items` object[]
    - `description` string
    - `amount` object
      - `currency` string
      - `value` number
      - `type` unknown
    - `tax` object
      - `rate` number
    - `id` string
    - `type` string
    - `discounted` object
      - `currency` string
      - `value` integer
      - `type` unknown
    - `accountingCode` string
    - `reference` string
  - `amount` object
    - `currency` string
    - `value` number
    - `type` string
  - `amountWithoutDiscount` object
    - `currency` string
    - `value` number
    - `type` string
  - `totalDiscounted` object
    - `currency` string
    - `value` integer
    - `type` string
  - `totalRefunded` object
    - `currency` string
    - `value` integer
    - `type` string
  - `totalTax` object
    - `currency` string
    - `value` number
    - `type` string
  - `customerId` string
  - `subscriptionId` string
  - `checkoutId` string
  - `subscriptionName` string
  - `paymentMethodToken` string
  - `paymentMethodData` string
  - `autoPayment` boolean
  - `processingModel` string
  - `transactionSource` string
  - `createdOn` string
  - `paynowUrl` string
  - `channel` string
  - `checkoutResult` string
  - `customerFirstName` string
  - `customerLastName` string
  - `invoiceCategory` string
  - `invoiceSubCategory` string
  - `qrData` object
    - `qrString` string
    - `expires` string

## Other responses

- `400`: 400

## Changes

- **2026-11-03** `924be4030f56`: 1 info
  - endpoint added

[Operation history](https://skmtc.dev/ezypay/apis/vault/changes/billing/invoices/:invoiceId/cancel/put.md)

---

[API](https://skmtc.dev/ezypay/apis/vault.md) - [All operations](https://skmtc.dev/ezypay/apis/vault/llms.txt) - [OpenAPI document](https://skmtc.dev/ezypay/apis/vault/revisions/924be4030f56?raw)
