Sales indicators and invoice documents
In Settings → Web Services → API Keys, create a managed key for your shop with the scopes required for your task. Replace the demo token, IDs and dates in the commands below.
Read sales indicators
GET /api/partner/v1/reports/sales-summary · Scope reports.read
Send Authorization: Bearer … and the query parameters shop_id (shop ID), from and to (inclusive business dates in YYYY-MM-DD format, spanning 1 to 360 days). Add cash_register_id to limit sales and their payments to one register.
curl --fail-with-body --silent --show-error --request GET --header 'Authorization: Bearer DEMO_MANAGED_KEY' --header 'Accept: application/json' 'https://kash.click/api/partner/v1/reports/sales-summary?shop_id=42&from=2026-06-12&to=2026-06-12&cash_register_id=3'
The 200 OK response is JSON. This excerpt shows a EUR 25.00 sale and a EUR −5.00 refund, for net sales of EUR 20.00. See dates, amounts and breakdowns.
{
"currency": "EUR",
"totals": {
"gross_sales_amount": "25.00",
"refund_amount": "-5.00",
"net_sales_amount": "20.00",
"sale_count": 1,
"refund_count": 1
}
}
Download an invoice document
GET /api/partner/v1/invoices/{id}/documents · Scope invoices.read
Start by listing the documents. Send Authorization: Bearer …, include shop_id in the query string and use the invoice order ID for {id}.
curl --fail-with-body --silent --show-error --request GET --header 'Authorization: Bearer DEMO_MANAGED_KEY' --header 'Accept: application/json' 'https://kash.click/api/partner/v1/invoices/12345/documents?shop_id=42'
The list returns 200 OK with JSON. This excerpt shows a downloadable document and the transmission field as returned with the invoices.read scope alone.
{
"documents": [{
"id": "pdf",
"type": "invoice",
"format": "factur_x",
"content_type": "application/pdf",
"availability": "available",
"download_path": "/api/partner/v1/invoices/12345/documents/pdf?shop_id=42"
}],
"transmission": null
}
GET /api/partner/v1/invoices/{id}/documents/{document_id} · Scope invoices.read
Choose an available entry in documents or credit_notes[].documents. Append its download_path to the origin used for the list and send the same Authorization: Bearer … header. The path already includes the order ID for that invoice or credit note, document_id (currently pdf) and shop_id.
curl --fail --silent --show-error --request GET --header 'Authorization: Bearer DEMO_MANAGED_KEY' --header 'Accept: application/pdf' --output 'invoice-12345.pdf' 'https://kash.click/api/partner/v1/invoices/12345/documents/pdf?shop_id=42'
A successful download returns 200 OK with the file bytes and Content-Type: application/pdf, including for Factur-X. See availability, formats and accounting transmission.
Understand the sales indicators
Inclusive dates and business day
from and to each include their business day. The period starts at period.start_at and ends just before period.end_at_exclusive, with both boundaries set at business_day.opening_time. If the shop opens at 05:00, a sale with a Saturday 01:00 value date (datevaleur) belongs to Friday. timezone gives the shop’s fixed UTC offset.
cash_register_id accepts the stored integer ID, including 0 and historical negative IDs.
What the indicators cover
The summary covers validated transactions in the sales report, including sales awaiting payment and any cash register, deposit or gift voucher entries in that report. Drafts, sales deleted before validation and VAT breakdowns by rate are outside its scope. A validated cancellation contributes through its offsetting transaction when one exists.
| Field | Metrics |
|---|---|
totals, by_business_day, by_cash_register | Sales before refunds (gross_sales_amount), signed negative amounts (refund_amount), their sum (net_sales_amount) and counts (sale_count, refund_count). |
by_payment_method | Payment line count (payment_count) and signed applied amount (applied_amount), grouped by payment_method_id and payment_type_id. |
Credit notes and refunds count on their own business day. Sales amounts exclude tip items. Payments use the amount applied after change is given and exclude explicit tip lines. A payment recorded later appears in the period of the sale it belongs to. A sale with split payments or multiple payment methods counts once in sales. Total payments can differ from net sales.
Decimal amounts, rounding and empty periods
Amounts are decimal strings with a decimal point and at least two decimal places. currency gives the shop’s currency, or XXX if it is unknown. Totals and each group are rounded separately using the sales report settings, so the rounded values can differ by a few cents.
The breakdowns contain the days and registers represented in the transactions. An empty period returns zero counts and amounts and empty breakdowns.
Invoice documents and linked credit notes
Availability and formats
The list covers the shop’s documents, including accessible archives, and credit notes linked through stored references. reference combines the stored number with the shop’s current prefix. issued_at uses the document’s value date or falls back to its creation date.
An available document provides a download_path. For unavailable, that field is null. Both pdf and factur_x use application/pdf. factur_x indicates a PDF with embedded XML. A historical document may be regenerated with the current rendering settings.
Accounting transmission status
The additional accounting_transmissions.read scope exposes transmission.pennylane in the document list. Without it, transmission is null for the invoice and its credit notes. File availability depends on document rendering. Transmission status comes from the Pennylane registry, and reading it does not send any documents.
The registry covers the company linked to the shop and the currently configured Pennylane API scope. Other destinations and transmissions that predate the registry are outside its coverage. Each entry in records gives its status, external reference and update time when known.
| State | Meaning |
|---|---|
sent | The registry confirms transmission with an external reference. |
pending | Transmission is pending. |
failed | A failure was recorded. |
uncertain | The transmission outcome needs verification. |
excluded | The registry excluded this document from processing. |
unknown | The registry is accessible but has no usable evidence for this document. |
unavailable | The registry or integration is unavailable. |
HTTP status codes
400A parameter is missing or invalid.401The managed key is missing or invalid for the requested shop.403The scope is insufficient or the shop is closed.404The invoice or document was not found in the shop.405The route does not accept the request method. Use GET.503The service is temporarily unavailable. For downloads,document_unavailableindicates a file generation failure.
Partner API OpenAPI contract · Full response schemas and examples