POST api/Offers/GetProductOffers

Get Offers

Request Information

URI Parameters

None.

Body Parameters

OrderBinidingModels
NameDescriptionTypeAdditional information
ProductList

Collection of OrderProductBindingModels

Required

OrderDate

date

Required

OrderShippingAddressId

integer

Required

OrderBillingAddressId

integer

Required

TotalAmount

decimal number

Required

TaxAmount

decimal number

Required

PreviousDue

decimal number

None.

DepositAmount

decimal number

Required

GrandTotal

decimal number

Required

GrandErpTotal

decimal number

None.

PO_Number

string

None.

DeliveryCharge

decimal number

None.

Request Formats

application/json, text/json

Sample:
{
  "ProductList": [
    {
      "OrderId": 1,
      "ProductId": 2,
      "Quantity": 3,
      "UnitPrice": 4.0,
      "TaxPercentage": 5.0,
      "TaxAmount": 6.0,
      "TotalAmount": 7.0,
      "BottletoReturn": 8,
      "ChargeCode": "sample string 9",
      "DespositAmount": 10,
      "OfferAppliedList": [
        {
          "OfferId": 1,
          "ChargeCode": "sample string 2",
          "BaseProductQty": "sample string 3",
          "OfferProductQty": "sample string 4",
          "BaseProductDiscount": "sample string 5",
          "OfferProductDiscount": "sample string 6",
          "FlagOnOfferType": true
        },
        {
          "OfferId": 1,
          "ChargeCode": "sample string 2",
          "BaseProductQty": "sample string 3",
          "OfferProductQty": "sample string 4",
          "BaseProductDiscount": "sample string 5",
          "OfferProductDiscount": "sample string 6",
          "FlagOnOfferType": true
        }
      ],
      "ErpUnitPrice": 11.0,
      "ErpTotalPrice": 12.0,
      "LineNo": 13,
      "DespositQty": 14
    },
    {
      "OrderId": 1,
      "ProductId": 2,
      "Quantity": 3,
      "UnitPrice": 4.0,
      "TaxPercentage": 5.0,
      "TaxAmount": 6.0,
      "TotalAmount": 7.0,
      "BottletoReturn": 8,
      "ChargeCode": "sample string 9",
      "DespositAmount": 10,
      "OfferAppliedList": [
        {
          "OfferId": 1,
          "ChargeCode": "sample string 2",
          "BaseProductQty": "sample string 3",
          "OfferProductQty": "sample string 4",
          "BaseProductDiscount": "sample string 5",
          "OfferProductDiscount": "sample string 6",
          "FlagOnOfferType": true
        },
        {
          "OfferId": 1,
          "ChargeCode": "sample string 2",
          "BaseProductQty": "sample string 3",
          "OfferProductQty": "sample string 4",
          "BaseProductDiscount": "sample string 5",
          "OfferProductDiscount": "sample string 6",
          "FlagOnOfferType": true
        }
      ],
      "ErpUnitPrice": 11.0,
      "ErpTotalPrice": 12.0,
      "LineNo": 13,
      "DespositQty": 14
    }
  ],
  "OrderDate": "2026-04-16T05:46:38.410796",
  "OrderShippingAddressId": 2,
  "OrderBillingAddressId": 3,
  "TotalAmount": 4.0,
  "TaxAmount": 5.0,
  "PreviousDue": 6.0,
  "DepositAmount": 7.0,
  "GrandTotal": 8.0,
  "GrandErpTotal": 9.0,
  "PO_Number": "sample string 10",
  "DeliveryCharge": 11.0
}

application/xml, text/xml

