POST api/ParameterMatch
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": "d38e6af1-3aec-40f2-bd1e-f6ea2bfe217c", "quantity": 6.0, "amount": 7.0, "unit": { "id": "a8526496-5247-4746-9e43-dc115da7e686", "logicalName": "sample string 2" }, "task": { "createTask": true, "subject": "sample string 2", "description": "sample string 3" }, "isPreApproved": true, "refParameterId": "3117daf9-565b-4bf4-8a05-d56e2cdfb14a", "isTaskOnly": true, "hasAmount": true }, { "id": "sample string 1", "name": "sample string 2", "description": "sample string 3", "productId": "sample string 4", "guid": "d38e6af1-3aec-40f2-bd1e-f6ea2bfe217c", "quantity": 6.0, "amount": 7.0, "unit": { "id": "a8526496-5247-4746-9e43-dc115da7e686", "logicalName": "sample string 2" }, "task": { "createTask": true, "subject": "sample string 2", "description": "sample string 3" }, "isPreApproved": true, "refParameterId": "3117daf9-565b-4bf4-8a05-d56e2cdfb14a", "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>d38e6af1-3aec-40f2-bd1e-f6ea2bfe217c</d2p1:ProductGuid> <d2p1:ProductId>sample string 4</d2p1:ProductId> <d2p1:Quantity>6</d2p1:Quantity> <d2p1:ReferenceParameterId>3117daf9-565b-4bf4-8a05-d56e2cdfb14a</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>a8526496-5247-4746-9e43-dc115da7e686</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>d38e6af1-3aec-40f2-bd1e-f6ea2bfe217c</d2p1:ProductGuid> <d2p1:ProductId>sample string 4</d2p1:ProductId> <d2p1:Quantity>6</d2p1:Quantity> <d2p1:ReferenceParameterId>3117daf9-565b-4bf4-8a05-d56e2cdfb14a</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>a8526496-5247-4746-9e43-dc115da7e686</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": "8e12c5e8-a920-49a9-aebb-61a0f6c33fa0", "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>8e12c5e8-a920-49a9-aebb-61a0f6c33fa0</OrderId> <Result>true</Result> </SaveOrderLinesApiResponse>