# Objects / Orders

# Orders

**Object**
## OrderActivityGeneralComment

### Implements
*List of interfaces this object implements*

- [OrderActivityContentInterface](/documentation/Interfaces/Order-Activity-Content-Interface#OrderActivityContentInterface)

| Fields | Type | Description |
| --- | --- | --- |
| type | [OrderActivityTypeEnum!](/documentation/Enums/Orders#OrderActivityTypeEnum) | The type of activity that was performed |
| comment | *String!* | The comment that was made |



**Object**
## OrderActivityLineComment

### Implements
*List of interfaces this object implements*

- [OrderActivityContentInterface](/documentation/Interfaces/Order-Activity-Content-Interface#OrderActivityContentInterface)

| Fields | Type | Description |
| --- | --- | --- |
| type | [OrderActivityTypeEnum!](/documentation/Enums/Orders#OrderActivityTypeEnum) | The type of activity that was performed |
| product | [Product!](/documentation/Objects/Products#Product) | The product that was commented on |
| comment | *String!* | The comment that was made |



**Object**
## OrderActivityOrderDetailUpdate

### Implements
*List of interfaces this object implements*

- [OrderActivityContentInterface](/documentation/Interfaces/Order-Activity-Content-Interface#OrderActivityContentInterface)

| Fields | Type | Description |
| --- | --- | --- |
| type | [OrderActivityTypeEnum!](/documentation/Enums/Orders#OrderActivityTypeEnum) | The type of activity that was performed |
| detail | *String!* | The detail that was changed (in a human readable format) |
| old | *String!* | The value the detail was changed from |
| new | *String!* | The value the detail was changed to |



**Object**
## OrderActivityOrderLineUpdate

### Implements
*List of interfaces this object implements*

- [OrderActivityContentInterface](/documentation/Interfaces/Order-Activity-Content-Interface#OrderActivityContentInterface)

| Fields | Type | Description |
| --- | --- | --- |
| type | [OrderActivityTypeEnum!](/documentation/Enums/Orders#OrderActivityTypeEnum) | The type of activity that was performed |
| product | [Product!](/documentation/Objects/Products#Product) | The product that was modified on the order |
| old | [JSON](/documentation/Types/JSON#JSON) | What the order line was before changes were applied, this is a partial view of the `OrderProduct` type |
| new | [JSON](/documentation/Types/JSON#JSON) | What the order line became after the changes were applied, this is a partial view of the `OrderProduct` type |



**Object**
## OrderActivityReviewAttachmentRemoved

### Implements
*List of interfaces this object implements*

- [OrderActivityContentInterface](/documentation/Interfaces/Order-Activity-Content-Interface#OrderActivityContentInterface)

| Fields | Type | Description |
| --- | --- | --- |
| type | [OrderActivityTypeEnum!](/documentation/Enums/Orders#OrderActivityTypeEnum) | The type of activity that was performed |
| attachment | *String!* | The file that have been removed from the order review |



**Object**
## OrderActivityReviewAttachmentsAdded

### Implements
*List of interfaces this object implements*

- [OrderActivityContentInterface](/documentation/Interfaces/Order-Activity-Content-Interface#OrderActivityContentInterface)

| Fields | Type | Description |
| --- | --- | --- |
| type | [OrderActivityTypeEnum!](/documentation/Enums/Orders#OrderActivityTypeEnum) | The type of activity that was performed |
| attachments | *[String]* | The list of file names that have been attached to the order review |



**Object**
## OrderActivityReviewStatusUpdate

### Implements
*List of interfaces this object implements*

- [OrderActivityContentInterface](/documentation/Interfaces/Order-Activity-Content-Interface#OrderActivityContentInterface)

| Fields | Type | Description |
| --- | --- | --- |
| type | [OrderActivityTypeEnum!](/documentation/Enums/Orders#OrderActivityTypeEnum) | The type of activity that was performed |
| status | [OrderReviewStatusEnum!](/documentation/Enums/Orders#OrderReviewStatusEnum) | The status that the review changed to |



**Object**
## OrderActivityReviewerStatusRemoved

### Implements
*List of interfaces this object implements*

- [OrderActivityContentInterface](/documentation/Interfaces/Order-Activity-Content-Interface#OrderActivityContentInterface)

| Fields | Type | Description |
| --- | --- | --- |
| type | [OrderActivityTypeEnum!](/documentation/Enums/Orders#OrderActivityTypeEnum) | The type of activity that was performed |



**Object**
## OrderActivityReviewerStatusUpdate

### Implements
*List of interfaces this object implements*

- [OrderActivityContentInterface](/documentation/Interfaces/Order-Activity-Content-Interface#OrderActivityContentInterface)

| Fields | Type | Description |
| --- | --- | --- |
| type | [OrderActivityTypeEnum!](/documentation/Enums/Orders#OrderActivityTypeEnum) | The type of activity that was performed |
| status | [OrderReviewerStatusEnum!](/documentation/Enums/Orders#OrderReviewerStatusEnum) | The status applied to the review by the reviewer |



**Object**
## OrderActivity

| Fields | Type | Description |
| --- | --- | --- |
| user | [User!](/documentation/Objects/User#User) | The user who performed the activity |
| content | [OrderActivityContentInterface!](/documentation/Interfaces/Order-Activity-Content-Interface#OrderActivityContentInterface) | The content of the activity |
| processTime | [DateTime!](/documentation/Types/Date-Time#DateTime) | The time the activity was performed |



**Object**
## OrderProduct

| Fields | Type | Description |
| --- | --- | --- |
| caseQuantity | *Float!* | The case quantity on the order |
| orderedQuantity | *Float!* | The quantity that was ordered |
| receivedQuantity | *Float!* | The quantity that was received |
| baseCost | *Float!* | The base cost for the product |
| orderedCost | *Float* | The base cost for when the product was ordered |
| fees | *Float!* | The fees assigned to the product |
| freight | *Float!* | The freight assigned to the product |
| paymentFees | *Float!* | The payment fees assigned to the product |
| rebate | *Float!* | The rebate assigned to the product |
| supplier | [Supplier](/documentation/Objects/Suppliers#Supplier) | The supplier for the product (used when there is no from supplier) |
| supplierCode | *String!* | The supplier code for the product |
| itemsPerWeek | *Float* | The number of items sold per week (only for generated orders) |
| item | [Product!](/documentation/Objects/Products#Product) | The current product |



**Object**
## OrderReceiveResults

| Fields | Type | Description |
| --- | --- | --- |
| review | [OrderReview](/documentation/Objects/Orders#OrderReview) | Returns a review if one was created instead of actioning the order |
| order | [Order!](/documentation/Objects/Orders#Order) | The order that was actioned |



**Object**
## OrderReview

| Fields | Type | Description |
| --- | --- | --- |
| id | [ID!](/documentation/Types/UUID#UUID) | The ID of the review |
| status | [OrderReviewStatusEnum!](/documentation/Enums/Orders#OrderReviewStatusEnum) | The status of the review |
| orderStatus | [OrderReviewForStatusEnum!](/documentation/Enums/Orders#OrderReviewForStatusEnum) | The status of the order this review is for moving to |
| createdBy | [User!](/documentation/Objects/User#User) | The user who created the review |
| createdAt | [DateTime!](/documentation/Types/Date-Time#DateTime) | The time the review was created |
| reviewers | [[OrderReviewer!]!](/documentation/Objects/Orders#OrderReviewer) | A list of users who are reviewing this order |
| attachments | [[MediaAttachment!]!](/documentation/Objects/Media-Attachment#MediaAttachment) | The attachments on the order review |
| order | [Order!](/documentation/Objects/Orders#Order) | The order that this order review is attached to |
| activity | [OrderReviewOrderActivityConnection](#OrderReviewOrderActivityConnection) | The activity which has occurred since the order entered the review phase |

## OrderReviewOrderActivityConnection
#### Object  —  [ConnectionType](/documentation/General/Connections) of [OrderActivity](/documentation/Objects/Orders#OrderActivity)

### Sortable Fields
*Fields from [OrderActivity](/documentation/Objects/Orders#OrderActivity) that can be used to sort the connection items*

- timestamp

| Arguments | Type | Description |
| --- | --- | --- |
| types | [[OrderActivityTypeEnum!]](/documentation/Enums/Orders#OrderActivityTypeEnum) | Filters the type of activities returned |



**Object**
## OrderReviewer

| Fields | Type | Description |
| --- | --- | --- |
| user | [User!](/documentation/Objects/User#User) | The user who is performing the review |
| status | [OrderReviewerStatusEnum!](/documentation/Enums/Orders#OrderReviewerStatusEnum) | The status of who the reviewer views the current review |



**Object**
## OrderSendResults

| Fields | Type | Description |
| --- | --- | --- |
| review | [OrderReview](/documentation/Objects/Orders#OrderReview) | Returns a review if one was created instead of actioning the order |
| orders | [[Order!]!](/documentation/Objects/Orders#Order) | The orders that were actioned |



**Object**
## Order

### Implements
*List of interfaces this object implements*

- [InventoryLogEventInterface](/documentation/Interfaces/Inventory-Log-Event-Interface#InventoryLogEventInterface)

| Fields | Type | Description |
| --- | --- | --- |
| id | [ID!](/documentation/Types/UUID#UUID) | The ID of the order |
| type | [OrderTypeEnum!](/documentation/Enums/Orders#OrderTypeEnum) | The type of order |
| status | [OrderStatusEnum!](/documentation/Enums/Orders#OrderStatusEnum) | The status of the order |
| completed | *Boolean* | Whether the order has been completed or not |
| undergoingReview | *Boolean!* | Whether the order is currently undergoing review |
| to | [OrderAddressInterface](/documentation/Interfaces/Order-Address-Interface#OrderAddressInterface) | Who the order is to |
| from | [OrderAddressInterface](/documentation/Interfaces/Order-Address-Interface#OrderAddressInterface) | Who the order is from |
| orderDate | [Date!](/documentation/Types/Date#Date) | The date for the order |
| dueDate | [Date](/documentation/Types/Date#Date) | The date the order is due to be received or for payment |
| enteredAs | [DefaultOrderTaxEnum](/documentation/Enums/Suppliers#DefaultOrderTaxEnum) | How the costs should be displayed on the order page (Does not represent how the cost values are actually stored) |
| invoiceNumber | *String!* | The order number or invoice number for the order |
| reference | *String!* | The reference for the order |
| notes | *String* | Any public notes relating to the order |
| internalNotes | *String!* | Any internal notes relating to the order |
| includeFreight | *Boolean!* | Whether the total cost of the order includes freight |
| totalCost | *Float* | The total cost of the order |
| lineCount | *Float* | The total number of lines on the order |
| expectedTotal | *Float* | The expected total for the order |
| feePercentage | *Float* | The order fee percentage |
| createdAt | [DateTime](/documentation/Types/Date-Time#DateTime) | The date and time the order was created |
| sentAt | [DateTime](/documentation/Types/Date-Time#DateTime) | The date and time the order was sent |
| receivedAt | [DateTime](/documentation/Types/Date-Time#DateTime) | The date and time the order was received |
| createdBy | [User](/documentation/Objects/User#User) | The user who created the order |
| sentBy | [User](/documentation/Objects/User#User) | The user who sent the order |
| receivedBy | [User](/documentation/Objects/User#User) | The user who received the order |
| mergedInto | [Order](/documentation/Objects/Orders#Order) | Get the order that this is merged into |
| products Deprecated | [[OrderProduct]](/documentation/Objects/Orders#OrderProduct) | The products on the order products has been superseded by productConnection |
| productConnection | [OrderOrderProductConnection](#OrderOrderProductConnection) | The list of products on the order |
| backorderedProducts | [[ProductBackorder!]!](/documentation/Objects/Products#ProductBackorder) | The products which were on backorder for this order |
| reviews | [[OrderReview!]!](/documentation/Objects/Orders#OrderReview) | A list of reviews that have occurred for this order |
| review | [OrderReview!](/documentation/Objects/Orders#OrderReview) | Retrieve details about a specific review for an order |
| attachments | [[MediaAttachment!]!](/documentation/Objects/Media-Attachment#MediaAttachment) | The attachments on the order |

## OrderOrderProductConnection
#### Object  —  [ConnectionType](/documentation/General/Connections) of [OrderProduct](/documentation/Objects/Orders#OrderProduct)

### Sortable Fields
*Fields from [OrderProduct](/documentation/Objects/Orders#OrderProduct) that can be used to sort the connection items*

- name
- createdAt
- updatedAt

| Arguments | Type | Description |
| --- | --- | --- |
| id | [ID](/documentation/Types/UUID#UUID) | The ID of the product to return (used for filtering the products) |