GET SalesOrderDiscount/GetSalesOrderDiscount

Returns a list of sales order discounts.

Request Information

URI Parameters

Body Parameters

Response Information

Resource Description

Returns a list of sales order discounts.

AgvSaleOrderDiscountList
NameDescriptionTypeAdditional Information
Status

Status of the API call.

string
Message

Message of the API call.

string
Count

Count of how many SalesOrderDiscountList JSON dictionaries.

string
SalesOrderDiscounts

JSON dictionary list of Sales Order Discounts.

Collection of clsSalesOrderDiscountListItem

Response Formats

application/json, text/json

Sample:
{
  "Status": "sample string 1",
  "Message": "sample string 2",
  "Count": "sample string 3",
  "SalesOrderDiscounts": [
    {
      "SODiscountKey": 1,
      "Description": "sample string 2",
      "DiscountType": "sample string 3",
      "DefaultDiscountAmount": 4.1
    },
    {
      "SODiscountKey": 1,
      "Description": "sample string 2",
      "DiscountType": "sample string 3",
      "DefaultDiscountAmount": 4.1
    }
  ]
}

application/xml, text/xml

Sample:
<AgvSaleOrderDiscountList xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/AgvWebAPICSharp.Models.Inventory.SalesOrder">
  <Count>sample string 3</Count>
  <Message>sample string 2</Message>
  <SalesOrderDiscounts xmlns:d2p1="http://schemas.datacontract.org/2004/07/SSI">
    <d2p1:clsSalesOrderDiscountListItem>
      <d2p1:DefaultDiscountAmount>4.1</d2p1:DefaultDiscountAmount>
      <d2p1:Description>sample string 2</d2p1:Description>
      <d2p1:DiscountType>sample string 3</d2p1:DiscountType>
      <d2p1:SODiscountKey>1</d2p1:SODiscountKey>
    </d2p1:clsSalesOrderDiscountListItem>
    <d2p1:clsSalesOrderDiscountListItem>
      <d2p1:DefaultDiscountAmount>4.1</d2p1:DefaultDiscountAmount>
      <d2p1:Description>sample string 2</d2p1:Description>
      <d2p1:DiscountType>sample string 3</d2p1:DiscountType>
      <d2p1:SODiscountKey>1</d2p1:SODiscountKey>
    </d2p1:clsSalesOrderDiscountListItem>
  </SalesOrderDiscounts>
  <Status>sample string 1</Status>
</AgvSaleOrderDiscountList>