> 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/creditdecision.md).

# Creditdecision

Credit Decision

## GET /creditdecision/read

> Get exiting decision

```json
{"openapi":"3.1.0","info":{"title":"Ropo One","version":"1.0.0"},"tags":[{"name":"creditdecision","description":"Credit Decision"}],"servers":[{"url":"/rest","description":"Ropo One"}],"security":[{"bearerAuth":[]}],"components":{"securitySchemes":{"bearerAuth":{"type":"http","bearerFormat":"JWT","scheme":"bearer"}},"schemas":{"CreditDecisionReportResponse":{"title":"CreditDecisionReportResponse","description":"CreditDecisionReportResponse","properties":{"created_at":{"description":"Event creation timestamp in ISO8601 format","type":"string","format":"date"},"data":{"$ref":"#/components/schemas/CreditDecisionReportData"}},"type":"object"},"CreditDecisionReportData":{"title":"CreditDecisionReportData","description":"CreditDecisionReportData","properties":{"timestamp":{"description":"Decision creation timestamp in ISO8601 format","type":"string"},"proposal":{"$ref":"#/components/schemas/CreditDecisionProposal"},"customer":{"$ref":"#/components/schemas/CreditDecisionCustomer"},"model":{"$ref":"#/components/schemas/CreditDecisionModel"}},"type":"object"},"CreditDecisionProposal":{"title":"CreditDecisionProposal","description":"CreditDecisionProposal","properties":{"code":{"description":"Decision code. 0 = No, 1 = Consider, 2 = Yes","type":"string"},"text":{"description":"Decision described in text","type":"string"},"factor":{"type":"array","items":{"$ref":"#/components/schemas/CreditDecisionReportFactor"}}},"type":"object"},"CreditDecisionReportFactor":{"title":"CreditDecisionReportResponse","description":"CreditDecisionReportResponse","properties":{"code":{"description":"Factor code","type":"string"},"text":{"description":"Factor described in text.","type":"string"}},"type":"object"},"CreditDecisionCustomer":{"title":"CreditDecisionCustomer","description":"CreditDecisionCustomer","properties":{"name":{"description":"Customer name","type":["string","null"]},"businessid":{"description":"Company businessid","type":["string","null"]},"ssn":{"description":"Person sosial security number","type":["string","null"]}},"type":"object"},"CreditDecisionModel":{"title":"CreditDecisionModel","description":"CreditDecisionModel","properties":{"name":{"description":"Model name","type":"string"},"code":{"description":"Model code","type":"string"}},"type":"object"},"CreditDecisionError":{"title":"CreditDecisionError","description":"CreditDecisionError","properties":{"errorId":{"type":"integer"},"errorText":{"type":"string"}},"type":"object"}}},"paths":{"/creditdecision/read":{"get":{"tags":["creditdecision"],"summary":"Get exiting decision","operationId":"5b478c522a76e62a66968348b2e87884","parameters":[{"name":"timestamp","in":"query","description":"Decision timestamp found from created decision response data block","required":false,"schema":{"type":"string"}}],"responses":{"200":{"description":"Credit decision report","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreditDecisionReportResponse"}}}},"400":{"description":"Bad request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreditDecisionError"}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreditDecisionError"}}}}}}}}}
```

## POST /creditdecision

> Create new creditdecision

