# Schemas

## The PartnerDocuments object

```json
{"openapi":"3.0.1","info":{"title":"Partner Documents","version":"1.0"},"components":{"schemas":{"PartnerDocuments":{"title":"PartnerDocuments","type":"object","properties":{"data":{"type":"array","description":"Array of documents","items":{"$ref":"#/components/schemas/PartnerDocument"}},"pagination":{"$ref":"#/components/schemas/Pagination"}},"required":["data","pagination"]},"PartnerDocument":{"type":"object","properties":{"documentId":{"type":"string","format":"uuid","readOnly":true},"size":{"type":"integer","description":"file size in kB","readOnly":true},"version":{"type":"integer","description":"document version","readOnly":true},"validFrom":{"type":"string","format":"date"},"validUntil":{"type":"string","format":"date"},"name":{"type":"string","maxLength":255},"type":{"$ref":"#/components/schemas/PartnerDocumentTypeEnum"},"description":{"type":"string","minLength":1,"maxLength":255},"createdOn":{"type":"string","format":"date-time","readOnly":true},"modifiedOn":{"type":"string","format":"date-time","readOnly":true}},"required":["createdOn","documentId","modifiedOn","name","size","type","version"],"title":"Document"},"PartnerDocumentTypeEnum":{"title":"PartnerDocumentTypeEnum","description":"This list may change in the future.","type":"string","enum":["TERMS_AND_CONDITIONS","DATA_PRIVACY_POLICY","KIID","RISK_INFORMATION","CONSUMER_INFORMATION","PRODUCT_TERMS_AND_CONDITIONS"]},"Pagination":{"title":"Pagination","type":"object","properties":{"cursor":{"type":"string","description":"String value used for pagination, which should be set in next page request."},"limit":{"type":"integer","description":"Maximum number of returned items"}},"required":["cursor","limit"]}}}}
```

## The PartnerDocument object

```json
{"openapi":"3.0.1","info":{"title":"Partner Documents","version":"1.0"},"components":{"schemas":{"PartnerDocument":{"type":"object","properties":{"documentId":{"type":"string","format":"uuid","readOnly":true},"size":{"type":"integer","description":"file size in kB","readOnly":true},"version":{"type":"integer","description":"document version","readOnly":true},"validFrom":{"type":"string","format":"date"},"validUntil":{"type":"string","format":"date"},"name":{"type":"string","maxLength":255},"type":{"$ref":"#/components/schemas/PartnerDocumentTypeEnum"},"description":{"type":"string","minLength":1,"maxLength":255},"createdOn":{"type":"string","format":"date-time","readOnly":true},"modifiedOn":{"type":"string","format":"date-time","readOnly":true}},"required":["createdOn","documentId","modifiedOn","name","size","type","version"],"title":"Document"},"PartnerDocumentTypeEnum":{"title":"PartnerDocumentTypeEnum","description":"This list may change in the future.","type":"string","enum":["TERMS_AND_CONDITIONS","DATA_PRIVACY_POLICY","KIID","RISK_INFORMATION","CONSUMER_INFORMATION","PRODUCT_TERMS_AND_CONDITIONS"]}}}}
```

## The PartnerDocumentData object

```json
{"openapi":"3.0.1","info":{"title":"Partner Documents","version":"1.0"},"components":{"schemas":{"PartnerDocumentData":{"title":"PartnerDocumentData","type":"object","properties":{"name":{"type":"string","maxLength":255},"type":{"$ref":"#/components/schemas/PartnerDocumentTypeEnum"},"description":{"type":"string","minLength":1,"maxLength":255}},"required":["name","type"]},"PartnerDocumentTypeEnum":{"title":"PartnerDocumentTypeEnum","description":"This list may change in the future.","type":"string","enum":["TERMS_AND_CONDITIONS","DATA_PRIVACY_POLICY","KIID","RISK_INFORMATION","CONSUMER_INFORMATION","PRODUCT_TERMS_AND_CONDITIONS"]}}}}
```

## The PartnerDocumentTypeEnum object

```json
{"openapi":"3.0.1","info":{"title":"Partner Documents","version":"1.0"},"components":{"schemas":{"PartnerDocumentTypeEnum":{"title":"PartnerDocumentTypeEnum","description":"This list may change in the future.","type":"string","enum":["TERMS_AND_CONDITIONS","DATA_PRIVACY_POLICY","KIID","RISK_INFORMATION","CONSUMER_INFORMATION","PRODUCT_TERMS_AND_CONDITIONS"]}}}}
```

## The ErrorMessage object

```json
{"openapi":"3.0.1","info":{"title":"Partner Documents","version":"1.0"},"components":{"schemas":{"ErrorMessage":{"title":"ErrorMessage","type":"object","properties":{"message":{"type":"string"},"responseType":{"type":"string"},"validationString":{"minLength":1,"type":"string"},"requestId":{"type":"string"},"errorCode":{"type":"string","maxLength":255},"errorDetails":{"type":"array","items":{"$ref":"#/components/schemas/ErrorDetails"}}},"required":["message","responseType","requestId"]},"ErrorDetails":{"title":"ErrorDetails","type":"object","properties":{"field":{"type":"string","maxLength":255},"errors":{"type":"array","items":{"$ref":"#/components/schemas/ErrorDetailsExplanation"}}},"required":["field"]},"ErrorDetailsExplanation":{"title":"ErrorDetailsExplanation","type":"object","properties":{"code":{"type":"string","maxLength":255},"parameter":{"type":"string"},"message":{"type":"string"}},"required":["code","message"]}}}}
```
