---
title: "CancelOrRefund request"
url: "https://docs.adyen.com/development-resources/batch-processing/advanced-sftp-batch-files/batch-request-file/modification-request-file/cancelorrefund-request"
source_url: "https://docs.adyen.com/development-resources/batch-processing/advanced-sftp-batch-files/batch-request-file/modification-request-file/cancelorrefund-request.md"
canonical: "https://docs.adyen.com/development-resources/batch-processing/advanced-sftp-batch-files/batch-request-file/modification-request-file/cancelorrefund-request"
last_modified: "2019-04-30T16:06:00+02:00"
language: "en"
---

# CancelOrRefund request

[View source](/development-resources/batch-processing/advanced-sftp-batch-files/batch-request-file/modification-request-file/cancelorrefund-request.md)

## 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](/online-payments/modify-payments) requests.
* You cannot submit partial cancellation modifications.

| Field # | Format                        | Required                                                                                    | Description                                                                                                                       |
| ------- | ----------------------------- | ------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------- |
| 1       | Fixed value: `SL`             | ![-white\_check\_mark-](/user/data/smileys/emoji/white_check_mark.png "-white_check_mark-") | Record type identifier                                                                                                            |
| 2       | Numeric                       | ![-white\_check\_mark-](/user/data/smileys/emoji/white_check_mark.png "-white_check_mark-") | `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-](/user/data/smileys/emoji/white_check_mark.png "-white_check_mark-") | Transaction type. Defines the required field types for the specific sub-line.                                                     |
| 4       | Alphanumeric                  | ![-white\_check\_mark-](/user/data/smileys/emoji/white_check_mark.png "-white_check_mark-") | The original payment PSP reference.                                                                                               |

```text
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
```