```json
{"openapi":"3.1.0","info":{"title":"Ropo One","version":"1.0.0"},"tags":[{"name":"creditdecision","description":"Credit Decision"}],"servers":[{"url":"/rest","description":"Ropo One"}],"security":[{"bearerAuth":[]}],"components":{"securitySchemes":{"bearerAuth":{"type":"http","bearerFormat":"JWT","scheme":"bearer"}},"schemas":{"CreditDecisionReportRequest":{"title":"CreditDecisionReportRequest","description":"CreditDecisionReportRequest","required":["id"],"properties":{"id":{"description":"Valid sosial security number or business id","type":"string"},"limit":{"description":"Request item limit to be returned. Recommended values are 100 or 200, maximum is 1000.","type":"integer"},"dir":{"description":"Sort direction. Allowed values are 'ASC' or 'DESC'. ASC returns items from oldest to newest (default). DESC returns items from newest to oldest.","type":"string"},"cursor":{"description":"Cursor for pagination to identify edge for next page. This value is provided in the 'response_metadata' object 'next_cursor' property.","type":"string"}},"type":"object"},"CreditDecisionReportResponse":{"title":"CreditDecisionReportResponse","description":"CreditDecisionReportResponse","properties":{"created_at":{"description":"Event creation timestamp in ISO8601 format","type":"string","format":"date"},"data":{"$ref":"#/components/schemas/CreditDecisionReportData"}},"type":"object"},"CreditDecisionReportData":{"title":"CreditDecisionReportData","description":"CreditDecisionReportData","properties":{"timestamp":{"description":"Decision creation timestamp in ISO8601 format","type":"string"},"proposal":{"$ref":"#/components/schemas/CreditDecisionProposal"},"customer":{"$ref":"#/components/schemas/CreditDecisionCustomer"},"model":{"$ref":"#/components/schemas/CreditDecisionModel"}},"type":"object"},"CreditDecisionProposal":{"title":"CreditDecisionProposal","description":"CreditDecisionProposal","properties":{"code":{"description":"Decision code. 0 = No, 1 = Consider, 2 = Yes","type":"string"},"text":{"description":"Decision described in text","type":"string"},"factor":{"type":"array","items":{"$ref":"#/components/schemas/CreditDecisionReportFactor"}}},"type":"object"},"CreditDecisionReportFactor":{"title":"CreditDecisionReportResponse","description":"CreditDecisionReportResponse","properties":{"code":{"description":"Factor code","type":"string"},"text":{"description":"Factor described in text.","type":"string"}},"type":"object"},"CreditDecisionCustomer":{"title":"CreditDecisionCustomer","description":"CreditDecisionCustomer","properties":{"name":{"description":"Customer name","type":["string","null"]},"businessid":{"description":"Company businessid","type":["string","null"]},"ssn":{"description":"Person sosial security number","type":["string","null"]}},"type":"object"},"CreditDecisionModel":{"title":"CreditDecisionModel","description":"CreditDecisionModel","properties":{"name":{"description":"Model name","type":"string"},"code":{"description":"Model code","type":"string"}},"type":"object"},"CreditDecisionError":{"title":"CreditDecisionError","description":"CreditDecisionError","properties":{"errorId":{"type":"integer"},"errorText":{"type":"string"}},"type":"object"}}},"paths":{"/creditdecision":{"post":{"tags":["creditdecision"],"summary":"Create new creditdecision","operationId":"6e0d8255bc1a59890c7c48ca148cf820","requestBody":{"description":"CreditDecisionReportRequest","required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreditDecisionReportRequest"}}}},"responses":{"201":{"description":"Successful operation","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreditDecisionReportResponse"}}}},"400":{"description":"Bad request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreditDecisionError"}}}}}}}}}
```

## POST /creditdecision/search

> Search from exiting decisions

