Aller au contenu
Parcourir la référence
Toutes les ressources

Reçus (OCR)

16 endpoints · Les descriptions des points de terminaison sont en anglais.

Line items read from receipts, newest purchase first; unit prices are also given per base unit (kg, l, unit).

GET/households/{householdId}/receipt-items
read:receipts

Paramètres

NomEmplacementRequisDescription
cursorqueryOptionnel-
limitqueryOptionnel-
sortqueryOptionneldate (default, paged) | unitPrice | total
transactionIdqueryOptionnel-
receiptIdqueryOptionnel-
dateToqueryOptionnelPurchase day, inclusive (YYYY-MM-DD)
dateFromqueryOptionnelPurchase day, inclusive (YYYY-MM-DD)
merchantqueryOptionnel-
qqueryOptionnelMatches product name, description and brand; terms are ANDed
Exemple de requête
bash
curl -H "Authorization: Bearer vokse_sk_…" \     -X GET https://api.vokse.ai/households/current/receipt-items
Réponse200 · Success

Unit price of a product over time (per base unit, quantity-weighted per bucket) with the merchants it was bought at.

GET/households/{householdId}/receipt-items/price-history
read:receipts

Paramètres

NomEmplacementRequisDescription
merchantqueryOptionnel-
dateToqueryOptionnel-
dateFromqueryOptionnel-
bucketqueryOptionnelmonth (default) | week
qqueryRequisProduct to follow, e.g. "manzana"
Exemple de requête
bash
curl -H "Authorization: Bearer vokse_sk_…" \     -X GET https://api.vokse.ai/households/current/receipt-items/price-history
Réponse200 · Success

Per-product summary across receipts: purchases, total spend, quantity-weighted average / min / max / latest unit price over the base unit, where it was bought.

GET/households/{householdId}/receipt-items/summary
read:receipts

Paramètres

NomEmplacementRequisDescription
limitqueryOptionnel-
sortqueryOptionnelspend (default) | unitPrice | frequency | name
dateToqueryOptionnel-
dateFromqueryOptionnel-
merchantqueryOptionnel-
qqueryOptionnel-
Exemple de requête
bash
curl -H "Authorization: Bearer vokse_sk_…" \     -X GET https://api.vokse.ai/households/current/receipt-items/summary
Réponse200 · Success

List receipts in this household; filter by link state, extraction status, kind, day, amount, merchant, tags or free text; sort by date, amount or merchant.

GET/households/{householdId}/receipts
read:receipts

Paramètres

NomEmplacementRequisDescription
cursorqueryOptionnelnextCursor of the previous page; only valid for the same sort and dateBasis
limitqueryOptionnel-
sortqueryOptionneldate_desc (default) | date_asc | amount_desc | amount_asc | merchant_asc; dates follow dateBasis, ties break on id, receipts without a total or merchant come last
inboxOnlyqueryOptionneltrue = not yet linked to a transaction
linkedqueryOptionneltrue = linked to a transaction, false = still in the tray
transactionIdqueryOptionnel-
statusqueryOptionnelComma-separated: pending, processing, extracted, failed
kindqueryOptionnelreceipt | invoice | product | other
qqueryOptionnelFree text over what was read (merchant, items, tags, summary); terms are ANDed
dateBasisqueryOptionnelWhich day the date filters and sorts use: receipt (default; the day printed on it, the upload day until it is read) or upload
dateFromqueryOptionnelInclusive (YYYY-MM-DD) on the chosen dateBasis
dateToqueryOptionnelInclusive (YYYY-MM-DD) on the chosen dateBasis
amountMinqueryOptionnelInclusive lower bound on the read total, integer cents
amountMaxqueryOptionnelInclusive upper bound on the read total, integer cents
merchantqueryOptionnelComma-separated merchant keys (from the facets); any of them
tagqueryOptionnelComma-separated tags; all of them
Exemple de requête
bash
curl -H "Authorization: Bearer vokse_sk_…" \     -X GET https://api.vokse.ai/households/current/receipts
Réponse200 · Success

Upload a receipt image (multipart/form-data); optionally attach it to a transaction

POST/households/{householdId}/receipts
write:receipts
Exemple de requête
bash
curl -H "Authorization: Bearer vokse_sk_…" \     -H "Idempotency-Key: $(uuidgen)" \     -X POST https://api.vokse.ai/households/current/receipts \     -F "file=@receipt.jpg"
Réponse201 · Success

Get a receipt: extraction, normalised line items and pre-signed URLs (300s TTL) for the image.

GET/households/{householdId}/receipts/{receiptId}
read:receipts

Paramètres

NomEmplacementRequis
receiptIdpathRequis
Exemple de requête
bash
curl -H "Authorization: Bearer vokse_sk_…" \     -X GET https://api.vokse.ai/households/current/receipts/{receiptId}
Réponse200 · Success

Correct what was read (ADR 0111): merchant, date, total, currency, kind, tags, summary merge; items replace. A failed receipt becomes usable this way.

PATCH/households/{householdId}/receipts/{receiptId}
write:receipts

Paramètres

