PUT PriceLevel/PutProductPriceLevel

Edits an existing product.

Request Information

URI Parameters

Body Parameters

PriceLevel object used to edit an existing Product Price Level.

clsPutProductPriceLevel
NameDescriptionTypeAdditional Information
DepartmentID

Department ID of the product.

string

Required

Max length: 6

ProductID

Product ID.

string

Required

Max length: 10

AverageCost

Average cost of the product. Calculated as the product is purchased, using a weighted average calculation.

string

Max length: 10

EstimatedAverageCost

Used when the inventory department is set up as an estimated average cost department and is automatically updated by purchase receipts when the appropriate cost is populated.

decimal number
LastPurchaseCost

Cost on the last purchase invoice entered for the product. This is automatically updated with each new purchase.

string

Max length: 10

List

Price that will automatically be used on invoices where no other price overrides or other contributing factors are present.

decimal number

Max of 4 decimal places

PriceLevel1

Price Level 1 of the current product.

decimal number

Max of 4 decimal places

PriceLevel2

Price Level 2 of the current product.

decimal number

Max of 4 decimal places

PriceLevel3

Price Level 3 of the current product.

decimal number

Max of 4 decimal places

PriceLevel4

Price Level 4 of the current product.

decimal number

Max of 4 decimal places

PriceLevel5

Price Level 5 of the current product.

decimal number

Max of 4 decimal places

PriceLevel6

Price Level 6 of the current product.

decimal number

Max of 4 decimal places

PriceLevel7

Price Level 7 of the current product.

decimal number

Max of 4 decimal places

PriceLevel8

Price Level 8 of the current product.

decimal number

Max of 4 decimal places

PriceLevel9

Price Level 9 of the current product.

decimal number

Max of 4 decimal places

PriceLevel10

Price Level 10 of the current product.

decimal number

Max of 4 decimal places

PriceLevel11

Price Level 11 of the current product.

decimal number

Max of 4 decimal places

PriceLevel12

Price Level 12 of the current product.

decimal number

Max of 4 decimal places

PriceLevel13

Price Level 13 of the current product.

decimal number

Max of 4 decimal places

PriceLevel14

Price Level 14 of the current product.

decimal number

Max of 4 decimal places

PriceLevel15

Price Level 15 of the current product.

decimal number

Max of 4 decimal places

PriceLevel16

Price Level 16 of the current product.

decimal number

Max of 4 decimal places

PriceLevel17

Price Level 17 of the current product.

decimal number

Max of 4 decimal places

PriceLevel18

Price Level 18 of the current product.

decimal number

Max of 4 decimal places

PriceLevel19

Price Level 19 of the current product.

decimal number

Max of 4 decimal places

PriceLevel20

Price Level 20 of the current product.

decimal number

Max of 4 decimal places

PriceLevel21

Price Level 21 of the current product.

decimal number

Max of 4 decimal places

PriceLevel22

Price Level 22 of the current product.

decimal number

Max of 4 decimal places

PriceLevel23

Price Level 23 of the current product.

decimal number

Max of 4 decimal places

PriceLevel24

Price Level 24 of the current product.

decimal number

Max of 4 decimal places

Request Formats

application/json, text/json

Sample:
{
  "DepartmentID": "sample string 1",
  "ProductID": "sample string 2",
  "AverageCost": "sample string 5",
  "EstimatedAverageCost": 6.1,
  "LastPurchaseCost": "sample string 7",
  "List": 1.1,
  "PriceLevel1": 1.1,
  "PriceLevel2": 1.1,
  "PriceLevel3": 1.1,
  "PriceLevel4": 1.1,
  "PriceLevel5": 1.1,
  "PriceLevel6": 1.1,
  "PriceLevel7": 1.1,
  "PriceLevel8": 1.1,
  "PriceLevel9": 1.1,
  "PriceLevel10": 1.1,
  "PriceLevel11": 1.1,
  "PriceLevel12": 1.1,
  "PriceLevel13": 1.1,
  "PriceLevel14": 1.1,
  "PriceLevel15": 1.1,
  "PriceLevel16": 1.1,
  "PriceLevel17": 1.1,
  "PriceLevel18": 1.1,
  "PriceLevel19": 1.1,
  "PriceLevel20": 1.1,
  "PriceLevel21": 1.1,
  "PriceLevel22": 1.1,
  "PriceLevel23": 1.1,
  "PriceLevel24": 1.1
}

application/xml, text/xml

Sample:
<clsPutProductPriceLevel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/SSI.Inv">
  <AverageCost>sample string 5</AverageCost>
  <DepartmentID>sample string 1</DepartmentID>
  <EstimatedAverageCost>6.1</EstimatedAverageCost>
  <LastPurchaseCost>sample string 7</LastPurchaseCost>
  <List>1.1</List>
  <PriceLevel1>1.1</PriceLevel1>
  <PriceLevel10>1.1</PriceLevel10>
  <PriceLevel11>1.1</PriceLevel11>
  <PriceLevel12>1.1</PriceLevel12>
  <PriceLevel13>1.1</PriceLevel13>
  <PriceLevel14>1.1</PriceLevel14>
  <PriceLevel15>1.1</PriceLevel15>
  <PriceLevel16>1.1</PriceLevel16>
  <PriceLevel17>1.1</PriceLevel17>
  <PriceLevel18>1.1</PriceLevel18>
  <PriceLevel19>1.1</PriceLevel19>
  <PriceLevel2>1.1</PriceLevel2>
  <PriceLevel20>1.1</PriceLevel20>
  <PriceLevel21>1.1</PriceLevel21>
  <PriceLevel22>1.1</PriceLevel22>
  <PriceLevel23>1.1</PriceLevel23>
  <PriceLevel24>1.1</PriceLevel24>
  <PriceLevel3>1.1</PriceLevel3>
  <PriceLevel4>1.1</PriceLevel4>
  <PriceLevel5>1.1</PriceLevel5>
  <PriceLevel6>1.1</PriceLevel6>
  <PriceLevel7>1.1</PriceLevel7>
  <PriceLevel8>1.1</PriceLevel8>
  <PriceLevel9>1.1</PriceLevel9>
  <ProductID>sample string 2</ProductID>
</clsPutProductPriceLevel>

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

Response Information

Resource Description

Edits an existing product.

AgvPriceLevelUpdate
NameDescriptionTypeAdditional Information
Status

Status of the API call.

string
Message

Message of the API call.

string

Response Formats

application/json, text/json

Sample:
{
  "Status": "sample string 1",
  "Message": "sample string 2"
}

application/xml, text/xml

Sample:
<AgvPriceLevelUpdate xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/AgvWebAPICSharp.Models.Product">
  <Message>sample string 2</Message>
  <Status>sample string 1</Status>
</AgvPriceLevelUpdate>