```json
{"openapi":"3.1.0","info":{"title":"Ropo One","version":"1.0.0"},"tags":[{"name":"creditdecision","description":"Credit Decision"}],"servers":[{"url":"/rest","description":"Ropo One"}],"security":[{"bearerAuth":[]}],"components":{"securitySchemes":{"bearerAuth":{"type":"http","bearerFormat":"JWT","scheme":"bearer"}},"schemas":{"CreditDecisionReportRequest":{"title":"CreditDecisionReportRequest","description":"CreditDecisionReportRequest","required":["id"],"properties":{"id":{"description":"Valid sosial security number or business id","type":"string"},"limit":{"description":"Request item limit to be returned. Recommended values are 100 or 200, maximum is 1000.","type":"integer"},"dir":{"description":"Sort direction. Allowed values are 'ASC' or 'DESC'. ASC returns items from oldest to newest (default). DESC returns items from newest to oldest.","type":"string"},"cursor":{"description":"Cursor for pagination to identify edge for next page. This value is provided in the 'response_metadata' object 'next_cursor' property.","type":"string"}},"type":"object"},"CreditDecisionSearchReportResponse":{"title":"CreditDecisionSearchReportResponse","description":"CreditDecisionSearchReportResponse","properties":{"created_at":{"description":"Event creation timestamp in ISO8601 format","type":"string","format":"date"},"data":{"type":"array","items":{"$ref":"#/components/schemas/CreditDecisionSearchReportData"}},"metadata":{"oneOf":[{"$ref":"#/components/schemas/CreditDecisionMetadata"},{"type":"null"}]}},"type":"object"},"CreditDecisionSearchReportData":{"title":"CreditDecisionReportData","description":"CreditDecisionReportData","properties":{"timestamp":{"description":"Decision creation timestamp in ISO8601 format","type":"string"},"proposal":{"$ref":"#/components/schemas/CreditDecisionProposal"},"customer":{"$ref":"#/components/schemas/CreditDecisionCustomer"},"model":{"$ref":"#/components/schemas/CreditDecisionModel"}},"type":"object"},"CreditDecisionProposal":{"title":"CreditDecisionProposal","description":"CreditDecisionProposal","properties":{"code":{"description":"Decision code. 0 = No, 1 = Consider, 2 = Yes","type":"string"},"text":{"description":"Decision described in text","type":"string"},"factor":{"type":"array","items":{"$ref":"#/components/schemas/CreditDecisionReportFactor"}}},"type":"object"},"CreditDecisionReportFactor":{"title":"CreditDecisionReportResponse","description":"CreditDecisionReportResponse","properties":{"code":{"description":"Factor code","type":"string"},"text":{"description":"Factor described in text.","type":"string"}},"type":"object"},"CreditDecisionCustomer":{"title":"CreditDecisionCustomer","description":"CreditDecisionCustomer","properties":{"name":{"description":"Customer name","type":["string","null"]},"businessid":{"description":"Company businessid","type":["string","null"]},"ssn":{"description":"Person sosial security number","type":["string","null"]}},"type":"object"},"CreditDecisionModel":{"title":"CreditDecisionModel","description":"CreditDecisionModel","properties":{"name":{"description":"Model name","type":"string"},"code":{"description":"Model code","type":"string"}},"type":"object"},"CreditDecisionMetadata":{"title":"CreditDecisionMetadata","description":"CreditDecisionMetadata","properties":{"next_cursor":{"description":"Cursor for pagination to identify edge for next page. This value is provided in the 'response_metadata' object 'next_cursor' property.","type":"string"}},"type":"object"},"CreditDecisionError":{"title":"CreditDecisionError","description":"CreditDecisionError","properties":{"errorId":{"type":"integer"},"errorText":{"type":"string"}},"type":"object"}}},"paths":{"/creditdecision/search":{"post":{"tags":["creditdecision"],"summary":"Search from exiting decisions","operationId":"1077ea5372c5b56943a3f3b9ce1422c4","requestBody":{"description":"CreditDecisionReportRequest","required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreditDecisionReportRequest"}}}},"responses":{"201":{"description":"Successful operation","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreditDecisionSearchReportResponse"}}}},"400":{"description":"Bad request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreditDecisionError"}}}}}}}}}
```

## GET /creditdecision/browse

> Browse exiting decisions

