PUT ProductQuote/PutProductQuote

Update a product quote.

Request Information

URI Parameters

Body Parameters

ProductQuoteDetails
NameDescriptionTypeAdditional Information
CustID

ID of the customer on the quote

string

Required

Max length: 6

DeptID

Department ID of the quoted product

string

Required

Max length: 6

ProdID

Product ID of the quoted product

string

Required

Max length: 10

ProductName

Name of the quoted product - not used in PUT/POST.

string

Max length: 50

Number

Quote ID number - auto-assigned in POST.

string

Must be numeric

Price

Quoted price

decimal number

Required

Max of 4 decimal places

QuoteDate

Date quote is issued

string

Format must be MM/dd/yyyy

ExpireDate

Expiration date of the quote

string

Required

Format must be MM/dd/yyyy

Type

User defined quote type

string

Max length: 10

Terms

User defined quote terms

string

Max length: 20

Comment

Quote comment

string

Max length: 250

CompanyWideYN

Indicates quote is valid for products across department category

boolean
Salesperson

Salesperson on the quote

string

Max length: 15

Request Formats

application/json, text/json

Sample:
{
  "CustID": "sample string 1",
  "DeptID": "sample string 2",
  "ProdID": "sample string 3",
  "ProductName": "sample string 4",
  "Number": "sample string 5",
  "Price": 6.1,
  "QuoteDate": "sample string 7",
  "ExpireDate": "sample string 8",
  "Type": "sample string 9",
  "Terms": "sample string 10",
  "Comment": "sample string 11",
  "CompanyWideYN": true,
  "Salesperson": "sample string 13"
}

application/xml, text/xml

Sample:
<ProductQuoteDetails xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/AgvWebAPICSharp.Models.Product">
  <Comment>sample string 11</Comment>
  <CompanyWideYN>true</CompanyWideYN>
  <CustID>sample string 1</CustID>
  <DeptID>sample string 2</DeptID>
  <ExpireDate>sample string 8</ExpireDate>
  <Number>sample string 5</Number>
  <Price>6.1</Price>
  <ProdID>sample string 3</ProdID>
  <ProductName>sample string 4</ProductName>
  <QuoteDate>sample string 7</QuoteDate>
  <Salesperson>sample string 13</Salesperson>
  <Terms>sample string 10</Terms>
  <Type>sample string 9</Type>
</ProductQuoteDetails>

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

Response Information

Resource Description

Update a product quote.

AgvProductQuoteDetails
NameDescriptionTypeAdditional Information
Status

Status of the API call.

string
Message

Message of the API call.

string
QuoteNumber

Quote number.

string
QuoteDetails

JSON dictionary of ProductQuoteDetails.

ProductQuoteDetails

Response Formats

application/json, text/json

Sample:
{
  "Status": "sample string 1",
  "Message": "sample string 2",
  "QuoteNumber": "sample string 3",
  "QuoteDetails": {
    "CustID": "sample string 1",
    "DeptID": "sample string 2",
    "ProdID": "sample string 3",
    "ProductName": "sample string 4",
    "Number": "sample string 5",
    "Price": 6.1,
    "QuoteDate": "sample string 7",
    "ExpireDate": "sample string 8",
    "Type": "sample string 9",
    "Terms": "sample string 10",
    "Comment": "sample string 11",
    "CompanyWideYN": true,
    "Salesperson": "sample string 13"
  }
}

application/xml, text/xml

Sample:
<AgvProductQuoteDetails xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/AgvWebAPICSharp.Models.Product">
  <Message>sample string 2</Message>
  <QuoteDetails>
    <Comment>sample string 11</Comment>
    <CompanyWideYN>true</CompanyWideYN>
    <CustID>sample string 1</CustID>
    <DeptID>sample string 2</DeptID>
    <ExpireDate>sample string 8</ExpireDate>
    <Number>sample string 5</Number>
    <Price>6.1</Price>
    <ProdID>sample string 3</ProdID>
    <ProductName>sample string 4</ProductName>
    <QuoteDate>sample string 7</QuoteDate>
    <Salesperson>sample string 13</Salesperson>
    <Terms>sample string 10</Terms>
    <Type>sample string 9</Type>
  </QuoteDetails>
  <QuoteNumber>sample string 3</QuoteNumber>
  <Status>sample string 1</Status>
</AgvProductQuoteDetails>