Skip to main content

Settlement search

Find settlement reports for all your stores. Walley creates one settlement report each time a store is settled according to your agreement.

Example​

GET /reports/settlements?page=1&perPage=1 HTTP/1.1
Host: api.uat.walleydev.com // Test environment. Production uses a different hostname.
Authorization: Bearer bXlVc2VybmFtZTpmN2E1ODA4MGQzZTk0M2VmNWYyMTZlMDE...
Http status codeDescription
200Successful request
401Token missing, expired, or invalid. See Authentication
409Request with same idempotency key already in progress
422Query with incorrect format

Data Model​

Request​

Request headers​

HeaderRequiredExplanation
AuthorizationYesSee Authentication for how to generate the Bearer token value

Request querystrings​

ParameterRequiredExplanation
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. See Request examples

Request examples​

The query parameter can be used in the request to filter settlement reports on the properties.

%20 is a URL-encoded space

The example URLs below encode every space in the query as %20.

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 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 reference 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 1158 with currency SEK. Equal to storeId:1158 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 that are included in the settlements
endDateThe end date of captures and refunds that are included in the settlements
storeIdThe id of the store that has been settled
ingoingBalanceIf the previous settlement had a negative balance, it is carried over to the following settlement
totalAmountThe amount that will be paid out for the period
currencyThe currency of the settled purchases
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)
compensationsThe sum of all Walley fees for the settlement period
adjustmentsSettlement adjustments. See Manual adjustment types
links.transactionsThe URL for retrieving all the settled transactions
links.pdfThe URL for retrieving the settlement's PDF file. Depending on setup, it might not be available.