Authorization and Client-Id unless noted otherwise. Error bodies use FastAPI’s standard {"detail": ...} wrapper except initialize-session conflicts (409), which return a flat JSON object.
Base path: /api/v1/uploading
Common auth errors
Session access
Applies to endpoints that includeupload_uuid in the path (all except Get session status).
Wrong session status (409)
Used by Delete session, Upload entity, and Start upload when the session is notUPLOADING:
Initialize session
200 — created
New session:DONE session:
409 — conflict
Flat body (not wrapped indetail):
Get session status
upload_uuid stored for the client, or 404 if no record exists.
200
404
Start upload
200
JSON response confirming that data loading has started (schema may include extra fields).400
409
422
Invaliddate_from / date_to in body — Pydantic validation array in detail.
502
500 with a string detail.
Delete session
200
409
Session notUPLOADING — structured detail (see above).
Terminate data loading
session_status = STARTED. The session returns to UPLOADING asynchronously after data loading stops.
200
404
409 / 502 / 500
Stop failed or temporary internal error. Bodies may include"Failed to stop workflow" or "Failed to stop data loading".
Upload entity
200
400
409
Session notUPLOADING — structured detail.
422
String message indetail, for example:
"Invalid JSON format.""Missing required columns: store_id, receipt_id""Unknown column: foo""Invalid data types in payload: ...""The columns array cannot be empty."