Retrieve a receipt

Query the extracted receipt data and the assigned bookkeeping via the API.

Once processing has finished, you retrieve the document via its documentId — with all extracted fields, the individual line items and the assigned DATEV bookkeeping. Required scope: read:invoices.

Endpoint

GET $BASE/api/partner/v1/businesses/{businessId}/documents/{documentId}
curl -sS "$BASE/api/partner/v1/businesses/$BUSINESS_ID/documents/$DOCUMENT_ID" \
  -H "X-Partner-Api-Key: $API_KEY"

Response structure

Every extracted value comes as an object with value, confidence (0–1) and — on bookkeeping fields — a note explaining in natural language why this account was chosen:

  • general — the invoice header fields: among others ShopName, InvoiceNumber, InvoiceDate, TotalPrice, Currency, TaxAmount, plus the bookkeeping fields BK_Account, BK_TaxKey (DATEV tax code) and the sub-ledger accounts.
  • productItems — the individual line items with quantity, price, tax rate and per-item bookkeeping.
  • taxes — the breakdown per tax rate (net, tax, gross).
  • payments / paymentBanks — payment method and bank details (IBAN, BIC) where detected.
  • bookkeeping — the finished assignment: chart of accounts (SKR03/SKR04), the generated booking entries with account, counter-account, tax code and amount, plus detected data issues (for example a possible duplicate).

Example response (shortened)

{
  "documentId": "6630f1a2b3c4d5e6f7a8b9c1",
  "originalFileName": "invoice_april.pdf",
  "documentType": "INCOMING_INVOICE",
  "reviewed": false,
  "general": {
    "ShopName":      { "value": "ACME Office Supplies GmbH", "confidence": 0.98 },
    "InvoiceNumber": { "value": "RE-2026-0412", "confidence": 0.99 },
    "InvoiceDate":   { "value": "2026-04-12", "confidence": 0.97 },
    "TotalPrice":    { "value": "238.00", "confidence": 0.96 },
    "Currency":      { "value": "EUR", "confidence": 0.95 }
  },
  "productItems": [
    {
      "ProductName":   { "value": "A4 Paper", "confidence": 0.95 },
      "ProductPrice":  { "value": "120.00", "confidence": 0.90 },
      "TaxPercentage": { "value": "19", "confidence": 0.90 },
      "BK_Account":    { "value": "6815", "confidence": 1.0,
                         "note": "100% confidence because the same product with the same vendor has been classified into this account before." }
    }
  ],
  "taxes": [
    {
      "TaxPercentage":  { "value": "19" },
      "TaxNetAmount":   { "value": "200.00" },
      "TaxAmount":      { "value": "38.00" },
      "TaxGrossAmount": { "value": "238.00" }
    }
  ],
  "bookkeeping": {
    "accountType": "SKR04",
    "entries": [ … ],
    "dataIssues": []
  }
}

Error cases

If the documentId does not exist (any more) or belongs to an account other than {businessId}, the API responds with 403 Forbidden and the code DOCUMENT_ACCESS_DENIED — for security reasons it does not tell the two cases apart. While processing is still running, the processing field in the response is true — in that case wait for the status PROCESSED before consuming the data.