For the complete documentation index, see llms.txt. This page is also available as Markdown.

Case Repository API

Tworzy status sprawy

post
Authorizations
AuthorizationstringRequired
Body
caseIdstringOptional

unikalny identyfikator sprawy

Example: c3f9a7c2-6d61-4d35-9f8b-f3c9f1b8a111
caseTypestringRequired

typ sprawy

Example: LOAN
clientstringRequired

identyfikator klienta

Example: 12345678901
clientTypestringRequired

typ klienta

Example: PESEL
statusstringRequired

aktualny status sprawy

Example: OPEN
statusDescriptionstring · nullableOptional

opis statusu

Example: Wniosek o kredyt został złożony.
businessKeystringRequired

klucz biznesowy

Example: BK-2026-0001
sourcestring · nullableOptional

źródło sprawy

Example: PORTAL
Responses
200

Utworzony status sprawy.

application/json
caseIdstringOptional

unikalny identyfikator sprawy

Example: c3f9a7c2-6d61-4d35-9f8b-f3c9f1b8a111
creationDatestring · date-time · nullableOptional

data i czas utworzenia statusu sprawy

Example: 2025-01-10T14:00:00
updateDatestring · date-time · nullableOptional

data i czas ostatniej aktualizacji statusu sprawy

Example: 2025-01-15T10:30:00
caseTypestringOptional

typ sprawy

Example: LOAN
clientIdstringOptional

identyfikator klienta

Example: 12345678901
clientTypestringOptional

typ klienta

Example: PESEL
statusstringOptional

aktualny status sprawy

Example: OPEN
businessKeystring · nullableOptional

klucz biznesowy

Example: BK-2026-0001
sourcestring · nullableOptional

źródło sprawy

Example: PORTAL
statusDescriptionstring · nullableOptional

opis statusu

Example: Wniosek o kredyt został złożony.
post/v1
POST /api/case-repository/v1 HTTP/1.1
Host: localhost:8080
Authorization: Basic username:password
Content-Type: application/json
Accept: */*
Content-Length: 164

{
  "caseType": "LOAN",
  "client": "12345678901",
  "clientType": "PESEL",
  "status": "OPEN",
  "statusDescription": "Opened from api",
  "businessKey": "BK-2026-0001",
  "source": "eximee"
}
{
  "caseId": "c3f9a7c2-6d61-4d35-9f8b-f3c9f1b8a111",
  "creationDate": "2025-01-10T14:00:00",
  "updateDate": "2025-01-15T10:30:00",
  "caseType": "LOAN",
  "clientId": 12345678901,
  "clientType": "PESEL",
  "status": "OPEN",
  "businessKey": "BK-2026-0001",
  "source": "PORTAL",
  "statusDescription": "Wniosek o kredyt został złożony."
}

Pobiera status sprawy po caseId

get
Authorizations
AuthorizationstringRequired
Query parameters
caseIdstringRequired

unikalny identyfikator sprawy.

Example: c3f9a7c2-6d61-4d35-9f8b-f3c9f1b8a111
Responses
200

Status sprawy.

application/json
caseIdstringOptional

unikalny identyfikator sprawy

Example: c3f9a7c2-6d61-4d35-9f8b-f3c9f1b8a111
creationDatestring · date-time · nullableOptional

data i czas utworzenia statusu sprawy

Example: 2025-01-10T14:00:00
updateDatestring · date-time · nullableOptional

data i czas ostatniej aktualizacji statusu sprawy

Example: 2025-01-15T10:30:00
caseTypestringOptional

typ sprawy

Example: LOAN
clientIdstringOptional

identyfikator klienta

Example: 12345678901
clientTypestringOptional

typ klienta

Example: PESEL
statusstringOptional

aktualny status sprawy

Example: OPEN
businessKeystring · nullableOptional

klucz biznesowy

Example: BK-2026-0001
sourcestring · nullableOptional

źródło sprawy

Example: PORTAL
statusDescriptionstring · nullableOptional

opis statusu

Example: Wniosek o kredyt został złożony.
get/v1
GET /api/case-repository/v1?caseId=text HTTP/1.1
Host: localhost:8080
Authorization: Basic username:password
Accept: */*
{
  "caseId": "c3f9a7c2-6d61-4d35-9f8b-f3c9f1b8a111",
  "creationDate": "2025-01-10T14:00:00",
  "updateDate": "2025-01-15T10:30:00",
  "caseType": "LOAN",
  "clientId": 12345678901,
  "clientType": "PESEL",
  "status": "OPEN",
  "businessKey": "BK-2026-0001",
  "source": "PORTAL",
  "statusDescription": "Wniosek o kredyt został złożony."
}

