Search docs

Are you looking for test card numbers?

Would you like to contact support?

Start searching Adyen's documentation...

  Documentation

CancelOrRefund request

Mandatory sub-lines

The CancelOrRefund sub-line described below is mandatory when submitting a cancellation request.

CancelOrRefund

  • This sub-line holds information about Payment modifications requests.
  • You cannot submit partial cancellation modifications.
Field # Format Required Description
1 Fixed value: SL -white_check_mark- Record type identifier
2 Numeric -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- Transaction type.
Defines the required field types for the specific sub-line.
4 Alphanumeric -white_check_mark- The original payment PSP reference.
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