GET/Orders/{orderId}/versions
Lists the order's revisions, newest first, with number, status, declared status (Draft, Sent or Confirmed), who
created and sent each, when it was sent and first sent, how many documents priced it, and its confirmations in
order (an undone one stays, with who undid it and when). The snapshot itself is not included; use
Orders_GetOrderVersion. Works the same on an organization-level order (org token, resource inventory read or
edit), and on an event order of the organization's events (org token, order view).
Path Parameters
| Field | Type | Required | Description |
|---|
| orderId | uuid | Required | |
Response
Type: GetOrderVersionResponse[]
GetOrderVersionResponse
| Field | Type | Description |
|---|
| id | uuid | |
| number | integer | |
| status | string| null | |
| declaredStatus | string| null | |
| createdAt | date-time | |
| createdByUserId | uuid| null | |
| sentAt | date-time| null | |
| sentByUserId | uuid| null | |
| firstSentAt | date-time| null | |
| documentCount | integer | |
| confirmations | GetOrderVersionResponseConfirmationEntry[]| null | |
| version | GetOrderVersionResponsePayload | |
GetOrderVersionResponseConfirmationEntry
| Field | Type | Description |
|---|
| confirmedAt | date-time | |
| byName | string| null | |
| source | string| null | |
| note | string| null | |
| unconfirmedAt | date-time| null | |
| unconfirmedByName | string| null | |
GetOrderVersionResponsePayload
| Field | Type | Description |
|---|
| orderName | string| null | |
| groups | GetOrderVersionResponsePayloadGroup[]| null | |
| lines | GetOrderVersionResponsePayloadLine[]| null | |
| expenseLines | GetOrderVersionResponsePayloadExpenseLine[]| null | |
| scheduleBlocks | GetOrderVersionResponsePayloadBlock[]| null | |
GetOrderVersionResponsePayloadGroup
| Field | Type | Description |
|---|
| id | uuid | |
| name | string| null | |
| notes | string| null | |
| index | integer | |
GetOrderVersionResponsePayloadLine
| Field | Type | Description |
|---|
| id | uuid | |
| needId | uuid | |
| resourceTypeName | string| null | |
| lineItemLabelTemplate | string| null | |
| resourceVariantName | string| null | |
| resourceName | string| null | |
| disposition | string| null | |
| startDateTime | date-time| null | |
| endDateTime | date-time| null | |
| quantity | number | |
| unitAmount | number| null | |
| lineTotal | number| null | |
| ratePeriod | string| null | |
| resolvedRateCardId | uuid| null | |
| fills | GetOrderVersionResponsePayloadFill[]| null | |
| groupId | uuid| null | |
| index | integer | |
| showScheduleDetail | boolean | |
| properties | GetOrderVersionResponsePayloadProperty[]| null | |
GetOrderVersionResponsePayloadExpenseLine
| Field | Type | Description |
|---|
| id | uuid | |
| description | string| null | |
| quantity | number | |
| unitAmount | number| null | |
| lineTotal | number| null | |
| groupId | uuid| null | |
| index | integer | |
GetOrderVersionResponsePayloadBlock
| Field | Type | Description |
|---|
| id | uuid | |
| needId | uuid | |
| name | string| null | |
| typeName | string| null | |
| start | date-time | |
| end | date-time | |
| areaName | string| null | |
| collaboratorName | string| null | |