Add an Order to an Item

Use the following details to add an Order to an Item using REST interface:

HTTP Method

POST

Endpoint URL

See the REST Service Endpoint topic for more details.

Resource

/item/{id}/order

Request Parameters

Provide values for the following parameters:

Parameter Name Data Type Mandatory
id string Yes
id string No
lineAction string No
lineActionMode string No
lineNumber string No
orderDate dateTime No
orderRef string No
planItemAction string No
planItemId string No
sid No
stringcomments string No

Request Model

Media Type: application/json

{
  "id": "string",
  "lineAction": "string",
  "lineActionMode": "string",
  "lineNumber": "string",
  "orderDate": "2016-07-31T05:17:58.828Z",
  "orderRef": "string",
  "planItemAction": "string",
  "planItemId": "string",
  "sid": 0,
  "stringComments": [
    "string"
  ]
}

Response Model

{
  "data": {
    "id": "string",
    "lineAction": "string",
    "lineActionMode": "string",
    "lineNumber": "string",
    "orderDate": "2016-07-31T05:17:59.001Z",
    "orderRef": "string",
    "planItemAction": "string",
    "planItemId": "string",
    "sid": 0,
    "stringComments": [
      "string"
    ]
  },
  "duration": 0,
  "result": {
    "code": "string",
    "message": "string",
    "params": [
      "string"
    ]
  },
  "startTimestampMS": 0
}

Response Codes and Descriptions

Response Code Description
201 Created
401 Unauthorized
403 Forbidden
404 Not Found