WinShopAPI docs

Get an invoice

Returns one invoice by `documentId`. Requires `Permissions.Invoice.View`.

GET
/api/documents/invoices/{documentId}

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.

Path Parameters

documentId*integer
Formatint32

Response Body

application/json
  1. response
address1?|
Lengthlength <= 80
address2?|
Lengthlength <= 80
address3?|
Lengthlength <= 80
attachment?array<>|null
branchId?|
Formatint32
cashRoundingAmount?|
Formatdecimal
city?|
Lengthlength <= 80
companyIdentificationNumber?|
Lengthlength <= 50
constantSymbol?|
Lengthlength <= 50
contractId?|
Formatint32
country?|
Lengthlength <= 80
countryId?|
Formatint32
createdAt?|
Formatdate-time
customerAuthorizedPersonId?|
Formatint32
customerId?|
Formatint32
dateOfAccountingPosting?|
Formatdate-time
dateOfCreation?|
Formatdate-time
dateOfTaxableEvent?|
Formatdate-time
dateOfTransfer?|
Formatdate-time
deliveryAddressId?|
Formatint32
deliveryDate?|
Formatdate-time
deliveryNotesInternalNumbers?string|null
deliveryNotesPriceLevels?string|null
discount?|
Formatdecimal
discountPercent?|
Formatdecimal
distanceSaleCurrency?|
Lengthlength <= 50
distanceSaleExchangeRate?|
Formatdecimal
distanceSaleExempt?|
Formatdecimal
distanceSaleTotalPrice?|
Formatdecimal
distanceSaleVatAmountBasicRate?|
Formatdecimal
distanceSaleVatAmountReducedRate?|
Formatdecimal
distanceSaleVatAmountSuperReducedRate?|
Formatdecimal
distanceSaleVatBasisBasicRate?|
Formatdecimal
distanceSaleVatBasisReducedRate?|
Formatdecimal
distanceSaleVatBasisSuperReducedRate?|
Formatdecimal
documentState?|
Formatint32
downPayment?array<>|null
downPaymentNotSubjectOfVat?|
Formatdecimal
downPaymentPdp?|
Formatdecimal
downPaymentVatAmountBasicRate?|
Formatdecimal
downPaymentVatAmountReducedRate?|
Formatdecimal
downPaymentVatAmountSuperReducedRate?|
Formatdecimal
downPaymentVatBasisBasicRate?|
Formatdecimal
downPaymentVatBasisReducedRate?|
Formatdecimal
downPaymentVatBasisSuperReducedRate?|
Formatdecimal
downPaymentWithoutVat?|
Formatdecimal
dueDate?|
Formatdate-time
fAutomat?boolean|null
finalRecipientAddress1?|
Lengthlength <= 80
finalRecipientAddress2?|
Lengthlength <= 80
finalRecipientAddress3?|
Lengthlength <= 80
finalRecipientCity?|
Lengthlength <= 80
finalRecipientCountry?|
Lengthlength <= 80
finalRecipientName?|
Lengthlength <= 255
finalRecipientZipCode?|
Lengthlength <= 50
formNumber?|
Lengthlength <= 50
frameworkOrder?|
Lengthlength <= 80
id?|
Formatint32
internalNumber?|
Formatint32
intrastatBorderCrossingDate?|
Formatdate-time
intrastatDestinationCountryId?|
Formatint32
intrastatMovementCodeId?|
Formatint32
intrastatSenderCountryId?|
Formatint32
intrastatTermsOfDeliveryId?|
Formatint32
intrastatTransactionId?|
Formatint32
intrastatTransportTypeId?|
Formatint32
invoiceSeries?|
Formatint32
invoiceType?|
Formatint32
invoicingAddress1?|
Lengthlength <= 80
invoicingAddress2?|
Lengthlength <= 80
invoicingAddress3?|
Lengthlength <= 80
invoicingCity?|
Lengthlength <= 80
invoicingCountry?|
Lengthlength <= 80
invoicingName?|
Lengthlength <= 255
invoicingZipCode?|
Lengthlength <= 50
isApproved?boolean|null
isDownPayment?|
Formatdecimal
isEuRetail?boolean|null
isExported?boolean|null
isExportedToCarrier?boolean|null
isLocked?boolean|null
isPdp?boolean|null
isPrinted?boolean|null
isPrintedPdf?boolean|null
isScrap?boolean|null
isSent?|
Formatdate-time
isTransportLabelPrinted?boolean|null
items?array<>|null
lastModify?|
Formatdate-time
lockOwner?|
Lengthlength <= 50
mainCurrencyExempt?|
Formatdecimal
mainCurrencyNotSubjectOfVat?|
Formatdecimal
mainCurrencyTotal?|
Formatdecimal
mainCurrencyVatAmountBasicRate?|
Formatdecimal
mainCurrencyVatAmountReducedRate?|
Formatdecimal
mainCurrencyVatAmountSuperReducedRate?|
Formatdecimal
mainCurrencyVatBasisBasicRate?|
Formatdecimal
mainCurrencyVatBasisReducedRate?|
Formatdecimal
mainCurrencyVatBasisSuperReducedRate?|
Formatdecimal
name?|
Lengthlength <= 255
notRemind?boolean|null
note?string|null
orderFormNumber?|
Lengthlength <= 50
orderInternalNumber?|
Formatint32
packages?array<>|null
paidOnDate?|
Formatdate-time
passedToTransport?|
Formatdate-time
paymentMethod?|
Formatint32
paymentTypeId?|
Formatint32
prePaymentInvoiceId?|
Formatint32
textAfter?string|null
textBefore?string|null
totalPrice?|
Formatdecimal
totalPriceCurrency?|
Lengthlength <= 50
totalPriceExchangeRate?|
Formatdecimal
transport?|
Lengthlength <= 50
transportDriverId?|
Formatint32
transportTypeId?|
Formatint32
userId?|
Lengthlength <= 50
vatAmountBasicRate?|
Formatdecimal
vatAmountReducedRate?|
Formatdecimal
vatAmountSuperReducedRate?|
Formatdecimal
vatBasisBasicRate?|
Formatdecimal
vatBasisExempt?|
Formatdecimal
vatBasisNotSubjectOfVat?|
Formatdecimal
vatBasisReducedRate?|
Formatdecimal
vatBasisSuperReducedRate?|
Formatdecimal
vatRateBasic?|
Formatdecimal
vatRateReduced?|
Formatdecimal
vatRateSuperReduced?|
Formatdecimal
vatRegistrationNumber?|
Lengthlength <= 50
warehouseAddress1?|
Lengthlength <= 80
warehouseAddress2?|
Lengthlength <= 80
warehouseCity?|
Lengthlength <= 80
warehouseId?|
Formatint32
warehouseName?|
Lengthlength <= 80
warehouseNumber?|
Lengthlength <= 50
warehouseZipCode?|
Lengthlength <= 50
zipCode?|
Lengthlength <= 50
curl -X GET 'https://<your-instance>/api/documents/invoices/0' \  -H 'Authorization: Bearer <access-token>'
{  "address1": "string",  "address2": "string",  "address3": "string",  "attachment": [    {      "fileData": "string",      "fileName": "string",      "id": 0,      "invoiceHeaderId": 0,      "level1Id": 0,      "level2Id": 0,      "level3Id": 0,      "pathToFile": "string"    }  ],  "branchId": 0,  "cashRoundingAmount": 0,  "city": "string",  "companyIdentificationNumber": "string",  "constantSymbol": "string",  "contractId": 0,  "country": "string",  "countryId": 0,  "createdAt": "2019-08-24T14:15:22Z",  "customerAuthorizedPersonId": 0,  "customerId": 0,  "dateOfAccountingPosting": "2019-08-24T14:15:22Z",  "dateOfCreation": "2019-08-24T14:15:22Z",  "dateOfTaxableEvent": "2019-08-24T14:15:22Z",  "dateOfTransfer": "2019-08-24T14:15:22Z",  "deliveryAddressId": 0,  "deliveryDate": "2019-08-24T14:15:22Z",  "deliveryNotesInternalNumbers": "string",  "deliveryNotesPriceLevels": "string",  "discount": 0,  "discountPercent": 0,  "distanceSaleCurrency": "string",  "distanceSaleExchangeRate": 0,  "distanceSaleExempt": 0,  "distanceSaleTotalPrice": 0,  "distanceSaleVatAmountBasicRate": 0,  "distanceSaleVatAmountReducedRate": 0,  "distanceSaleVatAmountSuperReducedRate": 0,  "distanceSaleVatBasisBasicRate": 0,  "distanceSaleVatBasisReducedRate": 0,  "distanceSaleVatBasisSuperReducedRate": 0,  "documentState": 0,  "downPayment": [    {      "downPayment": 0,      "downPaymentInvoiceHeaderId": 0,      "downPaymentNotSubjectOfVAT": 0,      "downPaymentVatAmountBasicRate": 0,      "downPaymentVatAmountReducedRate": 0,      "downPaymentVatAmountSuperReducedRate": 0,      "downPaymentVatBasisBasicRate": 0,      "downPaymentVatBasisReducedRate": 0,      "downPaymentVatBasisSuperReducedRate": 0,      "downPaymentWithoutVat": 0,      "id": 0,      "invoiceHeaderId": 0    }  ],  "downPaymentNotSubjectOfVat": 0,  "downPaymentPdp": 0,  "downPaymentVatAmountBasicRate": 0,  "downPaymentVatAmountReducedRate": 0,  "downPaymentVatAmountSuperReducedRate": 0,  "downPaymentVatBasisBasicRate": 0,  "downPaymentVatBasisReducedRate": 0,  "downPaymentVatBasisSuperReducedRate": 0,  "downPaymentWithoutVat": 0,  "dueDate": "2019-08-24T14:15:22Z",  "fAutomat": true,  "finalRecipientAddress1": "string",  "finalRecipientAddress2": "string",  "finalRecipientAddress3": "string",  "finalRecipientCity": "string",  "finalRecipientCountry": "string",  "finalRecipientName": "string",  "finalRecipientZipCode": "string",  "formNumber": "string",  "frameworkOrder": "string",  "id": 0,  "internalNumber": 0,  "intrastatBorderCrossingDate": "2019-08-24T14:15:22Z",  "intrastatDestinationCountryId": 0,  "intrastatMovementCodeId": 0,  "intrastatSenderCountryId": 0,  "intrastatTermsOfDeliveryId": 0,  "intrastatTransactionId": 0,  "intrastatTransportTypeId": 0,  "invoiceSeries": 0,  "invoiceType": 0,  "invoicingAddress1": "string",  "invoicingAddress2": "string",  "invoicingAddress3": "string",  "invoicingCity": "string",  "invoicingCountry": "string",  "invoicingName": "string",  "invoicingZipCode": "string",  "isApproved": true,  "isDownPayment": 0,  "isEuRetail": true,  "isExported": true,  "isExportedToCarrier": true,  "isLocked": true,  "isPdp": true,  "isPrinted": true,  "isPrintedPdf": true,  "isScrap": true,  "isSent": "2019-08-24T14:15:22Z",  "isTransportLabelPrinted": true,  "items": [    {      "colorId": 0,      "countryOfOrigin": "string",      "deliveryNote": 0,      "dimensionId": 0,      "discount": 0,      "downPayment": true,      "exchangeRate": 0,      "expirationDate": "2019-08-24T14:15:22Z",      "foreignCurrency": "str",      "guid": "string",      "id": 0,      "internalNumber": 0,      "invoiceHeaderId": 0,      "invoiceSeries": 0,      "isReturnablePackaging": true,      "isbn": "string",      "item": 0,      "lengthId": 0,      "note": "string",      "numberOfPackages": 0,      "price": 0,      "priceWoVat": 0,      "productCode": "string",      "productId": 0,      "quantity": 0,      "recyclingFee": 0,      "recyclingFeeId": 0,      "reverseChargeOnItem": true,      "rowText": "string",      "royalty": 0,      "royaltyId": 0,      "sizeId": 0,      "stockPrice": 0,      "totalForeignPrice": 0,      "unit": "string",      "vatBasisBasicRate": 0,      "vatBasisExempt": 0,      "vatBasisReducedRate": 0,      "vatBasisSuperReducedRate": 0,      "vatRate": 0,      "vatRateBasic": 0,      "vatRateReduced": 0,      "vatRateSuperReduced": 0,      "warehouseSellingPrice": 0,      "warranty": 0,      "weight": 0    }  ],  "lastModify": "2019-08-24T14:15:22Z",  "lockOwner": "string",  "mainCurrencyExempt": 0,  "mainCurrencyNotSubjectOfVat": 0,  "mainCurrencyTotal": 0,  "mainCurrencyVatAmountBasicRate": 0,  "mainCurrencyVatAmountReducedRate": 0,  "mainCurrencyVatAmountSuperReducedRate": 0,  "mainCurrencyVatBasisBasicRate": 0,  "mainCurrencyVatBasisReducedRate": 0,  "mainCurrencyVatBasisSuperReducedRate": 0,  "name": "string",  "notRemind": true,  "note": "string",  "orderFormNumber": "string",  "orderInternalNumber": 0,  "packages": [    {      "id": 0,      "invoiceHeaderId": 0,      "isListingPrinted": true,      "packageBarcode": "string",      "packageNumber": "string",      "packageStateId": 0,      "transportTypeId": 0,      "weight": 0    }  ],  "paidOnDate": "2019-08-24T14:15:22Z",  "passedToTransport": "2019-08-24T14:15:22Z",  "paymentMethod": 0,  "paymentTypeId": 0,  "prePaymentInvoiceId": 0,  "textAfter": "string",  "textBefore": "string",  "totalPrice": 0,  "totalPriceCurrency": "string",  "totalPriceExchangeRate": 0,  "transport": "string",  "transportDriverId": 0,  "transportTypeId": 0,  "userId": "string",  "vatAmountBasicRate": 0,  "vatAmountReducedRate": 0,  "vatAmountSuperReducedRate": 0,  "vatBasisBasicRate": 0,  "vatBasisExempt": 0,  "vatBasisNotSubjectOfVat": 0,  "vatBasisReducedRate": 0,  "vatBasisSuperReducedRate": 0,  "vatRateBasic": 0,  "vatRateReduced": 0,  "vatRateSuperReduced": 0,  "vatRegistrationNumber": "string",  "warehouseAddress1": "string",  "warehouseAddress2": "string",  "warehouseCity": "string",  "warehouseId": 0,  "warehouseName": "string",  "warehouseNumber": "string",  "warehouseZipCode": "string",  "zipCode": "string"}