POST api/Lookup/GetDefaultOrderValues

Gets the default order values for a requisition type. Takes RequisitionType and StockId as arguments. If StockId is not provided, the default stock for requisition type will be used.

Exceptions

ExceptionCondition
InternalServerErrorHttpResponseException

Request Information

URI Parameters

None.

Body Parameters

GetDefaultOrderValuesModel
NameDescriptionTypeAdditional information
CombinedActivityId

Gets or sets combined activity id

string

None.

RequisitionType

Gets or sets requisition type

string

None.

StockId

Gets or sets stock id (optional: if not provided the default from requisition type will be used)

string

None.

TicketId

Gets or sets the ticket id

string

None.

Culture

Gets or sets culture, if not specified we will use culture set on user.

string

None.

Request Formats

application/json, text/json

Sample:
{
  "CombinedActivityId": "sample string 1",
  "RequisitionType": "sample string 2",
  "StockId": "sample string 3",
  "TicketId": "sample string 4",
  "Culture": "sample string 5"
}

application/xml, text/xml

Sample:
<LookupController.GetDefaultOrderValuesModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Rostov.Controllers">
  <Culture xmlns="http://schemas.datacontract.org/2004/07/Rostov.Models">sample string 5</Culture>
  <TicketId xmlns="http://schemas.datacontract.org/2004/07/Rostov.Models">sample string 4</TicketId>
  <CombinedActivityId>sample string 1</CombinedActivityId>
  <RequisitionType>sample string 2</RequisitionType>
  <StockId>sample string 3</StockId>
</LookupController.GetDefaultOrderValuesModel>

application/x-www-form-urlencoded

Sample:

Failed to generate the sample for media type 'application/x-www-form-urlencoded'. Cannot use formatter 'JQueryMvcFormUrlEncodedFormatter' to write type 'GetDefaultOrderValuesModel'.

Response Information

Resource Description

Customer and delivery information along with local stock

DefaultOrderValuesReturnModel
NameDescriptionTypeAdditional information
DefaultOrderValues

Gets or sets default order values

DefaultOrderValuesModel

None.

CombinedPerformanceId

Gets or sets the performance id. If performance monitoring is not turned on this property will not be present or set to null

string

Json null value handling: Ignore

Response Formats

application/json, text/json

Sample:
{
  "DefaultOrderValues": {
    "LocalStockId": "sample string 1",
    "LocalStockName": "sample string 2",
    "InvoiceCustomer": 1,
    "DeliveryCustomer": 1,
    "DeliveryName": "sample string 3",
    "DeliveryAddress": "sample string 4",
    "DeliveryPostalCode": "sample string 5",
    "DeliveryPostalCity": "sample string 6"
  },
  "CombinedPerformanceId": "sample string 1"
}

application/xml, text/xml

Sample:
<DefaultOrderValuesReturnModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Rostov.Models">
  <CombinedPerformanceId>sample string 1</CombinedPerformanceId>
  <DefaultOrderValues>
    <DeliveryAddress>sample string 4</DeliveryAddress>
    <DeliveryCustomer>1</DeliveryCustomer>
    <DeliveryName>sample string 3</DeliveryName>
    <DeliveryPostalCity>sample string 6</DeliveryPostalCity>
    <DeliveryPostalCode>sample string 5</DeliveryPostalCode>
    <InvoiceCustomer>1</InvoiceCustomer>
    <LocalStockId>sample string 1</LocalStockId>
    <LocalStockName>sample string 2</LocalStockName>
  </DefaultOrderValues>
</DefaultOrderValuesReturnModel>