Refund

This service can be used to refund transactions which are previously captured

Refunds can be executed on all captured transactions.

File format

File type

File name syntax

File name example

Request file

refundDDMMYY_NN.txt

refund311213_01.txt

Request run file

refundDDMMYY_NN.run

refund311213_01.run

Response file

response_refundDDMMYY_NN.txt

response_refund311213_01.txt

Response run file

response_refundDDMMYY_NN.run

response_refund311213_01.run

The .txt file is in the csv file format.

Content fields

Header

Type

Mandatory

transact

Integer

Yes

orderid

String

Yes

amount

Integer

Yes

currency

Integer

Yes

test

String (“true” or ”false”)

No

Please note that the optional parameters are only available if the DIBS Header is used (see below).

A simple example of file content:

123456789,”myOrderId1”,100,208
123456790,”myOrderId2”,200,978
 

An advanced example of the file content:

  
CsvHeader: true
NumberOfCsvRecords: 2
ReturnReason: true
ReturnActionCode: true

“transact”,”orderid”,”amount”,”currency”,”test”
123456789,”myOrderId1”,100,208,”true”
123456790,”myOrderId2”,200,978,”true”
 
Response:
  
CsvHeader: true
NumberOfCsvRecords: 2
 
"transact","resultcode","orderid","actioncode","reason"
1119139223,0,myOrderId1,,
1119138877,0,myOrderId2,,
 

Header fields

The CSV header contains general information of the CSV table and information about which return information that is desired. Aside from below fields, the standard header fields are also available.

The following return information is available for captures:

CSV header Description

ReturnReason: true

If this header is set, then the response parameters will include the "reason".

ReturnActionCode: true

If this header is set, then the response parameters will include "actioncode".

 

Do you have question or need help?
Follow us
DIBS Payment Services
Stockholm +46 (0)8-527 525 00
Göteborg +46 031-600 800
København +45 7020 3077
Oslo +47 21 55 44 00