Cases

Create and read cases, their parties and actions, and upload documents with multipart/form-data.

The cases module (expedientes) organizes work by matter (law firms, court representatives, accountants, experts…). The organization must have the module; otherwise the API answers 403 module_not_available.

Scopes: cases:read / cases:write. Every path hangs from /expedientes/.

Cases

POST/api/v1/expedientes/cases/cases:write
{
  "reference": "EXP-2026-031",
  "title": "Debt claim · Talleres Martín",
  "customer": 318,
  "case_type": 2,
  "priority": "high",
  "open_date": "2026-11-01",
  "description": "Three unpaid 2026 invoices.",
  "court_case_number": "",
  "tags": [4]
}
JSON
FieldDescription
referenceReference, unique in the organization.
titleCase title.
customerCustomer it belongs to.
statusopen, in_progress, suspended, closed, archived.
prioritylow, medium, high, urgent.
case_type, court, jurisdiction, tagsCatalogs at /expedientes/case-types/, /courts/, /jurisdictions/, /tags/.
OperationEndpoint
List / searchGET /expedientes/cases/?search=martín&status=open
ReadGET /expedientes/cases/{id}/
UpdatePATCH /expedientes/cases/{id}/
Close / reopenPOST /expedientes/cases/{id}/close/ · POST /expedientes/cases/{id}/reopen/
TimelineGET /expedientes/cases/{id}/timeline/

Parties and actions

ResourcePath
Parties/expedientes/cases/{case_id}/parties/
Actions and deadlines/expedientes/cases/{case_id}/actions/ (with POST …/{id}/complete/ and …/{id}/reopen/)
Folders/expedientes/cases/{case_id}/folders/
Linked documents (invoices, quotes…)/expedientes/cases/{case_id}/documents/

Uploading files

POST/api/v1/expedientes/cases/{case_id}/files/cases:write

Files are uploaded with multipart/form-data. Fields: file (required), name (the file name is used if omitted), folder (id of a folder of the same case) and notes.

curl https://api.billora.app/api/v1/expedientes/cases/57/files/ \
  -H "Authorization: Bearer $BILLORA_API_KEY" \
  -H "Idempotency-Key: case57-claim-v1" \
  -F "file=@claim.pdf;type=application/pdf" \
  -F "name=Filed claim.pdf" \
  -F "folder=12"
bash

The response (201) includes id, file_size, mime_type, version and download_url. To download it later: GET /expedientes/cases/{case_id}/files/{id}/download/. Uploading a new file with PATCH on the same resource stores it as a new version (version + 1).

Files count towards the plan's storage; if it is exceeded, the upload returns 402 quota_exceeded.

Other operations

OperationEndpoint
Next free referenceGET /expedientes/next-reference/
Document requests to the client/expedientes/cases/{case_id}/requirements/ (with POST …/{id}/resend/ and …/{id}/cancel/)
Actions across all cases and deadline calendarGET /expedientes/all-actions/ · GET /expedientes/calendar/
Indicators, settings and Google Calendar statusGET /expedientes/dashboard/ · GET /expedientes/settings/ · GET /expedientes/google-calendar/status/
Generate a document from a Word templatePOST /expedientes/cases/{case_id}/generate-document/ (templates:read + cases:read, see templates)

Events

case.created, case.updated, case.closed and case_file.created. See webhooks.