Search delivery notes
Returns one page of delivery notes matching the filter. 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.DeliveryNotes.View`.
BearerAuthorizationBearer <token>OAuth 2.0 client credentials. Obtain a client id/secret from Winshop support ([email protected]), then POST to the token URL.
application/json- 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?integer1-based page to return. 0 and 1 both mean the first page.
int32pageSize?integerRows per page. Defaults to every matching row, and -1 asks for every row explicitly.
int32application/json- response
currentPage?integer1-based number of the page in this response.
int32data?array<>The rows of this page, shaped by the request's limitFields.
hasNextPage?booleanTrue when a page follows this one.
hasPreviousPage?booleanTrue when a page precedes this one.
pageSize?integerRows per page actually applied, which is 10 when the request asked for a non-positive size.
int32totalCount?integerNumber of rows matching the filter across every page.
int32totalPages?integerNumber of pages the whole result set spans at this page size.
int32curl -X POST 'https://<your-instance>/api/documents/expedition/delivery-notes/filter-paginated' \ -H 'Authorization: Bearer <access-token>' \ -H 'Content-Type: application/json' \ -d '{}'{ "currentPage": 0, "data": [ { "address1": "string", "branchId": 0, "branchName": "string", "branchNumber": "string", "cancellationInternalNumber": 0, "city": "string", "currency": "str", "customerCode": "string", "customerId": 0, "customerName": "string", "dateOfDocument": "2019-08-24T14:15:22Z", "dateOfProcessing": "2019-08-24T14:15:22Z", "deliveryAddressId": 0, "deliveryDate": "2019-08-24T14:15:22Z", "documentStateId": 0, "documentStatus": 0, "documentUserState": "string", "driver": "string", "foreignExchangeRate": 0, "formNumber": "string", "id": 0, "internalNumber": 0, "invoiceHeaderId": 0, "invoiceNumber": "string", "isCancellation": true, "isConfirmed": true, "isInvoicingDisabled": true, "isPartialCancellation": true, "isPrinted": true, "isProcessed": true, "isSummaryBillingEnabled": true, "note": "string", "orderInternalNumber": 0, "orderText": "string", "packageNumbers": "string", "partialCancellationInternalNumber": 0, "paymentType": "string", "paymentTypeId": 0, "priceId": 0, "proFormaInvoice": true, "processedByUserFullName": "string", "reasonForIssuanceOfGoods": "string", "remoteSaleCurrency": "str", "remoteSaleExchangeRate": 0, "remoteSaleTotalPrice": 0, "timeOfProcessing": "2019-08-24T14:15:22Z", "totalDiscount": 0, "totalNumberOfItems": 0, "totalNumberOfPieces": 0, "totalPrice": 0, "totalPriceWoVat": 0, "totalStockPrice": 0, "transportType": "string", "transportTypeId": 0, "userFullName": "string", "userId": 0, "userStatusColor": 0, "warehouseId": 0, "warehouseNumber": "string" } ], "hasNextPage": true, "hasPreviousPage": true, "pageSize": 0, "totalCount": 0, "totalPages": 0}Create a delivery note POST
Creates a delivery note from the header and any items in the body, and returns the stored document (201, `Location` header set). Reserves the next internal document number. Requires `Permissions.DeliveryNotes.Create`.
Create an invoice from one or more delivery notes POST
Merges the delivery notes listed in `deliveryNoteIds` (at most 50) into one invoice and returns the new invoice ids — normally exactly one. Optional fields override the issue, taxable-supply and delivery dates, the payment type and the invoice numbering series; omitted ones fall back to the delivery notes' values. Cannot be undone. Requires `Permissions.Invoice.Create`. See `POST /api/documents/expedition/delivery-notes/{documentId}/invoice` for the single-note variant.