---
title: "Cancel auto-collection on the next failure"
method: PUT
path: "/payment_requests/{id}:cancel-collection-on-failure"
tags: ["Payment requests"]
---

# Cancel auto-collection on the next failure

`PUT /payment_requests/{id}:cancel-collection-on-failure`

Marks this payment request so that, if its next auto-collection attempt fails, further collection retries are cancelled and the workflow transitions off auto-collect.

## Path parameters

- `id` string, uuid, required — The ID of the payment request

## Response `200`

The intent has been recorded on the payment request

## Other responses

- `404` — No payment request can be found
- `422` — The payment request is not in a state where the intent can be recorded

---

[API](https://skmtc.dev/adfin/apis/adfin-api.md) · [All operations](https://skmtc.dev/adfin/apis/adfin-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/adfin/adfin-api/revisions/15c1340dcb72/schema)
