Get outgoing transactions

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

If you want a list of your transactions for settlement over a specific period, or look up which payments that are included in a settlement, that is easy with our API.

Outgoing transactions overview

If you wish to get a list of your outgoing transactions for settlement in a timespan we have the function ‘transactions_outgoing_overview’ for this purpose. You can find a 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 file by uploading it to your server and navigating to it, you’re presented with the following input form:

transaction_outgoing_overview_form.PNG

Look at the following table for an explanation what to enter in the input fields.

The request parameters are written in italic

Name Description
Token (token) The merchant token can be found under Integration settings in our admin portal.
Date start (date_start) Unix timestamp of the date you wish the list to start from.
Date end (date_end) Unix timestamp of the date you wish the list to end at.

If all the fields are filled in so should get a JSON response with a array of objects with the following information:

Name Description
dateid This is the unique identifier for the date. This is needed for our function ‘transactions_outgoing_specified’.
accountid The id number for your account
captured_amount The total amount captured in the subunit of your currency.
captured_fee The fee in the subunit of your currency that will be deducted from the captured amount.
released_amount The final amount in the subunit of your currency to be released for the merchant.
refund_amount The amount refunded on the paymentin the subunit of your currency.
manual_adjustments If additional costs have to be deducted from the captured amount. This is ‘0’ by default.
daily_percentage The percentage we take of the captured amount for the fee. This is set by your terms with Yourpay. Divide this by 100 to get the percentage.
daily_settlement_period Your settlement days set by your terms with Yourpay.
date_start Unix timestamp of the moment the payment was captured for settlement.
date_expected_release Unix timestamp of the expected moment you should receive the money from Yourpay.
conversionrate The conversion rate from settlement currency to local currency.
currency The ISO-4217 code of the currency you will receive the money in.

Outgoing transactions specified

If you wish to see which payments are associated with a specific settlement, we have a function called ‘transactions_outgoing_specified’ for this purpose.

You can find a 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 file by uploading it to your server and navigating to it, you’re presented with the following input form:

transaction_outgoing_specified_form.PNG

Look at the following table for an explanation what to enter in the input fields.

The request parameters are written in italic

Name Description
Token (token) The merchant token can be found under Integration settings in our admin portal.
Date id (dateid) The unique identifier for the date, from ‘transaction_outgoing_overview’.

When you submit, you should get a JSON response with the following information:

Name Description
ActionID Unique identifier
pay_method The method used to process the payment.
PaymentID The id for the payment associated with the settlement.
req_timestamp The resgistered timestamp for the users action to capture the payment.
dateid The dateid associated with the settlement.
amount The amount in the subunit of your currency captured in the transaction.
captured ‘1’ if the payment is captured, ‘0’ otherwise.
handlingtype Defined as ‘capture’, ‘chargeback’ or ‘refund’
orderID The order id for the payment.