---
search:
  tags:
    - Collections
    - POST
seo:
  description: >-
    Withdraws a payment request that is still open. It ends failed with…
    Reference for the POST /v1/collections/{reference}/cancel endpoint in the
    iSmartPay API.
sidebar:
  label: Cancel a payment request
  badge: POST
title: Cancel a payment request
type: openapi-operation
---
Withdraws a payment request that is still open. It ends `failed` with `failureReason` `cancelled`, and cancelling it again returns the same collection. A request that has already settled, been declined or expired is refused with `409 request_not_open`, and a collection on any other provider with `409 not_a_payment_request`. A reference that is not yours is `404`. Send a required `Idempotency-Key` header. Requires the `collections.write` permission.

`POST /v1/collections/{reference}/cancel`
