XML reports
Here are schemas and example files for XML settlement reports.
Both the current settlement report schema v3.0 and the old v2.0 version are available.
Example files are available for:
Changes to the settlement report XML schema from v2.0 to v3.0โ
NB! New settlements will contain a mix of captures and refunds. To make the numbers unambiguous we have introduced new fields for capture and refund, but kept gross and net fields as before.
Schema changes from v2.0 to v3.0:
- Old schema URL for v2.0 was SettlementReport-2.0.xsd
- New schema URL is SettlementReport-3.0.xsd
- New schema validates all amount fields with new types
money
,positiveMoney
, andnegativeMoney
- Other changes organized by parent element below
Changes to PaymentsInfo:
ReportDateFrom
andReportDateTo
fields:- Drop time part, keep only date (in YYYY-MM-DD format)
- Change schema type from
xs:string
toxs:date
- Remove control sums (
TotalSettledGrossAmount
,TotalSettledNetAmount
,TotalSettledFeeAmount
, andTotalSettledRefundAmount
) - Move
NumOfSettlements
afterSettlementInfo
blocks to facilitate future streaming optimizations for large files
Changes to TransactionInfo:
- Rename
TransactionDate
toTransactionTime
and:- Change type from
xs:string
toxs:dateTime
- Fix time zone bug from previous report system where time UTC formatting was applied to Oslo time.
- Now always Oslo time zone, consistent with dates
- Change type from
- Change type of
TransactionID
fromxs:string
toxs:long
- Add field
TransactionCaptureAmount
(always positive) - Add field
TransactionRefundAmount
(always negative) - Note that
TransactionGrossAmount = TransactionCaptureAmount + TransactionRefundAmount
- Rename
Changes to
SettlementInfo
:- Rename
SettlementBatchDate
toSettlementDate
and:- Drop time part and change type from
xs:string
toxs:date
- For new settlements, this date is within the inclusive range
[ReportDateFrom, ReportDateTo]
and is equal to or later than the date of the last transaction within the settlement - Note that the bank transfer will typically occur at a later date
- Drop time part and change type from
- Change type of
SettlementID
fromxs:string
toxs:long
- Move
NumOfTransactions
and all amounts to belowTransactionInfo
fields, to facilitate future streaming optimizations for large files - Add field
SettlementType
(Net
orGross
) - Add field
SettledAmount
, which is the amount paid out or invoiced (net or gross depending on settlement type) - Add field
CaptureSettlementAmount
, sum ofTransactionCaptureAmount
fields - Add field
RefundSettlementAmount
, sum ofTransactionRefundAmount
fields - Note that
GrossSettlementAmount
is still the sum ofTransactionGrossAmount
fields - Note that
GrossSettlementAmount = CaptureSettlementAmount + RefundSettlementAmount
- Rename
Changes to
FeeInfo
:FeeInfo
will only be included for old reports with gross settlement type- Change type of
FeeDate
fromxs:string
toxs:date
- Change type of
FeeAccount
fromxs:long
toxs:string
Changes to
SettlementDetailsInfo
:- Change type of
MainAddressCity
fromxs:NCName
toxs:string
- Change type of
Changes to
VippsInfo
:- Change type of
WebSite
fromxs:NCName
toxs:anyURI
- Change type of
Country
fromxs:NCName
toxs:string
- Change type of