Get transaction list

Du er her:
Anslået læsetid: 2 min

You might wish to get a list of transactions within a certain interval and state. We have our function ‘transaction_list’ for this purpose. Look at the code example here

TIP You can open the file with notepad, if you do not have an editor for viewing source code.

When you run the code by uploading it to your server and navigating to it, you’re presented with the following form:


For a table explaining how to fill in each input field, look below:

The request parameters are written in italic

Name Description
Merchant token (token) You can get this token by logging into our admin portal at and look under integration settings.
List type (listtype) This defines which type of payment are shown in the list. 0 = new payments, 1 = captured payments, 2 = deleted payments, 3 = refunded payments.
Time from (time_from) Optional: Unix timestamp of the moment the list should begin from.
Time until (time_until) Optional: Unix timestamp of the moment the list should end.
Limit (litmit) Optional: How many transactions you want to list at a time within your set interval. Useful if you have alot of transactions in the time interval set above.
From (from) Optional: Within your interval defines

from which element first transaction should be shown.
If you have 100 payments in your interval and limit is ’10’ and from is ’20’, you would see from 20th payment to 30th payment.

When you submit, you will get a list in JSON of the payments belonging to the defined list type. The information in the JSON response includes the following:

Name Description
testtrans Will be ‘1’ if the payment is a test ‘0’ otherwise.
cardtype The cardtype that was used to process the payment with e.g. VISA, MasterCard etc.
currency The ISO-4217 code for the currency used in the transaction.
resttimestamp Unix timestamp of the moment of the transaction.
req_capture ‘1’ if the transaction have been captured, ‘0’ otherwise.
req_capture_time Unix timestamp of the moment the payment was captured
PaymentID The id used to identify the payment.
TransID The id used to retrive information about the payment.
orderID The order id set when the payment was made.
amount The total amount of the payment.
dateid This is the unique identifier for the date. This is needed for our function ‘transactions_outgoing_specified’.
trans_fee Deprecated.
cardholder The name of the owner of the credit card.
ccrg This is an id we use to retrive a customers saved card data.
attached_ccrg If you processed the payment with a existing ccrg and have not set ccrg = 1 when you processed it, then the ccrg you used for processing will be here.