Skip to main content

Settlement Search

Find settlement reports created for all your stores. There will be one settlement for every time we settle for each of your stores according to your agreement.

Example​

GET /reports/settlements?page=1&perPage=1 HTTP/1.1
Host: api.uat.walleydev.com // (Please note! Different hostname in production)
Authorization: Bearer bXlVc2VybmFtZTpmN2E1ODA4MGQzZTk0M2VmNWYyMTZlMDE...
Http status codeDescription
401Unauthorized, token verification needed. See: Authentication for more information
422Query with incorrect format

Data Model​

Request​

Request headers​
HeaderRequiredExplanation
AuthorizationYesInstructions on how to generate the Bearer token value can be found here
Request querystrings​
HeaderRequiredExplanation
pageNoPage of items that should be returned in request. Default is 1
perPageNoNumber of items to be returned in each request. Largest allowed value is 1000, default is 10
queryNoUsed for free text search or specific property value search. Examples can be found here

Request examples​

The query property can be used in the request to filter out settlement reports depending on the properties.

Please Note

%20 are the encoded characters for a space.


By date and periods​

Reports that have startDate after the date 2022-12-17. This is equal to the search startDate: > 2022-12-17.

/reports/settlements?query=startDate:>2022-12-17&page=1&perPage=30

Reports that have startDate before the date 2022-12-17. This is equal to the search startDate: < 2022-12-17.

/reports/settlements?query=startDate:<2022-12-17&page=1&perPage=30

Reports with the startDate 2022-12-30 and endDate 2022-12-30. This is equal to the search startDate:2022-12-30 AND endDate:2022-12-30.

/reports/settlements?query=startDate:2022-12-30%20AND%20endDate:2022-12-30&page=1&perPage=30

Reports between startDate 2022-12-01 and endDate 2022-12-08. This is equal to the search startDate: >= 2022-12-01 AND endDate: <= 2022-12-08.

/reports/settlements?query=startDate:>=2022-12-01%20AND%20endDate:<=2022-12-08&page=1&perPage=30

By currency​

Reports between with the currency SEK.

/reports/settlements?query=currency:SEK&page=1&perPage=30

By store​

Reports from the storeId 4567.

/reports/settlements?query=storeId:4567&page=1&perPage=30

By settlement reference​

Reports with the settlementReference 2134.

/reports/settlements?query=reference:2134&page=1&perPage=30

Combined properties​

Reports between the time period startDate 2022-12-01 and endDate 2022-12-08 with currency SEK. Equal to startDate: >= 2022-12-01 AND endDate: <= 2022-12-08 AND currency: SEK.

/reports/settlements?query=startDate:>=2022-12-01%20AND%20endDate:<=2022-12-08%20AND%20currency:SEK&page=1&perPage=30

Reports from the storeId with currency SEK. Equal to startDate: >= 2022-12-01 AND endDate: <= 2022-12-08 AND currency: SEK.

/reports/settlements?query=storeId:1158%20AND%20currency:SEK&page=1&perPage=30

Response​

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

{
"id": "1",
"startDate": "2022-12-30T00:00:00",
"endDate": "2022-12-30T00:00:00"
"storeId": 1,
"ingoingBalance": 0.0,
"totalAmount": 100000.0,
"currency": "SEK",
"netSales": 100000.0,
"paidOutAt": "2023-01-02T11:00:10.000000+01:00",
"generatedAt": "2023-01-02T11:00:10.000000+01:00",
"captured": 103000.0,
"refunded": -3000.0,
"reference": "2134",
"compensations": 0.0,
"adjustments": 0.0,
"links": {
"pdf": {
"method": "GET",
"href": "/reports/settlements/1/file/pdf",
"query": ""
},
"transactions": {
"method": "GET",
"href": "/reports/settlements/1/transactions",
"query": ""
}
}
}

Properties​

PropertyExplanation
idThe id of the settlement
startDateThe start date of captures and refunds thats included in the settlements
endDateThe end date of captures and refunds thats included in the settlements
storeIdThe id of the store that has been settled
ingoingBalanceIf previous settlement had negative balance, it will be moved onto the following settlement
totalAmountThe amount that will be payed out for the period
currencyThe currency on the purchases that has been settled
netSalesThe net sales during the settled period
paidOutAtThe date of the payout
generatedAtThe date and time the settlement was generated
capturedThe captured amount during the settlement period
refundedThe returned amount during the settlement period
referenceThe settlement reference (only shown for merchants with settlement reference option activated)
compensationsAll walley fees for the settlement period summarized
adjustmentsSettlement adjustments. See adjustment types here
links.transactionsThe url that can be used to retrieve all the transactions that has been settled
links.pdfThe url that can be used to retrieve the PDF file for the settlement. Depending on setup this might not be available.