Aktualizuje status sprawy po caseId

patch
Authorizations
AuthorizationstringRequired
Query parameters
caseIdstringRequired

unikalny identyfikator sprawy.

Example: c3f9a7c2-6d61-4d35-9f8b-f3c9f1b8a111
Body
caseIdstring · nullableRequired

unikalny identyfikator sprawy

Example: c3f9a7c2-6d61-4d35-9f8b-f3c9f1b8a111
caseTypestringOptional

typ sprawy

Example: LOAN
clientstringOptional

identyfikator klienta

Example: 12345678901
clientTypestringOptional

typ klienta

Example: PESEL
statusstringOptional

aktualny status sprawy

Example: IN_PROGRESS
statusDescriptionstring · nullableOptional

opis statusu

Example: Wniosek o kredyt jest w trakcie rozpatrywania.
businessKeystring · nullableOptional

klucz biznesowy

Example: BK-2026-0001
sourcestring · nullableOptional

źródło sprawy

Example: PORTAL
Responses
204

Zaktualizowano.

No content

patch/v1
PATCH /api/case-repository/v1?caseId=text HTTP/1.1
Host: localhost:8080
Authorization: Basic username:password
Content-Type: application/json
Accept: */*
Content-Length: 172

{
  "caseType": "LOAN",
  "client": "12345678901",
  "clientType": "PESEL",
  "status": "IN_PROGRESS",
  "statusDescription": "Updated from api",
  "businessKey": "BK-2026-0001",
  "source": "eximee"
}

No content

Usuwa status sprawy po caseId

delete
Authorizations
AuthorizationstringRequired
Query parameters
caseIdstringRequired

unikalny identyfikator sprawy.

Example: c3f9a7c2-6d61-4d35-9f8b-f3c9f1b8a111
Responses
204

Usunięto.

No content

delete/v1
DELETE /api/case-repository/v1?caseId=text HTTP/1.1
Host: localhost:8080
Authorization: Basic username:password
Accept: */*

No content

Wyszukuje statusy spraw

post
Authorizations
AuthorizationstringRequired
Body
caseTypesstring[]Optional

filtr po typie sprawy

Example: ["LOAN","CARD"]
statusesstring[]Optional

filtr po statusie sprawy

Example: ["OPEN","IN_PROGRESS"]
clientIdstring · nullableOptional

filtr po identyfikatorze klienta

Example: 12345678901
clientTypestring · nullableOptional

filtr po typie klienta

Example: PESEL
pageSizeinteger · int32Required

liczba wyników na stronę

Example: 20
pageinteger · int32Required

numer strony

Example: 0
sortBystring · nullableOptional

pole do sortowania (np. creationDate, updateDate)

Example: updateDate
sortDirectionstring · nullableOptional

kierunek sortowania (ASC lub DESC)

Example: DESC
Responses
200

Wynik wyszukiwania.

application/json
pageinteger · int32Optional

numer strony wyników

Example: 0
pageSizeinteger · int32Optional

liczba wyników na stronę

Example: 100
countinteger · int32Optional

łączna liczba znalezionych wyników

Example: 1
post/v1/search
POST /api/case-repository/v1/search HTTP/1.1
Host: localhost:8080
Authorization: Basic username:password
Content-Type: application/json
Accept: */*
Content-Length: 300

{
  "caseTypes": [
    "LOAN"
  ],
  "statuses": [
    "OPEN"
  ],
  "clientId": "12345678901",
  "clientType": "PESEL",
  "createdDate": {
    "from": "2025-01-01T00:00:00",
    "to": "2025-01-31T23:59:59"
  },
  "updatedDate": {
    "from": "2025-02-01T00:00:00",
    "to": "2025-02-28T23:59:59"
  },
  "pageSize": 20,
  "page": 2,
  "sortBy": "updateDate",
  "sortDirection": "DESC"
}
{
  "page": 0,
  "pageSize": 100,
  "count": 1,
  "statuses": [
    {
      "caseId": "c3f9a7c2-6d61-4d35-9f8b-f3c9f1b8a111",
      "creationDate": "2025-01-10T14:00:00",
      "updateDate": "2025-01-15T10:30:00",
      "caseType": "LOAN",
      "clientId": 12345678901,
      "clientType": "PESEL",
      "status": "OPEN",
      "businessKey": "BK-2026-0001",
      "source": "PORTAL",
      "statusDescription": "Wniosek o kredyt został złożony."
    }
  ]
}

Tworzy statusy spraw w paczce

post
Authorizations
AuthorizationstringRequired
Body
Responses
200

Wynik operacji paczkowej.

application/json
updatedinteger · int64Optional

liczba pomyślnie utworzonych/zmodyfikowanych/usuniętych statusów spraw

Example: 1
post/v1/batch
POST /api/case-repository/v1/batch HTTP/1.1
Host: localhost:8080
Authorization: Basic username:password
Content-Type: application/json
Accept: */*
Content-Length: 247

