WinShopAPI docs

Search financial receivables

Returns one page of receivables matching the filter — the amounts customers still owe, with their due dates. Body is a `PaginationRequest` — see the *Filtering & pagination* concept in the developer docs. Sortable and limitable fields depend on the instance's data-grid view. Requires `Permissions.FinancialReceivables.View`.

POST
/api/finances/financial-receivables/filter-paginated

Authorization

Bearer
headerAuthorizationBearer <token>

OAuth 2.0 client credentials. Obtain a client id/secret from Winshop support ([email protected]), then POST to the token URL.

Request Body

application/json
  1. body
filter?

Endpoint-specific filter. Every field is optional; the ones you set are combined with AND.

limitFields?array<string>|

Names of the fields to return; omit it for all of them. Which fields exist depends on the instance's data-grid view.

orderBy?array<string>|

Sort order, one entry per level, each written as Field or Field desc. Which fields can be sorted on depends on the instance's data-grid view.

pageNumber?integer

1-based page to return. 0 and 1 both mean the first page.

Formatint32
pageSize?integer

Rows per page. Defaults to every matching row, and -1 asks for every row explicitly.

Formatint32

Response Body

application/json
  1. response
currentPage?integer

1-based number of the page in this response.

Formatint32
data?array<>

The rows of this page, shaped by the request's limitFields.

hasNextPage?boolean

True when a page follows this one.

hasPreviousPage?boolean

True when a page precedes this one.

pageSize?integer

Rows per page actually applied, which is 10 when the request asked for a non-positive size.

Formatint32
totalCount?integer

Number of rows matching the filter across every page.

Formatint32
totalPages?integer

Number of pages the whole result set spans at this page size.

Formatint32
curl -X POST 'https://<your-instance>/api/finances/financial-receivables/filter-paginated' \  -H 'Authorization: Bearer <access-token>' \  -H 'Content-Type: application/json' \  -d '{}'
{  "currentPage": 0,  "data": [    {      "address1": "string",      "address2": "string",      "address3": "string",      "alreadyPaid": 0,      "amount": 0,      "cashRegisterId": 0,      "city": "string",      "companyIdentificationNumber": "string",      "contactPersonFullName": "string",      "contactUserId": 0,      "currency": "str",      "currencyId": 0,      "customerId": 0,      "customerName": "string",      "date": "2019-08-24T14:15:22Z",      "documentSeries": 0,      "documentType": "string",      "dueDate": "2019-08-24T14:15:22Z",      "headerInternalId": 0,      "id": 0,      "internalNumber": 0,      "note": "string",      "paidOnDate": "2019-08-24T14:15:22Z",      "paymentType": "string",      "paymentTypeId": 0,      "type": "s",      "userFullName": "string",      "variableSymbol": "string",      "vatAmountBasicRate": 0,      "vatAmountReducedRate": 0,      "vatAmountSuperReducedRate": 0,      "vatBasisBasicRate": 0,      "vatBasisExempt": 0,      "vatBasisReducedRate": 0,      "vatBasisSuperReducedRate": 0,      "vatRegistrationNumber": "string",      "zipCode": "string"    }  ],  "hasNextPage": true,  "hasPreviousPage": true,  "pageSize": 0,  "totalCount": 0,  "totalPages": 0}