Skip to main content
Version: v2023.18.0

GET a comparison order

This API allows you to retrieve a comparison order previously requested.

API technical description

Entry point:

GET /comparisons/<comparisonOrderId>

Resource path:

VariableTypeRequiredDescription
comparisonOrderIdStringyesThe ID of a comparison order to get.

Query param:

VariableTypeRequiredDescription
timeoutMsStringnoThe maximum waiting time before getting the comparison order.

Response:

AttributeTypeDescription
comparisonOderComparisonOrderComparison order.

Examples

Retrieve a comparison order

The call below generates a request to retrieve the comparison order with id 123e4567-e89b-12d3-a456-426614174000.

curl -X 'GET' \
'http://localhost:8761/comparisons/123e4567-e89b-12d3-a456-426614174000?timeoutMs=6000' \
-H 'accept: */*'

Response sample:

{
"comparisonOrderId": {
"id": "string"
},
"currentState": "QUEUED",
"errorMessage": "string",
"fuzz": 0,
"highlightColor": "string",
"leftDocumentId": "string",
"lowlightColor": "string",
"processedDate": "2023-06-19T15:17:14.454Z",
"processingTime": 0,
"queuedDate": "2023-06-19T15:17:14.454Z",
"queuedTime": 0,
"rightDocumentId": "string",
"targetDocumentId": "string"
}