{
  "statuses": [
    {
      "caseId": "c3f9a7c2-6d61-4d35-9f8b-f3c9f1b8a111",
      "caseType": "LOAN",
      "client": "12345678901",
      "clientType": "PESEL",
      "status": "OPEN",
      "statusDescription": "Wniosek o kredyt został złożony.",
      "businessKey": "BK-2026-0001",
      "source": "PORTAL"
    }
  ]
}
200

Wynik operacji paczkowej.

{
  "updated": 1,
  "errors": [
    {
      "caseId": "c3f9a7c2-6d61-4d35-9f8b-f3c9f1b8a111",
      "errorCode": "CASE_NOT_FOUND",
      "errorMessage": "Niepoprawne dane wejściowe."
    }
  ]
}

Aktualizuje statusy spraw w paczce

patch
Authorizations
AuthorizationstringRequired
Body
Responses
200

Wynik operacji paczkowej.

application/json
updatedinteger · int64Optional

liczba pomyślnie utworzonych/zmodyfikowanych/usuniętych statusów spraw

Example: 1
patch/v1/batch
PATCH /api/case-repository/v1/batch HTTP/1.1
Host: localhost:8080
Authorization: Basic username:password
Content-Type: application/json
Accept: */*
Content-Length: 265

{
  "statuses": [
    {
      "caseId": "c3f9a7c2-6d61-4d35-9f8b-f3c9f1b8a111",
      "caseType": "LOAN",
      "client": "12345678901",
      "clientType": "PESEL",
      "status": "IN_PROGRESS",
      "statusDescription": "Wniosek o kredyt jest w trakcie rozpatrywania.",
      "businessKey": "BK-2026-0001",
      "source": "PORTAL"
    }
  ]
}
200

Wynik operacji paczkowej.

{
  "updated": 1,
  "errors": [
    {
      "caseId": "c3f9a7c2-6d61-4d35-9f8b-f3c9f1b8a111",
      "errorCode": "CASE_NOT_FOUND",
      "errorMessage": "Niepoprawne dane wejściowe."
    }
  ]
}

Usuwa statusy spraw w paczce

delete
Authorizations
AuthorizationstringRequired
Body
caseIdsstring[]Optional

lista identyfikatorów spraw do usunięcia

Example: ["c3f9a7c2-6d61-4d35-9f8b-f3c9f1b8a111","d4e8b7c3-7e72-5e46-0f9c-g4d8h2i9j222"]
Responses
200

Wynik operacji paczkowej.

application/json
updatedinteger · int64Optional

liczba pomyślnie utworzonych/zmodyfikowanych/usuniętych statusów spraw

Example: 1
delete/v1/batch
DELETE /api/case-repository/v1/batch HTTP/1.1
Host: localhost:8080
Authorization: Basic username:password
Content-Type: application/json
Accept: */*
Content-Length: 91

{
  "caseIds": [
    "c3f9a7c2-6d61-4d35-9f8b-f3c9f1b8a111",
    "d4e8b7c3-7e72-5e46-0f9c-g4d8h2i9j222"
  ]
}
200

Wynik operacji paczkowej.

{
  "updated": 1,
  "errors": [
    {
      "caseId": "c3f9a7c2-6d61-4d35-9f8b-f3c9f1b8a111",
      "errorCode": "CASE_NOT_FOUND",
      "errorMessage": "Niepoprawne dane wejściowe."
    }
  ]
}

Last updated

Was this helpful?