POST api/ParameterMatch/SaveOrderLines
Request Information
URI Parameters
None.
Body Parameters
SaveOrderLinesApiRequestName | Description | Type | Additional information |
---|---|---|---|
OrderId | string |
None. |
|
Lines | Collection of SuggestedOrderLine |
None. |
|
CurrentUserId | string |
None. |
Request Formats
application/json, text/json
Sample:
{ "OrderId": "sample string 1", "Lines": [ { "id": "sample string 1", "name": "sample string 2", "description": "sample string 3", "productId": "sample string 4", "guid": "76f7d179-816e-4ff8-ad85-8d52a9bf0886", "quantity": 6.0, "amount": 7.0, "unit": { "id": "9f3e3a8b-a5bc-406c-a632-f868bf87f1b4", "logicalName": "sample string 2" }, "task": { "createTask": true, "subject": "sample string 2", "description": "sample string 3" }, "isPreApproved": true, "refParameterId": "f30f1be7-77e8-441a-840d-e6e7f9a6d71f", "isTaskOnly": true, "hasAmount": true }, { "id": "sample string 1", "name": "sample string 2", "description": "sample string 3", "productId": "sample string 4", "guid": "76f7d179-816e-4ff8-ad85-8d52a9bf0886", "quantity": 6.0, "amount": 7.0, "unit": { "id": "9f3e3a8b-a5bc-406c-a632-f868bf87f1b4", "logicalName": "sample string 2" }, "task": { "createTask": true, "subject": "sample string 2", "description": "sample string 3" }, "isPreApproved": true, "refParameterId": "f30f1be7-77e8-441a-840d-e6e7f9a6d71f", "isTaskOnly": true, "hasAmount": true } ], "CurrentUserId": "sample string 2" }
application/xml, text/xml
Sample:
<SaveOrderLinesApiRequest xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/PARS.WebApi.Proxy.Models"> <CurrentUserId>sample string 2</CurrentUserId> <Lines xmlns:d2p1="http://schemas.datacontract.org/2004/07/PARS.Web.Common.Model"> <d2p1:SuggestedOrderLine> <d2p1:Amount>7</d2p1:Amount> <d2p1:Description>sample string 3</d2p1:Description> <d2p1:HasAmount>true</d2p1:HasAmount> <d2p1:Id>sample string 1</d2p1:Id> <d2p1:IsPreApproved>true</d2p1:IsPreApproved> <d2p1:IsTaskOnly>true</d2p1:IsTaskOnly> <d2p1:Name>sample string 2</d2p1:Name> <d2p1:ProductGuid>76f7d179-816e-4ff8-ad85-8d52a9bf0886</d2p1:ProductGuid> <d2p1:ProductId>sample string 4</d2p1:ProductId> <d2p1:Quantity>6</d2p1:Quantity> <d2p1:ReferenceParameterId>f30f1be7-77e8-441a-840d-e6e7f9a6d71f</d2p1:ReferenceParameterId> <d2p1:Task> <d2p1:CreateTask>true</d2p1:CreateTask> <d2p1:Description>sample string 3</d2p1:Description> <d2p1:Subject>sample string 2</d2p1:Subject> </d2p1:Task> <d2p1:Unit> <Id>9f3e3a8b-a5bc-406c-a632-f868bf87f1b4</Id> <LogicalName>sample string 2</LogicalName> </d2p1:Unit> </d2p1:SuggestedOrderLine> <d2p1:SuggestedOrderLine> <d2p1:Amount>7</d2p1:Amount> <d2p1:Description>sample string 3</d2p1:Description> <d2p1:HasAmount>true</d2p1:HasAmount> <d2p1:Id>sample string 1</d2p1:Id> <d2p1:IsPreApproved>true</d2p1:IsPreApproved> <d2p1:IsTaskOnly>true</d2p1:IsTaskOnly> <d2p1:Name>sample string 2</d2p1:Name> <d2p1:ProductGuid>76f7d179-816e-4ff8-ad85-8d52a9bf0886</d2p1:ProductGuid> <d2p1:ProductId>sample string 4</d2p1:ProductId> <d2p1:Quantity>6</d2p1:Quantity> <d2p1:ReferenceParameterId>f30f1be7-77e8-441a-840d-e6e7f9a6d71f</d2p1:ReferenceParameterId> <d2p1:Task> <d2p1:CreateTask>true</d2p1:CreateTask> <d2p1:Description>sample string 3</d2p1:Description> <d2p1:Subject>sample string 2</d2p1:Subject> </d2p1:Task> <d2p1:Unit> <Id>9f3e3a8b-a5bc-406c-a632-f868bf87f1b4</Id> <LogicalName>sample string 2</LogicalName> </d2p1:Unit> </d2p1:SuggestedOrderLine> </Lines> <OrderId>sample string 1</OrderId> </SaveOrderLinesApiRequest>
application/x-www-form-urlencoded
Sample:
Sample not available.
Response Information
Resource Description
SaveOrderLinesApiResponseName | Description | Type | Additional information |
---|---|---|---|
orderId | globally unique identifier |
None. |
|
result | boolean |
None. |
Response Formats
application/json, text/json
Sample:
{ "orderId": "0dd457e7-9e16-466c-9a4f-0086c66bc30d", "result": true }
application/xml, text/xml
Sample:
<SaveOrderLinesApiResponse xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/PARS.WebApi.Proxy.Models"> <OrderId>0dd457e7-9e16-466c-9a4f-0086c66bc30d</OrderId> <Result>true</Result> </SaveOrderLinesApiResponse>