Documents
Retrieve documents, customer snapshots, line items, payment state, relationships, and PDF availability.
Permission: מסמכים (documents:read)
| Operation | Path |
|---|---|
| List | GET /documents |
| Retrieve | GET /documents/{id} |
| Get temporary PDF URL | GET /documents/{id}/pdf |
The list supports common cursor and time filters, search over title and customer-name snapshot, and these statuses: open, converted, pending_payment, closed, credited, returned, partially_paid, partially_credited, partially_returned. It sorts by updated_at descending, then ID descending.
set -euo pipefail
: "${DAILY_API_KEY:?DAILY_API_KEY is required}"
curl --fail-with-body --silent --show-error --get \
'https://api.godaily.co.il/v1/documents' \
--header "Authorization: Bearer ${DAILY_API_KEY}" \
--header 'Accept: application/json' \
--data-urlencode 'updated_after=2026-07-01T00:00:00.000Z' \
--data-urlencode 'limit=100'{
"id": "813d0b3f-ab6c-43d4-9173-8f224566ba2f",
"object": "document",
"document_type": "invoice",
"document_number": 1042,
"title": "Invoice 1042",
"status": "pending_payment",
"language": "en",
"customer": { "id": "44f34dad-a427-4c65-ae26-b0a43f8f65f7", "name": "Orion Retail" },
"issue_date": "2026-07-15",
"due_date": "2026-08-14",
"currency": "ILS",
"subtotal_minor": 185000,
"discount_minor": null,
"vat_minor": 33300,
"total_minor": 218300,
"payment_status": "unpaid",
"pdf_available": true,
"line_items": [{
"id": "ccf43b06-f708-41b7-8408-a96f31b637f2",
"line_number": 1,
"product_id": "44cfbbd5-185d-4c9d-8597-588c25e574e8",
"name": "Brand workshop",
"sku": "WORKSHOP-01",
"quantity": "1.000",
"unit_price_minor": 185000,
"total_minor": 185000,
"currency": "ILS",
"vat_included": false
}],
"related_document_ids": [],
"created_at": "2026-07-15T08:05:00.000Z",
"updated_at": "2026-07-15T08:06:00.000Z"
}due_date is the issue date for cash terms, issue date plus configured net days for net terms, and otherwise null. vat_minor is total_minor - subtotal_minor. payment_status is derived from document status. Use pdf_available before requesting the PDF URL.
API playground
Your key stays only in this React page’s memory and is sent directly to Daily API. It is not persisted, placed in a URL, logged, or sent to analytics. Refreshing or closing this page clears it.
https://api.godaily.co.il/v1/documents
