> ## Documentation Index
> Fetch the complete documentation index at: https://adyen-preview.mintlify.site/llms.txt
> Use this file to discover all available pages before exploring further.

# CancelOrRefund Request

> The [ CancelOrRefund ]( cancelorrefund)sub line described below is mandatory when submitting a cancellation request.

## Mandatory sub-lines

The [`CancelOrRefund` ](#cancelorrefund)sub-line described below is mandatory when submitting a cancellation request.

### CancelOrRefund

* This sub-line holds information about [Payment modifications](https://docs.adyen.com/online-payments/modify-payments) requests.
* You cannot submit partial cancellation modifications.

| Field # | Format | Required | Description |
| - | - | - | - |
| 1 | Fixed value: `SL` | ![-white\_check\_mark-](https://docs.adyen.com/user/data/smileys/emoji/white_check_mark.png) | Record type identifier |
| 2 | Numeric | ![-white\_check\_mark-](https://docs.adyen.com/user/data/smileys/emoji/white_check_mark.png) | `SL` sub-line record number reference within its parent line.The counter starts at 1, and it increments sequentially by one unit. |
| 3 | Fixed value: `CancelOrRefund` | ![-white\_check\_mark-](https://docs.adyen.com/user/data/smileys/emoji/white_check_mark.png) | Transaction type. Defines the required field types for the specific sub-line. |
| 4 | Alphanumeric | ![-white\_check\_mark-](https://docs.adyen.com/user/data/smileys/emoji/white_check_mark.png) | The original payment PSP reference. |

```text theme={null}
FH,1.0,TEST,Company,TestCompany,Default,3,ws@Company.TestCompany,Modification,FileHeaderEchoData 
BH,1,BlockHeaderEchoData 
L,1,MerchantAccount,TestMerchant,CancelOrRefund,Test Product 3,EchoData 
SL,1,CancelOrRefund,8452147851579029
BT,1
FT,1
```


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.