ProJob - Get one order
API Url
Used for loading a single order
GET
http://localhost:16010/ProMarkREST/rest/ProJob/orders/{order_id}
Permissions: user
Path parameters
| Field | Type | Description |
|---|---|---|
| order_id | String | Order id |
Success 200
| Field | Type | Description |
|---|---|---|
| response | Object | Main object containing the response data. |
| data | Object | Object containing the requested data. |
| orders | Object[] | Collection of orders. |
| description | String | Order description. |
| id | String | Order Id. |
| itemDescription | String | Item description |
| itemId | String | Item id |
| lotId | String | Lot id |
| orderNo | String | Order number |
| orderTypeDescription | String | Order type description |
| orderTypeId | String | Order type id |
| plannedEnd | datetime | Planned end time |
| plannedStart | datetime | Planned start time |
| ref1 | String | Customer reference 1 |
| ref2 | String | Customer reference 2 |
| ref3 | String | Customer reference 3 |
| responsible | String | Who is responsible for the order. |
messageoptional | Object | Object containing response messages. |
| code | Number | Message code. |
| text | String | Message text. |
| type | String | Type of message. "warning""info" |
Success example:
HTTP/1.1 200 OK{"response": {"data": {"orders": [{"id": "00033124","description": "test order B","orderNo": "00033124","lotId": "C","itemId": "A","itemDescription": "Vare beskriv","plannedStart": "2003-11-01T12:00:00.000","plannedEnd": "2004-11-20T18:00:00.000","orderTypeId": "BH","orderTypeDescription": "Bo's ordretype"}]},"errorCode": 0,"errorMessage": ""}}
Error 4xx
| Field | Type | Description |
|---|---|---|
| response | Object | Main object containing the response data. |
| data | Object | Object containing the requested data (empty). |
| errorCode | Number | Error code. |
| errorMessage | String | Error description. |