POST v1/Order/OrderVersionDetailInsert

Adds a service line item to an order version

This is secure method and requires below attributes in header

Authorization: Authorize Token

Request Information

URI Parameters

None.

Body Parameters

OrderVersionDetail
NameDescriptionTypeAdditional information
OrderVersionDetailID

Required for OrderVersionDetailUpdate. Ignored for OrderVersionDetailInsert.

integer

None.

VersionID

Required for OrderVersionDetailInsert. Ignored for OrderVersionDetailUpdate.

integer

None.

ServiceID

Required for OrderVersionDetailInsert. Ignored for OrderVersionDetailUpdate.

integer

None.

ServiceName

Optional.

string

None.

Quantity

Optional.

decimal number

None.

UnitPrice

Optional.

decimal number

None.

Taxable

Ignored for OrderVersionDetailUpdate. Optional for OrderVersionDetailInsert.

boolean

None.

RunRate

Ignored for OrderVersionDetailInsert. Optional for OrderVersionDetailUpdate.

decimal number

None.

QtyDone

Ignored for OrderVersionDetailInsert. Optional for OrderVersionDetailUpdate.

decimal number

None.

Complete

Ignored for OrderVersionDetailInsert. Optional for OrderVersionDetailUpdate.

boolean

None.

SetupTime

Ignored for OrderVersionDetailInsert. Optional for OrderVersionDetailUpdate.

decimal number

None.

Priority

Ignored for OrderVersionDetailUpdate. Optional for OrderVersionDetailInsert.

integer

None.

ServiceHyperlink

Optional.

string

None.

FileLocation

Optional.

string

None.

Comment

Optional.

string

None.

OrderServiceUDFList

StandardUDFList

None.

Request Formats

application/json, text/json

Sample:
{
  "OrderVersionDetailID": 1,
  "VersionID": 1,
  "ServiceID": 1,
  "ServiceName": "sample string 3",
  "Quantity": 1.0,
  "UnitPrice": 1.0,
  "Taxable": true,
  "RunRate": 1.0,
  "QtyDone": 1.0,
  "Complete": true,
  "SetupTime": 1.0,
  "Priority": 1,
  "ServiceHyperlink": "sample string 30",
  "FileLocation": "sample string 31",
  "Comment": "sample string 35",
  "OrderServiceUDFList": {
    "UDF1": "sample string 21",
    "UDF2": "sample string 22",
    "UDF3": "sample string 23",
    "UDF4": "sample string 24",
    "UDF5": "sample string 25",
    "UDF6": "sample string 26",
    "UDF7": "sample string 27",
    "UDF8": "sample string 28",
    "UDF9": "sample string 29",
    "UDF10": "sample string 30",
    "UDF11": "sample string 1",
    "UDF12": "sample string 2",
    "UDF13": "sample string 3",
    "UDF14": "sample string 4",
    "UDF15": "sample string 5",
    "UDF16": "sample string 6",
    "UDF17": "sample string 7",
    "UDF18": "sample string 8",
    "UDF19": "sample string 9",
    "UDF20": "sample string 10",
    "UDF21": "sample string 11",
    "UDF22": "sample string 12",
    "UDF23": "sample string 13",
    "UDF24": "sample string 14",
    "UDF25": "sample string 15",
    "UDF26": "sample string 16",
    "UDF27": "sample string 17",
    "UDF28": "sample string 18",
    "UDF29": "sample string 19",
    "UDF30": "sample string 20"
  }
}

application/xml, text/xml

Sample:
<OrderVersionDetail xmlns:i="http://www.w3.org/2001/XMLSchema-instance">
  <OrderVersionDetailID>1</OrderVersionDetailID>
  <VersionID>1</VersionID>
  <ServiceID>1</ServiceID>
  <ServiceName>sample string 3</ServiceName>
  <Quantity>1</Quantity>
  <UnitPrice>1</UnitPrice>
  <Taxable>true</Taxable>
  <RunRate>1</RunRate>
  <QtyDone>1</QtyDone>
  <Complete>true</Complete>
  <SetupTime>1</SetupTime>
  <Priority>1</Priority>
  <ServiceHyperlink>sample string 30</ServiceHyperlink>
  <FileLocation>sample string 31</FileLocation>
  <Comment>sample string 35</Comment>
  <OrderServiceUDFList>
    <UDF1>sample string 21</UDF1>
    <UDF2>sample string 22</UDF2>
    <UDF3>sample string 23</UDF3>
    <UDF4>sample string 24</UDF4>
    <UDF5>sample string 25</UDF5>
    <UDF6>sample string 26</UDF6>
    <UDF7>sample string 27</UDF7>
    <UDF8>sample string 28</UDF8>
    <UDF9>sample string 29</UDF9>
    <UDF10>sample string 30</UDF10>
    <UDF11>sample string 1</UDF11>
    <UDF12>sample string 2</UDF12>
    <UDF13>sample string 3</UDF13>
    <UDF14>sample string 4</UDF14>
    <UDF15>sample string 5</UDF15>
    <UDF16>sample string 6</UDF16>
    <UDF17>sample string 7</UDF17>
    <UDF18>sample string 8</UDF18>
    <UDF19>sample string 9</UDF19>
    <UDF20>sample string 10</UDF20>
    <UDF21>sample string 11</UDF21>
    <UDF22>sample string 12</UDF22>
    <UDF23>sample string 13</UDF23>
    <UDF24>sample string 14</UDF24>
    <UDF25>sample string 15</UDF25>
    <UDF26>sample string 16</UDF26>
    <UDF27>sample string 17</UDF27>
    <UDF28>sample string 18</UDF28>
    <UDF29>sample string 19</UDF29>
    <UDF30>sample string 20</UDF30>
  </OrderServiceUDFList>
</OrderVersionDetail>

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 'OrderVersionDetail'.

Response Information

Response Formats

application/json, text/json

Sample:
{
  "OrderVersionDetailID": 1
}

application/xml, text/xml

Sample:
<OrderVersionDetailInsertOutput xmlns:i="http://www.w3.org/2001/XMLSchema-instance">
  <OrderVersionDetailID>1</OrderVersionDetailID>
</OrderVersionDetailInsertOutput>