```json
{"openapi":"3.1.0","info":{"title":"Ropo One","version":"1.0.0"},"tags":[{"name":"creditdecision","description":"Credit Decision"}],"servers":[{"url":"/rest","description":"Ropo One"}],"security":[{"bearerAuth":[]}],"components":{"securitySchemes":{"bearerAuth":{"type":"http","bearerFormat":"JWT","scheme":"bearer"}},"schemas":{"CreditDecisionSearchReportResponse":{"title":"CreditDecisionSearchReportResponse","description":"CreditDecisionSearchReportResponse","properties":{"created_at":{"description":"Event creation timestamp in ISO8601 format","type":"string","format":"date"},"data":{"type":"array","items":{"$ref":"#/components/schemas/CreditDecisionSearchReportData"}},"metadata":{"oneOf":[{"$ref":"#/components/schemas/CreditDecisionMetadata"},{"type":"null"}]}},"type":"object"},"CreditDecisionSearchReportData":{"title":"CreditDecisionReportData","description":"CreditDecisionReportData","properties":{"timestamp":{"description":"Decision creation timestamp in ISO8601 format","type":"string"},"proposal":{"$ref":"#/components/schemas/CreditDecisionProposal"},"customer":{"$ref":"#/components/schemas/CreditDecisionCustomer"},"model":{"$ref":"#/components/schemas/CreditDecisionModel"}},"type":"object"},"CreditDecisionProposal":{"title":"CreditDecisionProposal","description":"CreditDecisionProposal","properties":{"code":{"description":"Decision code. 0 = No, 1 = Consider, 2 = Yes","type":"string"},"text":{"description":"Decision described in text","type":"string"},"factor":{"type":"array","items":{"$ref":"#/components/schemas/CreditDecisionReportFactor"}}},"type":"object"},"CreditDecisionReportFactor":{"title":"CreditDecisionReportResponse","description":"CreditDecisionReportResponse","properties":{"code":{"description":"Factor code","type":"string"},"text":{"description":"Factor described in text.","type":"string"}},"type":"object"},"CreditDecisionCustomer":{"title":"CreditDecisionCustomer","description":"CreditDecisionCustomer","properties":{"name":{"description":"Customer name","type":["string","null"]},"businessid":{"description":"Company businessid","type":["string","null"]},"ssn":{"description":"Person sosial security number","type":["string","null"]}},"type":"object"},"CreditDecisionModel":{"title":"CreditDecisionModel","description":"CreditDecisionModel","properties":{"name":{"description":"Model name","type":"string"},"code":{"description":"Model code","type":"string"}},"type":"object"},"CreditDecisionMetadata":{"title":"CreditDecisionMetadata","description":"CreditDecisionMetadata","properties":{"next_cursor":{"description":"Cursor for pagination to identify edge for next page. This value is provided in the 'response_metadata' object 'next_cursor' property.","type":"string"}},"type":"object"},"CreditDecisionError":{"title":"CreditDecisionError","description":"CreditDecisionError","properties":{"errorId":{"type":"integer"},"errorText":{"type":"string"}},"type":"object"}}},"paths":{"/creditdecision/browse":{"get":{"tags":["creditdecision"],"summary":"Browse exiting decisions","operationId":"ba7684de39041c6519fc2e3989d72f83","parameters":[{"name":"limit","in":"query","description":"Request item limit to be returned. Recommended values are 100 or 200, maximum is 1000.","required":false,"schema":{"type":"integer"}},{"name":"dir","in":"query","description":"Sort direction. Allowed values are 'ASC' or 'DESC'. ASC returns items from oldest to newest (default). DESC returns items from newest to oldest.","required":false,"schema":{"type":"string"}},{"name":"cursor","in":"query","description":"Cursor for pagination to identify edge for next page. This value is provided in the 'response_metadata' object 'next_cursor' property.","required":false,"schema":{"type":"string"}}],"responses":{"201":{"description":"Successful operation","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreditDecisionSearchReportResponse"}}}},"400":{"description":"Bad request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreditDecisionError"}}}}}}}}}
```


---

# 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/creditdecision.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.
