> For the complete documentation index, see [llms.txt](https://dev.ropo.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://dev.ropo.com/api-reference/creditinfo.md).

# Creditinfo

Credit reports

## GET /creditinfo/search/{govid}/{querier\_ssn}

> Show old credit queries

```json
{"openapi":"3.1.0","info":{"title":"Ropo One","version":"1.0.0"},"tags":[{"name":"creditinfo","description":"Credit reports"}],"servers":[{"url":"/rest","description":"Ropo One"}],"security":[{"bearerAuth":[]}],"components":{"securitySchemes":{"bearerAuth":{"type":"http","bearerFormat":"JWT","scheme":"bearer"}},"schemas":{"CreditInfoReport":{"title":"CreditInfoReport","description":"CreditInfoReport","properties":{"id":{"type":"integer"},"name":{"type":"string"},"govid":{"type":"string"},"querytype":{"type":"string"},"queryname":{"type":"string"},"datetime":{"type":"string"},"whodid":{"type":"string"}},"type":"object"},"CreditInfoError":{"title":"CreditInfoError","description":"CreditInfoError","properties":{"errorId":{"type":"integer"},"errorText":{"type":"string"}},"type":"object"}}},"paths":{"/creditinfo/search/{govid}/{querier_ssn}":{"get":{"tags":["creditinfo"],"summary":"Show old credit queries","operationId":"CreditInfoSearchAction","parameters":[{"name":"govid","in":"path","description":"Social security number OR Business id","required":true,"schema":{"type":"string"}},{"name":"querier_ssn","in":"path","description":"Querier sosial security number. This value can be empty in some cases.","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"successful operation","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/CreditInfoReport"}}}}},"400":{"description":"Bad Request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreditInfoError"}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreditInfoError"}}}}}}}}}
```

## GET /creditinfopdf/{reportid}

> Get full report in PDF-format

```json
{"openapi":"3.1.0","info":{"title":"Ropo One","version":"1.0.0"},"tags":[{"name":"creditinfo","description":"Credit reports"}],"servers":[{"url":"/rest","description":"Ropo One"}],"security":[{"bearerAuth":[]}],"components":{"securitySchemes":{"bearerAuth":{"type":"http","bearerFormat":"JWT","scheme":"bearer"}},"schemas":{"CreditInfoPdfDataResponse":{"title":"CreditInfoPdfDataResponse","description":"CreditInfoPdfDataResponse","properties":{"data":{"type":"string","format":"byte"}},"type":"object"},"CreditInfoError":{"title":"CreditInfoError","description":"CreditInfoError","properties":{"errorId":{"type":"integer"},"errorText":{"type":"string"}},"type":"object"}}},"paths":{"/creditinfopdf/{reportid}":{"get":{"tags":["creditinfo"],"summary":"Get full report in PDF-format","operationId":"CreditInfoReportPdfAction","parameters":[{"name":"reportid","in":"path","description":"Id of report","required":true,"schema":{"type":"integer"}}],"responses":{"200":{"description":"Report PDF encoded in base64","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreditInfoPdfDataResponse"}}}},"400":{"description":"Bad request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreditInfoError"}}}},"404":{"description":"Not Found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreditInfoError"}}}}}}}}}
```

## GET /creditinforating/{reportid}

> Get rating and riskclass from rating-report

```json
{"openapi":"3.1.0","info":{"title":"Ropo One","version":"1.0.0"},"tags":[{"name":"creditinfo","description":"Credit reports"}],"servers":[{"url":"/rest","description":"Ropo One"}],"security":[{"bearerAuth":[]}],"components":{"securitySchemes":{"bearerAuth":{"type":"http","bearerFormat":"JWT","scheme":"bearer"}},"schemas":{"CreditInfoRatingResponse":{"title":"CreditInfoRatingResponse","description":"CreditInfoRatingResponse","properties":{"rating":{"type":"string"},"riskclass":{"type":"integer"}},"type":"object"},"CreditInfoError":{"title":"CreditInfoError","description":"CreditInfoError","properties":{"errorId":{"type":"integer"},"errorText":{"type":"string"}},"type":"object"}}},"paths":{"/creditinforating/{reportid}":{"get":{"tags":["creditinfo"],"summary":"Get rating and riskclass from rating-report","operationId":"CreditInfoReportRatingAction","parameters":[{"name":"reportid","in":"path","description":"Id of report","required":true,"schema":{"type":"integer"}}],"responses":{"200":{"description":"Rating and riskclass from report","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreditInfoRatingResponse"}}}},"400":{"description":"Bad request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreditInfoError"}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreditInfoError"}}}}}}}}}
```

## GET /creditinfopersoncreditrating/{reportid}

> Get credit rating from credit-report

```json
{"openapi":"3.1.0","info":{"title":"Ropo One","version":"1.0.0"},"tags":[{"name":"creditinfo","description":"Credit reports"}],"servers":[{"url":"/rest","description":"Ropo One"}],"security":[{"bearerAuth":[]}],"components":{"securitySchemes":{"bearerAuth":{"type":"http","bearerFormat":"JWT","scheme":"bearer"}},"schemas":{"CreditInfoCreditRatingResponse":{"title":"CreditInfoCreditRatingResponse","description":"CreditInfoCreditRatingResponse","properties":{"creditrating":{"type":"string"}},"type":"object"},"CreditInfoError":{"title":"CreditInfoError","description":"CreditInfoError","properties":{"errorId":{"type":"integer"},"errorText":{"type":"string"}},"type":"object"}}},"paths":{"/creditinfopersoncreditrating/{reportid}":{"get":{"tags":["creditinfo"],"summary":"Get credit rating from credit-report","operationId":"CreditInfoReportCreditRatingAction","parameters":[{"name":"reportid","in":"path","description":"Id of report","required":true,"schema":{"type":"integer"}}],"responses":{"200":{"description":"Credit rating from report","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreditInfoCreditRatingResponse"}}}},"400":{"description":"Bad request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreditInfoError"}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreditInfoError"}}}}}}}}}
```

## POST /creditinfo

> Make new credit query

```json
{"openapi":"3.1.0","info":{"title":"Ropo One","version":"1.0.0"},"tags":[{"name":"creditinfo","description":"Credit reports"}],"servers":[{"url":"/rest","description":"Ropo One"}],"security":[{"bearerAuth":[]}],"components":{"securitySchemes":{"bearerAuth":{"type":"http","bearerFormat":"JWT","scheme":"bearer"}},"schemas":{"CreditInfoRequest":{"title":"CreditInfoRequest","description":"CreditInfoRequest","required":["govid","creditinfo_reason","creditinfo_status"],"properties":{"govid":{"description":"Business Id or Social security number","type":"string"},"creditinfo_reason":{"description":"Reason for query","type":"string","enum":["1","2","3","4","5","6","7","8","9","A","B","C"]},"creditinfo_status":{"description":"Type of report","type":"string","enum":["krbasic","krplus","krplus2","credit","creditcplus","rating"]},"querier_name":{"description":"Querier name","type":"string"},"querier_ssn":{"description":"Querier sosial security number","type":"string"}},"type":"object"},"CreditInfoCreatedResponse":{"title":"CreditInfoCreatedResponse","description":"CreditInfoCreatedResponse","properties":{"id":{"type":"integer"}},"type":"object"},"Error":{"title":"Error","description":"Error","properties":{"Code":{"type":"integer"},"Message":{"type":"string"}},"type":"object"}}},"paths":{"/creditinfo":{"post":{"tags":["creditinfo"],"summary":"Make new credit query","operationId":"CreditInfoNewAction","requestBody":{"description":"CreditInfoRequest","required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreditInfoRequest"}}}},"responses":{"201":{"description":"Successful operation","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreditInfoCreatedResponse"}}}},"400":{"description":"Bad request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}}}}
```


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter, and the optional `goal` query parameter:

```
GET https://dev.ropo.com/api-reference/creditinfo.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
