POST api/TimeOrderLines/{orderNo}

Request Information

URI Parameters

NameDescriptionTypeAdditional information
orderNo

integer

Required

Body Parameters

PostTimeOrderLine
NameDescriptionTypeAdditional information
TransactionDate

integer

None.

ProductNo

string

None.

EmployeeNo

integer

None.

Description

string

None.

ProjectNo

string

None.

Quantity

decimal number

None.

CostPrice

decimal number

None.

Comment

string

None.

Request Formats

application/json, text/json

Sample:
{
  "transactionDate": 1,
  "productNo": "sample string 2",
  "employeeNo": 3,
  "description": "sample string 4",
  "projectNo": "sample string 5",
  "quantity": 6.0,
  "costPrice": 7.0,
  "comment": "sample string 8"
}

application/xml, text/xml

Sample:
<PostTimeOrderLine xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/VismaBusinessWebAPI.Models.WebAPI.Controllers.TimeOrderLinesController.Request">
  <Comment xmlns="http://schemas.datacontract.org/2004/07/VismaBusinessWebAPI.Models.WebAPI.Controllers.TimeOrderLinesController">sample string 8</Comment>
  <CostPrice xmlns="http://schemas.datacontract.org/2004/07/VismaBusinessWebAPI.Models.WebAPI.Controllers.TimeOrderLinesController">7</CostPrice>
  <Description xmlns="http://schemas.datacontract.org/2004/07/VismaBusinessWebAPI.Models.WebAPI.Controllers.TimeOrderLinesController">sample string 4</Description>
  <EmployeeNo xmlns="http://schemas.datacontract.org/2004/07/VismaBusinessWebAPI.Models.WebAPI.Controllers.TimeOrderLinesController">3</EmployeeNo>
  <ProductNo xmlns="http://schemas.datacontract.org/2004/07/VismaBusinessWebAPI.Models.WebAPI.Controllers.TimeOrderLinesController">sample string 2</ProductNo>
  <ProjectNo xmlns="http://schemas.datacontract.org/2004/07/VismaBusinessWebAPI.Models.WebAPI.Controllers.TimeOrderLinesController">sample string 5</ProjectNo>
  <Quantity xmlns="http://schemas.datacontract.org/2004/07/VismaBusinessWebAPI.Models.WebAPI.Controllers.TimeOrderLinesController">6</Quantity>
  <TransactionDate xmlns="http://schemas.datacontract.org/2004/07/VismaBusinessWebAPI.Models.WebAPI.Controllers.TimeOrderLinesController">1</TransactionDate>
</PostTimeOrderLine>

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

Resource Description

TimeOrderLine
NameDescriptionTypeAdditional information
LineNo

integer

None.

TransactionDate

integer

None.

ProductNo

string

None.

EmployeeNo

integer

None.

Description

string

None.

ProjectNo

string

None.

Quantity

decimal number

None.

CostPrice

decimal number

None.

Comment

string

None.

Response Formats

application/json, text/json

Sample:
{
  "lineNo": 1,
  "transactionDate": 2,
  "productNo": "sample string 3",
  "employeeNo": 4,
  "description": "sample string 5",
  "projectNo": "sample string 6",
  "quantity": 7.0,
  "costPrice": 8.0,
  "comment": "sample string 9"
}

application/xml, text/xml

Sample:
<TimeOrderLine xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/VismaBusinessWebAPI.Models.WebAPI.Controllers.TimeOrderLinesController.Response">
  <Comment xmlns="http://schemas.datacontract.org/2004/07/VismaBusinessWebAPI.Models.WebAPI.Controllers.TimeOrderLinesController">sample string 9</Comment>
  <CostPrice xmlns="http://schemas.datacontract.org/2004/07/VismaBusinessWebAPI.Models.WebAPI.Controllers.TimeOrderLinesController">8</CostPrice>
  <Description xmlns="http://schemas.datacontract.org/2004/07/VismaBusinessWebAPI.Models.WebAPI.Controllers.TimeOrderLinesController">sample string 5</Description>
  <EmployeeNo xmlns="http://schemas.datacontract.org/2004/07/VismaBusinessWebAPI.Models.WebAPI.Controllers.TimeOrderLinesController">4</EmployeeNo>
  <ProductNo xmlns="http://schemas.datacontract.org/2004/07/VismaBusinessWebAPI.Models.WebAPI.Controllers.TimeOrderLinesController">sample string 3</ProductNo>
  <ProjectNo xmlns="http://schemas.datacontract.org/2004/07/VismaBusinessWebAPI.Models.WebAPI.Controllers.TimeOrderLinesController">sample string 6</ProjectNo>
  <Quantity xmlns="http://schemas.datacontract.org/2004/07/VismaBusinessWebAPI.Models.WebAPI.Controllers.TimeOrderLinesController">7</Quantity>
  <TransactionDate xmlns="http://schemas.datacontract.org/2004/07/VismaBusinessWebAPI.Models.WebAPI.Controllers.TimeOrderLinesController">2</TransactionDate>
  <LineNo>1</LineNo>
</TimeOrderLine>