Sample:
<OrderBinidingModels xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Coke.Models.WebApi.BindingModels.CustomerOrder">
  <DeliveryCharge>11</DeliveryCharge>
  <DepositAmount>7</DepositAmount>
  <GrandErpTotal>9</GrandErpTotal>
  <GrandTotal>8</GrandTotal>
  <OrderBillingAddressId>3</OrderBillingAddressId>
  <OrderDate>2026-04-16T05:46:38.410796</OrderDate>
  <OrderShippingAddressId>2</OrderShippingAddressId>
  <PO_Number>sample string 10</PO_Number>
  <PreviousDue>6</PreviousDue>
  <TaxAmount>5</TaxAmount>
  <TotalAmount>4</TotalAmount>
  <ProductList>
    <OrderProductBindingModels>
      <BottletoReturn>8</BottletoReturn>
      <ChargeCode>sample string 9</ChargeCode>
      <DespositAmount>10</DespositAmount>
      <DespositQty>14</DespositQty>
      <ErpTotalPrice>12</ErpTotalPrice>
      <ErpUnitPrice>11</ErpUnitPrice>
      <LineNo>13</LineNo>
      <OfferAppliedList xmlns:d4p1="http://schemas.datacontract.org/2004/07/Coke.Models.WebApi.ViewModels.Product">
        <d4p1:OfferDetails>
          <d4p1:BaseProductDiscount>sample string 5</d4p1:BaseProductDiscount>
          <d4p1:BaseProductQty>sample string 3</d4p1:BaseProductQty>
          <d4p1:ChargeCode>sample string 2</d4p1:ChargeCode>
          <d4p1:FlagOnOfferType>true</d4p1:FlagOnOfferType>
          <d4p1:OfferId>1</d4p1:OfferId>
          <d4p1:OfferProductDiscount>sample string 6</d4p1:OfferProductDiscount>
          <d4p1:OfferProductQty>sample string 4</d4p1:OfferProductQty>
        </d4p1:OfferDetails>
        <d4p1:OfferDetails>
          <d4p1:BaseProductDiscount>sample string 5</d4p1:BaseProductDiscount>
          <d4p1:BaseProductQty>sample string 3</d4p1:BaseProductQty>
          <d4p1:ChargeCode>sample string 2</d4p1:ChargeCode>
          <d4p1:FlagOnOfferType>true</d4p1:FlagOnOfferType>
          <d4p1:OfferId>1</d4p1:OfferId>
          <d4p1:OfferProductDiscount>sample string 6</d4p1:OfferProductDiscount>
          <d4p1:OfferProductQty>sample string 4</d4p1:OfferProductQty>
        </d4p1:OfferDetails>
      </OfferAppliedList>
      <OrderId>1</OrderId>
      <ProductId>2</ProductId>
      <Quantity>3</Quantity>
      <TaxAmount>6</TaxAmount>
      <TaxPercentage>5</TaxPercentage>
      <TotalAmount>7</TotalAmount>
      <UnitPrice>4</UnitPrice>
    </OrderProductBindingModels>
    <OrderProductBindingModels>
      <BottletoReturn>8</BottletoReturn>
      <ChargeCode>sample string 9</ChargeCode>
      <DespositAmount>10</DespositAmount>
      <DespositQty>14</DespositQty>
      <ErpTotalPrice>12</ErpTotalPrice>
      <ErpUnitPrice>11</ErpUnitPrice>
      <LineNo>13</LineNo>
      <OfferAppliedList xmlns:d4p1="http://schemas.datacontract.org/2004/07/Coke.Models.WebApi.ViewModels.Product">
        <d4p1:OfferDetails>
          <d4p1:BaseProductDiscount>sample string 5</d4p1:BaseProductDiscount>
          <d4p1:BaseProductQty>sample string 3</d4p1:BaseProductQty>
          <d4p1:ChargeCode>sample string 2</d4p1:ChargeCode>
          <d4p1:FlagOnOfferType>true</d4p1:FlagOnOfferType>
          <d4p1:OfferId>1</d4p1:OfferId>
          <d4p1:OfferProductDiscount>sample string 6</d4p1:OfferProductDiscount>
          <d4p1:OfferProductQty>sample string 4</d4p1:OfferProductQty>
        </d4p1:OfferDetails>
        <d4p1:OfferDetails>
          <d4p1:BaseProductDiscount>sample string 5</d4p1:BaseProductDiscount>
          <d4p1:BaseProductQty>sample string 3</d4p1:BaseProductQty>
          <d4p1:ChargeCode>sample string 2</d4p1:ChargeCode>
          <d4p1:FlagOnOfferType>true</d4p1:FlagOnOfferType>
          <d4p1:OfferId>1</d4p1:OfferId>
          <d4p1:OfferProductDiscount>sample string 6</d4p1:OfferProductDiscount>
          <d4p1:OfferProductQty>sample string 4</d4p1:OfferProductQty>
        </d4p1:OfferDetails>
      </OfferAppliedList>
      <OrderId>1</OrderId>
      <ProductId>2</ProductId>
      <Quantity>3</Quantity>
      <TaxAmount>6</TaxAmount>
      <TaxPercentage>5</TaxPercentage>
      <TotalAmount>7</TotalAmount>
      <UnitPrice>4</UnitPrice>
    </OrderProductBindingModels>
  </ProductList>
</OrderBinidingModels>

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

Resource Description

IHttpActionResult

None.

Response Formats

application/json, text/json, application/xml, text/xml

Sample:

Sample not available.