---
title: "Changes to POST /payments/{payment_id}/cancel"
method: POST
path: "/payments/{payment_id}/cancel"
---

# Changes to POST /payments/{payment_id}/cancel

`POST /payments/{payment_id}/cancel`

> Every recorded change to this endpoint, newest first.

## Timeline

Changed in 1 of 5 revisions.

- **2026-02-14** `fe24d3dfadad` — 26 breaking, 3 warning, 111 info

## Changes

- **2026-02-14** `fe24d3dfadad` — 26 breaking, 3 warning, 111 info
  - the `deal/allOf[#/components/schemas/PaymentDealInfo]/id` response property's maxLength was unset from `50` for the response status `200`
  - the `description/allOf[#/components/schemas/Description]/` response property's maxLength was unset from `128` for the response status `200`
  - the `id` response property's maxLength was unset from `36` for the response status `200`
  - the `merchant_customer_id/allOf[#/components/schemas/MerchantCustomerId]/` response property's maxLength was unset from `200` for the response status `200`
  - the `transfers/items/description` response property's maxLength was unset from `128` for the response status `200`
  - the `deal/allOf[#/components/schemas/PaymentDealInfo]/id` response property's minLength was decreased from `36` to `0` for the response status `200`
  - the `id` response property's minLength was decreased from `36` to `0` for the response status `200`
  - the `amount/allOf[#/components/schemas/MonetaryAmount]/currency` response's property type/format changed from `string`/`` to ``/`` for status `200`
  - the `authorization_details` response's property type/format changed from `object`/`` to ``/`` for status `200`
  - the `cancellation_details` response's property type/format changed from `object`/`` to ``/`` for status `200`
  - the `deal/allOf[#/components/schemas/PaymentDealInfo]/id` response's property type/format changed from `string`/`` to ``/`` for status `200`
  - the `deal/allOf[#/components/schemas/PaymentDealInfo]/settlements/items/` response's property type/format changed from ``/`` to `object`/`` for status `200`
  - the `id` response's property type/format changed from `string`/`` to ``/`` for status `200`
  - the `income_amount/allOf[#/components/schemas/MonetaryAmount]/currency` response's property type/format changed from `string`/`` to ``/`` for status `200`
  - the `invoice_details` response's property type/format changed from `object`/`` to `string`/`` for status `200`
  - the `recipient` response's property type/format changed from `object`/`` to ``/`` for status `200`
  - the `refunded_amount/allOf[#/components/schemas/MonetaryAmount]/currency` response's property type/format changed from `string`/`` to ``/`` for status `200`
  - the `status` response's property type/format changed from `string`/`` to ``/`` for status `200`
  - the `transfers/items/amount/allOf[#/components/schemas/MonetaryAmount]/currency` response's property type/format changed from `string`/`` to ``/`` for status `200`
  - the `transfers/items/platform_fee_amount/allOf[#/components/schemas/MonetaryAmount]/currency` response's property type/format changed from `string`/`` to ``/`` for status `200`
  - the `transfers/items/status` response's property type/format changed from `string`/`` to ``/`` for status `200`
  - removed the required property `authorization_details/three_d_secure` from the response with the `200` status
  - removed the required property `cancellation_details/party` from the response with the `200` status
  - removed the required property `cancellation_details/reason` from the response with the `200` status
  - removed the required property `recipient/account_id` from the response with the `200` status
  - removed the required property `recipient/gateway_id` from the response with the `200` status
  - removed the optional property `authorization_details/auth_code` from the response with the `200` status
  - removed the optional property `authorization_details/rrn` from the response with the `200` status
  - removed the optional property `invoice_details/id` from the response with the `200` status
  - api operation id `Payments_cancel` was added
  - for the `path` request parameter `payment_id`, the minLength was decreased from `36` to `0`
  - removed the pattern `[0-9a-zA-Z+-_.]{1,64}` from the `header` request parameter `Idempotence-Key`
  - removed `subschema #2` from the response body `allOf` list for the response status `400`
  - removed `subschema #2` from the response body `allOf` list for the response status `401`
  - removed `subschema #2` from the response body `allOf` list for the response status `403`
  - removed `subschema #2` from the response body `allOf` list for the response status `500`
  - added `#/components/schemas/AuthorizationDetails` to the `authorization_details` response property `allOf` list for the response status `200`
  - added `#/components/schemas/CurrencyCode` to the `amount/allOf[#/components/schemas/MonetaryAmount]/currency` response property `allOf` list for the response status `200`
  - added `#/components/schemas/CurrencyCode` to the `income_amount/allOf[#/components/schemas/MonetaryAmount]/currency` response property `allOf` list for the response status `200`
  - added `#/components/schemas/CurrencyCode` to the `refunded_amount/allOf[#/components/schemas/MonetaryAmount]/currency` response property `allOf` list for the response status `200`
  - …100 more

---

[Operation](https://skmtc.dev/hexlet/apis/api-kassa/docs/payments/:payment_id/cancel/post.md) · [API](https://skmtc.dev/hexlet/apis/api-kassa.md) · [Page](https://skmtc.dev/hexlet/apis/api-kassa/changes/payments/:payment_id/cancel/post)
