POST SalesOrderTermDiscount/GetSalesOrderPaymentTermDiscountList?LocationID={LocationID}&CustID={CustID}

Returns a list of sales order term discounts.

Request Information

URI Parameters

NameDescriptionTypeAdditional Information
LocationID

Location ID of where the sales order is being created.

string

Required

CustID

The customer id to get the term discounts for.

string

Required

Body Parameters

Response Information

Resource Description

Returns a list of sales order term discounts.

AgvSaleOrderTermDiscounts
NameDescriptionTypeAdditional Information
Status

Status of the API call.

string
Message

Message of the API call.

string
Count

Count of how many SalesOrderTermDiscounts.

string
SalesOrderTermDiscounts

JSON dictionary list of Sales Order Term Discounts.

Collection of ClsSalesOrderTermDiscount

Response Formats

application/json, text/json

Sample:
{
  "Status": "sample string 1",
  "Message": "sample string 2",
  "Count": "sample string 3",
  "SalesOrderTermDiscounts": [
    {
      "IfPaidBy": "sample string 1",
      "Discount": "sample string 2",
      "Deduct": 3.1,
      "PayThis": 4.1
    },
    {
      "IfPaidBy": "sample string 1",
      "Discount": "sample string 2",
      "Deduct": 3.1,
      "PayThis": 4.1
    }
  ]
}

application/xml, text/xml

Sample:
<AgvSaleOrderTermDiscounts 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>
  <SalesOrderTermDiscounts xmlns:d2p1="http://schemas.datacontract.org/2004/07/SSI.plbl">
    <d2p1:ClsSalesOrder.ClsSalesOrderTermDiscount>
      <d2p1:Deduct>3.1</d2p1:Deduct>
      <d2p1:Discount>sample string 2</d2p1:Discount>
      <d2p1:IfPaidBy>sample string 1</d2p1:IfPaidBy>
      <d2p1:PayThis>4.1</d2p1:PayThis>
    </d2p1:ClsSalesOrder.ClsSalesOrderTermDiscount>
    <d2p1:ClsSalesOrder.ClsSalesOrderTermDiscount>
      <d2p1:Deduct>3.1</d2p1:Deduct>
      <d2p1:Discount>sample string 2</d2p1:Discount>
      <d2p1:IfPaidBy>sample string 1</d2p1:IfPaidBy>
      <d2p1:PayThis>4.1</d2p1:PayThis>
    </d2p1:ClsSalesOrder.ClsSalesOrderTermDiscount>
  </SalesOrderTermDiscounts>
  <Status>sample string 1</Status>
</AgvSaleOrderTermDiscounts>