Using this endpoint, you can get list of all credit notes with detailed info of each credit note (like in Credit note detail endpoint) asynchronously. See how Asynchronous requests work on our developer's portal.
Response will be in jsonlines format with each credit note taking one line of output file.
One credit note in response has the same format as credit note detail response. See Credit note snapshot schema for more details.
This endpoint has several sections, which are only sent when requested in the include parameter (see Section on demand).
| Value | Section |
|---|---|
surchargeParameters | Item surcharge parameters. |
Result file is compressed using GZIP.
Security
shoptetAccessToken or shoptetPrivateApiToken
- Mock serverhttps://api.docs.shoptet.com/_mock/shoptet-api/openapi/api/credit-notes/snapshot
- https://api.myshoptet.comhttps://api.myshoptet.com/api/credit-notes/snapshot
- shoptetAccessToken
- shoptetPrivateApiToken
curl -i -X GET \
'https://api.docs.shoptet.com/_mock/shoptet-api/openapi/api/credit-notes/snapshot?creationTimeFrom=2014-09-05T00%3A00%3A00%252B0000&creationTimeTo=2019-09-05T00%3A00%3A00%252B0000&changeTimeFrom=2014-09-05T00%3A00%3A00%252B0000&changeTimeTo=2019-09-05T00%3A00%3A00%252B0000&codeFrom=0000000006&codeTo=0000000006&invoiceCodeFrom=2017000010&invoiceCodeTo=2017000010&dueDateFrom=2014-09-05&dueDateTo=2019-09-05&hasProofPaymentCode=true&taxDateFrom=2014-09-05&taxDateTo=2019-09-05&orderCodeFrom=2017000010&orderCodeTo=2017000010&customerGuid=443cad54-73bc-11e8-8216-002590dad85e&varSymbol=2010001&restocked=false&isValid=true&include=surchargeParameters' \
-H 'Content-Type: application/json' \
-H 'Shoptet-Access-Token: YOUR_API_KEY_HERE'Response
{ "data": { "jobId": "ad24xod" }, "errors": [ { … } ], "metadata": { "requestId": "019c8c34-64f3-7328-af43-bf1e34fa39d7" } }