Ticket capture

This service can be used to create new transactions using existing tickets and capture them in the same process

Description

Ticket capture can be used on all active tickets. We recommend no more than 30 000 ticket capture per file.

File names

File type

File name syntax

File name example

Request file

ticketDDMMYY_NN.txt

ticket311213_01.txt

Request run file

ticketDDMMYY_NN.run

ticket311213_01.run

Response file

response_ticketDDMMYY_NN.txt

response_ticket311213_01.txt

Response run file

response_ticketDDMMYY_NN.run

response_ticket311213_01.run

The .txt file is in the csv file format.

Content fields

Header

Type

Mandatory

ticket

Integer

Yes

orderid

String

Yes

amount

Integer

Yes

currency

Integer

Yes

ticketorderid

String

No

test

String (“true” or ”false”)

No

addfee

String (“true” or ”false”)

No

The ticketorderid is the order id of the original ticket.

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

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

In the simple response, the following fields will be returned:
ticket,status,transaction,orderid

Example:

123456789,0,987654321,myOrderId1
123456790,0,987654322,myOrderId2
 

A more advanced example may look like (there should be no whitespace on the first line. Even though it is shown in this example):

	
CsvHeader: true
NumberOfCsvRecords: 2
ReturnReason: true
ReturnActionCode: true
ReturnTotalAmount: true
ReturnFee: true
ReturnAcquirer: true
ReturnAuthorizationTime: true

“ticket”,”orderid”,”amount”,”currency”,”ticketorderid”,”test”,”addfee”
123456789,”myOrderId1”,100,208,”OriginalTicketOrderId”,”true”,”true”
123456790,”myOrderId2”,200,978,”OriginalTicketOrderId”,”true”,”false”
 

Response:

	
CsvHeader: true
NumberOfCsvRecords: 2
 
"ticket","resultcode","transact","orderid","acquirer","actioncode","authorizationtime","fee","reason","totalamount"
967492995,0,1119142534,myOrderId1,4,d00,2015-07-23T12:40:25,3,,103
967492995,0,1119142540,myOrderId2,4,d00,2015-07-23T12:40:25,6,,200
 

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".

ReturnTotalAmount: true

If this header is set, then the response parameters will include "totalamount", which includes the fee.

ReturnFee: true

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

ReturnAcquirer: true

If this header is set, then the response parameters will include "acquirer", which contains an ID for the acquirer.

ReturnAuthorizationTime: true

If this header is set, then the response parameters will include "authorizationtime", which contains the authorization time stamp as registered at Nets.

 

Do you have a question or need help?
Follow us
Nets Online Payments

Oslo: +47 21 55 44 00
Stockholm: +46 (0)8-527 525 00
København: +45 7020 3077
Jyväskylä: + 358 010 80 40 40
Close menu