All pages
Powered by GitBook
1 of 2

Loading...

Loading...

Schemas

Partner Documents

Get Partner Documents

get
/partner-documents

Get partner documents not connected to single customer. For example reports. By default, it returns last 20 documents. It is possible to send query parameters to adjust the result.

Authorizations
OAuth2clientCredentialsRequired
Token URL:
Query parameters
documentTypestring · enumOptional

Type of document. For example TERMS_AND_CONDITIONS.

Possible values:
startDatestring · date-timeOptional

Beginning of the range. Document create date time is after this parameter.

endDatestring · date-timeOptional

End of the range. Document create date time is before this parameter.

isValidbooleanOptional

Used to filter active documents.

cursorstringOptional

String value used for pagination

limitinteger · min: 1Required

Maximum number of items to return

Default: 20

Get Partner Document

get
/partner-documents/{documentId}

Get single partner document for given documentId.

Authorizations
OAuth2clientCredentialsRequired
Token URL:
Path parameters
documentIdstring · uuidRequired

Id of document

Responses
200

OK

application/json
404

Not Found

application/json
get
/partner-documents/{documentId}

Download document file

get
/partner-documents/{documentId}/file

Download document file for given documentId.

Authorizations
OAuth2clientCredentialsRequired
Token URL:
Path parameters
documentIdstring · uuidRequired

Id of document

Responses
200

OK

application/octet-stream
Responsestring · binary
404

Not Found

application/json
get
/partner-documents/{documentId}/file
Responses
200

OK

application/json
404

Not Found

application/json
get
/partner-documents

No content

GET /partner-documents?limit=20 HTTP/1.1
Host: tvda-api.platform-test.tradevest.ai
Authorization: Bearer YOUR_OAUTH2_TOKEN
Accept: */*
{
  "documentId": "123e4567-e89b-12d3-a456-426614174000",
  "size": 1,
  "version": 1,
  "validFrom": "2025-12-14",
  "validUntil": "2025-12-14",
  "name": "text",
  "type": "TERMS_AND_CONDITIONS",
  "description": "text",
  "createdOn": "2025-12-14T18:27:10.007Z",
  "modifiedOn": "2025-12-14T18:27:10.007Z"
}
GET /partner-documents/{documentId} HTTP/1.1
Host: tvda-api.platform-test.tradevest.ai
Authorization: Bearer YOUR_OAUTH2_TOKEN
Accept: */*
GET /partner-documents/{documentId}/file HTTP/1.1
Host: tvda-api.platform-test.tradevest.ai
Authorization: Bearer YOUR_OAUTH2_TOKEN
Accept: */*
{
  "data": [
    {
      "documentId": "123e4567-e89b-12d3-a456-426614174000",
      "size": 1,
      "version": 1,
      "validFrom": "2025-12-14",
      "validUntil": "2025-12-14",
      "name": "text",
      "type": "TERMS_AND_CONDITIONS",
      "description": "text",
      "createdOn": "2025-12-14T18:27:10.007Z",
      "modifiedOn": "2025-12-14T18:27:10.007Z"
    }
  ],
  "pagination": {
    "cursor": "text",
    "limit": 1
  }
}