Skip to main content

Settlement transactions

Retrieve the transactions included in a settlement.

Example​

GET /reports/settlements/{{settlementId}}/transactions?page=1&perPage=1&includeProductCode=false HTTP/1.1
Host: api.uat.walleydev.com // Test environment. Production uses a different hostname.
Authorization: Bearer bXlVc2VybmFtZTpmN2E1ODA4MGQzZTk0M2VmNWYyMTZlMDE...

Data Model​

Request​

Request path​

PathRequiredExplanation
settlementIdYesThe id for the requested settlement transactions

Request headers​

HeaderRequiredExplanation
AuthorizationYesSee Authentication for how to generate the Bearer token value
AcceptNoThe default response format is JSON. To return transactions in CSV format, set the Accept header to text/csv
CSV responses use the settlement file format

With Accept: text/csv, the response follows the same format as the example files on the Settlements page.

Request querystrings​

ParameterRequiredExplanation
pageNoPage of items that should be returned in request
perPageNoNumber of items to be returned in each request. Largest allowed value is 5000
includeProductCodeNoSpecify whether you want productCode values in the response. Defaults to false

Response​

Possible responses​

Http status codeDescription
200Successful request
401Token missing, expired, or invalid. See Authentication
403No permission for this store
404Transactions not found
409Request with same idempotency key already in progress
422Query with incorrect format

Response body from 200 OK​

response.data object is an array of the following structure:

{
"customerNumber": "",
"firstName": "Test",
"lastName": "Test",
"amount": 1000.0,
"purchaseDate": "2022-01-01",
"transactionDate": "2020-01-01",
"invoiceNumber": "11111111",
"orderNumber": "TEST_230116_011045",
"type": "Purchase",
"totalVatAmountPerRate": [
{
"vatRate": 25.0,
"amount": 180
},
{
"vatRate": 6.0,
"amount": 5.66
}
],
"currency": "SEK",
"settlementDate": null,
"payoutReference": null,
"actionReference": null,
"orderId": "4f35934d-dcf7-4929-b1ec-179155a6db58",
"productCode": "DI001"
}
PropertyExplanationComment
customerNumberCustom value that can be provided at purchase
firstNameThe customer's first name for B2C, the company name for B2B
lastNameThe customer's last name for B2C, empty for B2B
amountTransaction amount
purchaseDateThe date when the purchase was captured
transactionDateCustom date value provided at purchaseIn SOAP OrderDate
invoiceNumberThe purchase invoice number
orderNumberCustom value that can be provided at purchaseIn checkout reference
typeSettlement types
totalVatAmountPerRateThe amount of VAT paid for each VAT rate
currencyThe purchase currency
settlementDateThe date the settlement is createdOnly available when extended CSV is configured
payoutReferenceThe reference used for the bank payoutOnly available when extended CSV is configured
actionReferenceCustom value that can be provided when purchase is captured or refundedOnly available when extended CSV is configured
orderIdThe id of the order associated with the transactionAvailable on type Purchase, Return and PurchaseAmountAdjustment
productCodeThe product code associated with the transactionPossibly empty. Included if includeProductCode query param is true