NomEmplacementRequis
receiptIdpathRequis
Exemple de requête
bash
curl -H "Authorization: Bearer vokse_sk_…" \     -H "Idempotency-Key: $(uuidgen)" \     -X PATCH https://api.vokse.ai/households/current/receipts/{receiptId}
Réponse200 · Success

Soft-delete a receipt

DELETE/households/{householdId}/receipts/{receiptId}
write:receipts

Paramètres

NomEmplacementRequis
receiptIdpathRequis
Exemple de requête
bash
curl -H "Authorization: Bearer vokse_sk_…" \     -X DELETE https://api.vokse.ai/households/current/receipts/{receiptId}
Réponse204 · No content

Attach an unlinked receipt to an existing transaction (ADR 0108)

POST/households/{householdId}/receipts/{receiptId}/attach
write:receipts

Paramètres

NomEmplacementRequis
receiptIdpathRequis
Exemple de requête
bash
curl -H "Authorization: Bearer vokse_sk_…" \     -H "Idempotency-Key: $(uuidgen)" \     -X POST https://api.vokse.ai/households/current/receipts/{receiptId}/attach
Réponse200 · Success

Materialise the receipt into a Transaction. Body fields override the extraction.

POST/households/{householdId}/receipts/{receiptId}/confirm
write:receipts

Paramètres

NomEmplacementRequis
receiptIdpathRequis
Exemple de requête
bash
curl -H "Authorization: Bearer vokse_sk_…" \     -H "Idempotency-Key: $(uuidgen)" \     -X POST https://api.vokse.ai/households/current/receipts/{receiptId}/confirm
Réponse200 · Success

Detach a receipt from its transaction; it returns to the tray (ADR 0108)

POST/households/{householdId}/receipts/{receiptId}/detach
write:receipts

Paramètres

NomEmplacementRequis
receiptIdpathRequis
Exemple de requête
bash
curl -H "Authorization: Bearer vokse_sk_…" \     -H "Idempotency-Key: $(uuidgen)" \     -X POST https://api.vokse.ai/households/current/receipts/{receiptId}/detach
Réponse200 · Success

The receipt image, served inline (or as a download with ?download=1).

GET/households/{householdId}/receipts/{receiptId}/file
read:receipts

Paramètres

NomEmplacementRequisDescription
receiptIdpathRequis-
downloadqueryOptionnelSet to 1 to receive an attachment instead of an inline image.
Exemple de requête
bash
curl -H "Authorization: Bearer vokse_sk_…" \     -X GET https://api.vokse.ai/households/current/receipts/{receiptId}/file
Réponse200 · Success

Read the receipt again (failed or extracted, attached or not). 409 while a read is in progress, or over a manual correction unless force=true. Returns the receipt with status="pending".

POST/households/{householdId}/receipts/{receiptId}/retry
write:receipts

Paramètres

NomEmplacementRequis
receiptIdpathRequis
Exemple de requête
bash
curl -H "Authorization: Bearer vokse_sk_…" \     -H "Idempotency-Key: $(uuidgen)" \     -X POST https://api.vokse.ai/households/current/receipts/{receiptId}/retry
Réponse200 · Success

How many receipts are unlinked, still being read, or failed (for the receipts page header).

GET/households/{householdId}/receipts/counts
read:receipts
Exemple de requête
bash
curl -H "Authorization: Bearer vokse_sk_…" \     -X GET https://api.vokse.ai/households/current/receipts/counts
Réponse200 · Success

Empty the tray: soft-delete every receipt not linked to a transaction. Returns how many were deleted.

POST/households/{householdId}/receipts/empty-tray
write:receipts
Exemple de requête
bash
curl -H "Authorization: Bearer vokse_sk_…" \     -H "Idempotency-Key: $(uuidgen)" \     -X POST https://api.vokse.ai/households/current/receipts/empty-tray
Réponse200 · Success

Facets of the receipts matching the same filters as the list: total, per-month counts and sums (on dateBasis), top merchants, top tags, status and link split.

GET/households/{householdId}/receipts/facets
read:receipts

Paramètres

NomEmplacementRequisDescription
inboxOnlyqueryOptionneltrue = not yet linked to a transaction
linkedqueryOptionneltrue = linked to a transaction, false = still in the tray
transactionIdqueryOptionnel-
statusqueryOptionnelComma-separated: pending, processing, extracted, failed
kindqueryOptionnelreceipt | invoice | product | other
qqueryOptionnelFree text over what was read (merchant, items, tags, summary); terms are ANDed
dateBasisqueryOptionnelWhich day the date filters and sorts use: receipt (default; the day printed on it, the upload day until it is read) or upload
dateFromqueryOptionnelInclusive (YYYY-MM-DD) on the chosen dateBasis
dateToqueryOptionnelInclusive (YYYY-MM-DD) on the chosen dateBasis
amountMinqueryOptionnelInclusive lower bound on the read total, integer cents
amountMaxqueryOptionnelInclusive upper bound on the read total, integer cents
merchantqueryOptionnelComma-separated merchant keys (from the facets); any of them
tagqueryOptionnelComma-separated tags; all of them
Exemple de requête
bash
curl -H "Authorization: Bearer vokse_sk_…" \     -X GET https://api.vokse.ai/households/current/receipts/facets
Réponse200 · Success