GET api/V3/DistributorProducts/GetSecondaryOrderVsInvoices?token={token}

Gets distributor's products order Vs Invoice Data.

Request Information

URI Parameters

NameDescriptionTypeAdditional information
token

Epoch of last Updated data.

integer

Required

Body Parameters

None.

Response Information

Resource Description

List of product wise demand and sales

SecondaryOrderVsInvoicesApiModel
NameDescriptionTypeAdditional information
dataStatus

Status of data fetched

boolean

None.

nexttoken

Next token in Epoch TimeMillisecond

integer

None.

data

data

Collection of SecondaryOrderVsInvoices

None.

Response Formats

application/json, text/json

Sample:
{
  "dataStatus": true,
  "nexttoken": 2,
  "data": [
    {
      "TokenId": 1,
      "Level8PositionCode": "sample string 2",
      "Level8PositionUserErpID": "sample string 3",
      "Level7PositionCode": "sample string 4",
      "Level7PositionUserErpID": "sample string 5",
      "Level6PositionCode": "sample string 6",
      "Level6PositionUserErpID": "sample string 7",
      "Level5PositionCode": "sample string 8",
      "Level5PositionUserErpID": "sample string 9",
      "Level4PositionCode": "sample string 10",
      "Level4PositionUserErpID": "sample string 11",
      "Level3PositionCode": "sample string 12",
      "Level3PositionUserErpID": "sample string 13",
      "Level2PositionCode": "sample string 14",
      "Level2PositionUserErpID": "sample string 15",
      "Level1PositionCode": "sample string 16",
      "Level1PositionUserErpID": "sample string 17",
      "GSMErpId": "sample string 18",
      "NSMErpId": "sample string 19",
      "ZSMErpId": "sample string 20",
      "RSMErpId": "sample string 21",
      "ASMErpId": "sample string 22",
      "ESMErpId": "sample string 23",
      "ZoneName": "sample string 24",
      "RegionName": "sample string 25",
      "TerritoryName": "sample string 26",
      "BeatName": "sample string 27",
      "BeatERPID": "sample string 28",
      "OutletErpId": "sample string 29",
      "DistributorErpId": "sample string 30",
      "VisitId": 1,
      "OrderSource": "sample string 31",
      "OrderNo": "sample string 32",
      "OrderDate": "2025-04-04T05:40:57.330929+00:00",
      "IsOrderCancelled": true,
      "InvoiceSource": "sample string 34",
      "InvoiceNo": "sample string 35",
      "InvoiceDate": "2025-04-04T05:40:57.330929+00:00",
      "IsInvoiceCancelled": true,
      "ProductList": [
        {
          "ProductErpId": "sample string 1",
          "OrderUnitPrice": 1.1,
          "OrderQtyInUnits": 1.1,
          "OrderQtyInStdUnit": 1.1,
          "OrderQtyInSuperUnit": 1.1,
          "OrderSchemeQtyUnit": 1.1,
          "OrderGrossValue": 1.1,
          "OrderPrimarySchemeDiscount": 1.0,
          "OrderSecondarySchemeDiscount": 1.0,
          "OrderTradeDiscount": 1.0,
          "OrderCashDiscount": 1.1,
          "OrderNetValue": 1.1,
          "OrderTaxValue": 1.0,
          "OrderTotalValue": 1.0,
          "InvoiceQtyInUnits": 1.1,
          "InvoiceQtyInStdUnit": 1.1,
          "InvoiceQtyInSuperUnit": 1.1,
          "InvoiceSchemeQtyInUnit": 1.1,
          "InvoiceGrossValue": 1.0,
          "InvoiceTradeDiscount": 1.0,
          "InvoiceCashDiscount": 1.0,
          "InvoicePrimaryDiscount": 1.0,
          "InvoiceSecondaryDiscount": 1.0,
          "InvoiceNetValue": 1.0,
          "InvoiceTaxValue": 1.0,
          "InvoiceTotalValue": 1.0
        },
        {
          "ProductErpId": "sample string 1",
          "OrderUnitPrice": 1.1,
          "OrderQtyInUnits": 1.1,
          "OrderQtyInStdUnit": 1.1,
          "OrderQtyInSuperUnit": 1.1,
          "OrderSchemeQtyUnit": 1.1,
          "OrderGrossValue": 1.1,
          "OrderPrimarySchemeDiscount": 1.0,
          "OrderSecondarySchemeDiscount": 1.0,
          "OrderTradeDiscount": 1.0,
          "OrderCashDiscount": 1.1,
          "OrderNetValue": 1.1,
          "OrderTaxValue": 1.0,
          "OrderTotalValue": 1.0,
          "InvoiceQtyInUnits": 1.1,
          "InvoiceQtyInStdUnit": 1.1,
          "InvoiceQtyInSuperUnit": 1.1,
          "InvoiceSchemeQtyInUnit": 1.1,
          "InvoiceGrossValue": 1.0,
          "InvoiceTradeDiscount": 1.0,
          "InvoiceCashDiscount": 1.0,
          "InvoicePrimaryDiscount": 1.0,
          "InvoiceSecondaryDiscount": 1.0,
          "InvoiceNetValue": 1.0,
          "InvoiceTaxValue": 1.0,
          "InvoiceTotalValue": 1.0
        }
      ]
    },
    {
      "TokenId": 1,
      "Level8PositionCode": "sample string 2",
      "Level8PositionUserErpID": "sample string 3",
      "Level7PositionCode": "sample string 4",
      "Level7PositionUserErpID": "sample string 5",
      "Level6PositionCode": "sample string 6",
      "Level6PositionUserErpID": "sample string 7",
      "Level5PositionCode": "sample string 8",
      "Level5PositionUserErpID": "sample string 9",
      "Level4PositionCode": "sample string 10",
      "Level4PositionUserErpID": "sample string 11",
      "Level3PositionCode": "sample string 12",
      "Level3PositionUserErpID": "sample string 13",
      "Level2PositionCode": "sample string 14",
      "Level2PositionUserErpID": "sample string 15",
      "Level1PositionCode": "sample string 16",
      "Level1PositionUserErpID": "sample string 17",
      "GSMErpId": "sample string 18",
      "NSMErpId": "sample string 19",
      "ZSMErpId": "sample string 20",
      "RSMErpId": "sample string 21",
      "ASMErpId": "sample string 22",
      "ESMErpId": "sample string 23",
      "ZoneName": "sample string 24",
      "RegionName": "sample string 25",
      "TerritoryName": "sample string 26",
      "BeatName": "sample string 27",
      "BeatERPID": "sample string 28",
      "OutletErpId": "sample string 29",
      "DistributorErpId": "sample string 30",
      "VisitId": 1,
      "OrderSource": "sample string 31",
      "OrderNo": "sample string 32",
      "OrderDate": "2025-04-04T05:40:57.330929+00:00",
      "IsOrderCancelled": true,
      "InvoiceSource": "sample string 34",
      "InvoiceNo": "sample string 35",
      "InvoiceDate": "2025-04-04T05:40:57.330929+00:00",
      "IsInvoiceCancelled": true,
      "ProductList": [
        {
          "ProductErpId": "sample string 1",
          "OrderUnitPrice": 1.1,
          "OrderQtyInUnits": 1.1,
          "OrderQtyInStdUnit": 1.1,
          "OrderQtyInSuperUnit": 1.1,
          "OrderSchemeQtyUnit": 1.1,
          "OrderGrossValue": 1.1,
          "OrderPrimarySchemeDiscount": 1.0,
          "OrderSecondarySchemeDiscount": 1.0,
          "OrderTradeDiscount": 1.0,
          "OrderCashDiscount": 1.1,
          "OrderNetValue": 1.1,
          "OrderTaxValue": 1.0,
          "OrderTotalValue": 1.0,
          "InvoiceQtyInUnits": 1.1,
          "InvoiceQtyInStdUnit": 1.1,
          "InvoiceQtyInSuperUnit": 1.1,
          "InvoiceSchemeQtyInUnit": 1.1,
          "InvoiceGrossValue": 1.0,
          "InvoiceTradeDiscount": 1.0,
          "InvoiceCashDiscount": 1.0,
          "InvoicePrimaryDiscount": 1.0,
          "InvoiceSecondaryDiscount": 1.0,
          "InvoiceNetValue": 1.0,
          "InvoiceTaxValue": 1.0,
          "InvoiceTotalValue": 1.0
        },
        {
          "ProductErpId": "sample string 1",
          "OrderUnitPrice": 1.1,
          "OrderQtyInUnits": 1.1,
          "OrderQtyInStdUnit": 1.1,
          "OrderQtyInSuperUnit": 1.1,
          "OrderSchemeQtyUnit": 1.1,
          "OrderGrossValue": 1.1,
          "OrderPrimarySchemeDiscount": 1.0,
          "OrderSecondarySchemeDiscount": 1.0,
          "OrderTradeDiscount": 1.0,
          "OrderCashDiscount": 1.1,
          "OrderNetValue": 1.1,
          "OrderTaxValue": 1.0,
          "OrderTotalValue": 1.0,
          "InvoiceQtyInUnits": 1.1,
          "InvoiceQtyInStdUnit": 1.1,
          "InvoiceQtyInSuperUnit": 1.1,
          "InvoiceSchemeQtyInUnit": 1.1,
          "InvoiceGrossValue": 1.0,
          "InvoiceTradeDiscount": 1.0,
          "InvoiceCashDiscount": 1.0,
          "InvoicePrimaryDiscount": 1.0,
          "InvoiceSecondaryDiscount": 1.0,
          "InvoiceNetValue": 1.0,
          "InvoiceTaxValue": 1.0,
          "InvoiceTotalValue": 1.0
        }
      ]
    }
  ]
}

application/xml, text/xml

Sample:
<SecondaryOrderVsInvoicesApiModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/ExternalApis.Models.V3">
  <data>
    <SecondaryOrderVsInvoices>
      <ASMErpId>sample string 22</ASMErpId>
      <BeatERPID>sample string 28</BeatERPID>
      <BeatName>sample string 27</BeatName>
      <DistributorErpId>sample string 30</DistributorErpId>
      <ESMErpId>sample string 23</ESMErpId>
      <GSMErpId>sample string 18</GSMErpId>
      <InvoiceDate>2025-04-04T05:40:57.330929+00:00</InvoiceDate>
      <InvoiceNo>sample string 35</InvoiceNo>
      <InvoiceSource>sample string 34</InvoiceSource>
      <IsInvoiceCancelled>true</IsInvoiceCancelled>
      <IsOrderCancelled>true</IsOrderCancelled>
      <Level1PositionCode>sample string 16</Level1PositionCode>
      <Level1PositionUserErpID>sample string 17</Level1PositionUserErpID>
      <Level2PositionCode>sample string 14</Level2PositionCode>
      <Level2PositionUserErpID>sample string 15</Level2PositionUserErpID>
      <Level3PositionCode>sample string 12</Level3PositionCode>
      <Level3PositionUserErpID>sample string 13</Level3PositionUserErpID>
      <Level4PositionCode>sample string 10</Level4PositionCode>
      <Level4PositionUserErpID>sample string 11</Level4PositionUserErpID>
      <Level5PositionCode>sample string 8</Level5PositionCode>
      <Level5PositionUserErpID>sample string 9</Level5PositionUserErpID>
      <Level6PositionCode>sample string 6</Level6PositionCode>
      <Level6PositionUserErpID>sample string 7</Level6PositionUserErpID>
      <Level7PositionCode>sample string 4</Level7PositionCode>
      <Level7PositionUserErpID>sample string 5</Level7PositionUserErpID>
      <Level8PositionCode>sample string 2</Level8PositionCode>
      <Level8PositionUserErpID>sample string 3</Level8PositionUserErpID>
      <NSMErpId>sample string 19</NSMErpId>
      <OrderDate>2025-04-04T05:40:57.330929+00:00</OrderDate>
      <OrderNo>sample string 32</OrderNo>
      <OrderSource>sample string 31</OrderSource>
      <OutletErpId>sample string 29</OutletErpId>
      <ProductList>
        <ProductList>
          <InvoiceCashDiscount>1</InvoiceCashDiscount>
          <InvoiceGrossValue>1</InvoiceGrossValue>
          <InvoiceNetValue>1</InvoiceNetValue>
          <InvoicePrimaryDiscount>1</InvoicePrimaryDiscount>
          <InvoiceQtyInStdUnit>1.1</InvoiceQtyInStdUnit>
          <InvoiceQtyInSuperUnit>1.1</InvoiceQtyInSuperUnit>
          <InvoiceQtyInUnits>1.1</InvoiceQtyInUnits>
          <InvoiceSchemeQtyInUnit>1.1</InvoiceSchemeQtyInUnit>
          <InvoiceSecondaryDiscount>1</InvoiceSecondaryDiscount>
          <InvoiceTaxValue>1</InvoiceTaxValue>
          <InvoiceTotalValue>1</InvoiceTotalValue>
          <InvoiceTradeDiscount>1</InvoiceTradeDiscount>
          <OrderCashDiscount>1.1</OrderCashDiscount>
          <OrderGrossValue>1.1</OrderGrossValue>
          <OrderNetValue>1.1</OrderNetValue>
          <OrderPrimarySchemeDiscount>1</OrderPrimarySchemeDiscount>
          <OrderQtyInStdUnit>1.1</OrderQtyInStdUnit>
          <OrderQtyInSuperUnit>1.1</OrderQtyInSuperUnit>
          <OrderQtyInUnits>1.1</OrderQtyInUnits>
          <OrderSchemeQtyUnit>1.1</OrderSchemeQtyUnit>
          <OrderSecondarySchemeDiscount>1</OrderSecondarySchemeDiscount>
          <OrderTaxValue>1</OrderTaxValue>
          <OrderTotalValue>1</OrderTotalValue>
          <OrderTradeDiscount>1</OrderTradeDiscount>
          <OrderUnitPrice>1.1</OrderUnitPrice>
          <ProductErpId>sample string 1</ProductErpId>
        </ProductList>
        <ProductList>
          <InvoiceCashDiscount>1</InvoiceCashDiscount>
          <InvoiceGrossValue>1</InvoiceGrossValue>
          <InvoiceNetValue>1</InvoiceNetValue>
          <InvoicePrimaryDiscount>1</InvoicePrimaryDiscount>
          <InvoiceQtyInStdUnit>1.1</InvoiceQtyInStdUnit>
          <InvoiceQtyInSuperUnit>1.1</InvoiceQtyInSuperUnit>
          <InvoiceQtyInUnits>1.1</InvoiceQtyInUnits>
          <InvoiceSchemeQtyInUnit>1.1</InvoiceSchemeQtyInUnit>
          <InvoiceSecondaryDiscount>1</InvoiceSecondaryDiscount>
          <InvoiceTaxValue>1</InvoiceTaxValue>
          <InvoiceTotalValue>1</InvoiceTotalValue>
          <InvoiceTradeDiscount>1</InvoiceTradeDiscount>
          <OrderCashDiscount>1.1</OrderCashDiscount>
          <OrderGrossValue>1.1</OrderGrossValue>
          <OrderNetValue>1.1</OrderNetValue>
          <OrderPrimarySchemeDiscount>1</OrderPrimarySchemeDiscount>
          <OrderQtyInStdUnit>1.1</OrderQtyInStdUnit>
          <OrderQtyInSuperUnit>1.1</OrderQtyInSuperUnit>
          <OrderQtyInUnits>1.1</OrderQtyInUnits>
          <OrderSchemeQtyUnit>1.1</OrderSchemeQtyUnit>
          <OrderSecondarySchemeDiscount>1</OrderSecondarySchemeDiscount>
          <OrderTaxValue>1</OrderTaxValue>
          <OrderTotalValue>1</OrderTotalValue>
          <OrderTradeDiscount>1</OrderTradeDiscount>
          <OrderUnitPrice>1.1</OrderUnitPrice>
          <ProductErpId>sample string 1</ProductErpId>
        </ProductList>
      </ProductList>
      <RSMErpId>sample string 21</RSMErpId>
      <RegionName>sample string 25</RegionName>
      <TerritoryName>sample string 26</TerritoryName>
      <TokenId>1</TokenId>
      <VisitId>1</VisitId>
      <ZSMErpId>sample string 20</ZSMErpId>
      <ZoneName>sample string 24</ZoneName>
    </SecondaryOrderVsInvoices>
    <SecondaryOrderVsInvoices>
      <ASMErpId>sample string 22</ASMErpId>
      <BeatERPID>sample string 28</BeatERPID>
      <BeatName>sample string 27</BeatName>
      <DistributorErpId>sample string 30</DistributorErpId>
      <ESMErpId>sample string 23</ESMErpId>
      <GSMErpId>sample string 18</GSMErpId>
      <InvoiceDate>2025-04-04T05:40:57.330929+00:00</InvoiceDate>
      <InvoiceNo>sample string 35</InvoiceNo>
      <InvoiceSource>sample string 34</InvoiceSource>
      <IsInvoiceCancelled>true</IsInvoiceCancelled>
      <IsOrderCancelled>true</IsOrderCancelled>
      <Level1PositionCode>sample string 16</Level1PositionCode>
      <Level1PositionUserErpID>sample string 17</Level1PositionUserErpID>
      <Level2PositionCode>sample string 14</Level2PositionCode>
      <Level2PositionUserErpID>sample string 15</Level2PositionUserErpID>
      <Level3PositionCode>sample string 12</Level3PositionCode>
      <Level3PositionUserErpID>sample string 13</Level3PositionUserErpID>
      <Level4PositionCode>sample string 10</Level4PositionCode>
      <Level4PositionUserErpID>sample string 11</Level4PositionUserErpID>
      <Level5PositionCode>sample string 8</Level5PositionCode>
      <Level5PositionUserErpID>sample string 9</Level5PositionUserErpID>
      <Level6PositionCode>sample string 6</Level6PositionCode>
      <Level6PositionUserErpID>sample string 7</Level6PositionUserErpID>
      <Level7PositionCode>sample string 4</Level7PositionCode>
      <Level7PositionUserErpID>sample string 5</Level7PositionUserErpID>
      <Level8PositionCode>sample string 2</Level8PositionCode>
      <Level8PositionUserErpID>sample string 3</Level8PositionUserErpID>
      <NSMErpId>sample string 19</NSMErpId>
      <OrderDate>2025-04-04T05:40:57.330929+00:00</OrderDate>
      <OrderNo>sample string 32</OrderNo>
      <OrderSource>sample string 31</OrderSource>
      <OutletErpId>sample string 29</OutletErpId>
      <ProductList>
        <ProductList>
          <InvoiceCashDiscount>1</InvoiceCashDiscount>
          <InvoiceGrossValue>1</InvoiceGrossValue>
          <InvoiceNetValue>1</InvoiceNetValue>
          <InvoicePrimaryDiscount>1</InvoicePrimaryDiscount>
          <InvoiceQtyInStdUnit>1.1</InvoiceQtyInStdUnit>
          <InvoiceQtyInSuperUnit>1.1</InvoiceQtyInSuperUnit>
          <InvoiceQtyInUnits>1.1</InvoiceQtyInUnits>
          <InvoiceSchemeQtyInUnit>1.1</InvoiceSchemeQtyInUnit>
          <InvoiceSecondaryDiscount>1</InvoiceSecondaryDiscount>
          <InvoiceTaxValue>1</InvoiceTaxValue>
          <InvoiceTotalValue>1</InvoiceTotalValue>
          <InvoiceTradeDiscount>1</InvoiceTradeDiscount>
          <OrderCashDiscount>1.1</OrderCashDiscount>
          <OrderGrossValue>1.1</OrderGrossValue>
          <OrderNetValue>1.1</OrderNetValue>
          <OrderPrimarySchemeDiscount>1</OrderPrimarySchemeDiscount>
          <OrderQtyInStdUnit>1.1</OrderQtyInStdUnit>
          <OrderQtyInSuperUnit>1.1</OrderQtyInSuperUnit>
          <OrderQtyInUnits>1.1</OrderQtyInUnits>
          <OrderSchemeQtyUnit>1.1</OrderSchemeQtyUnit>
          <OrderSecondarySchemeDiscount>1</OrderSecondarySchemeDiscount>
          <OrderTaxValue>1</OrderTaxValue>
          <OrderTotalValue>1</OrderTotalValue>
          <OrderTradeDiscount>1</OrderTradeDiscount>
          <OrderUnitPrice>1.1</OrderUnitPrice>
          <ProductErpId>sample string 1</ProductErpId>
        </ProductList>
        <ProductList>
          <InvoiceCashDiscount>1</InvoiceCashDiscount>
          <InvoiceGrossValue>1</InvoiceGrossValue>
          <InvoiceNetValue>1</InvoiceNetValue>
          <InvoicePrimaryDiscount>1</InvoicePrimaryDiscount>
          <InvoiceQtyInStdUnit>1.1</InvoiceQtyInStdUnit>
          <InvoiceQtyInSuperUnit>1.1</InvoiceQtyInSuperUnit>
          <InvoiceQtyInUnits>1.1</InvoiceQtyInUnits>
          <InvoiceSchemeQtyInUnit>1.1</InvoiceSchemeQtyInUnit>
          <InvoiceSecondaryDiscount>1</InvoiceSecondaryDiscount>
          <InvoiceTaxValue>1</InvoiceTaxValue>
          <InvoiceTotalValue>1</InvoiceTotalValue>
          <InvoiceTradeDiscount>1</InvoiceTradeDiscount>
          <OrderCashDiscount>1.1</OrderCashDiscount>
          <OrderGrossValue>1.1</OrderGrossValue>
          <OrderNetValue>1.1</OrderNetValue>
          <OrderPrimarySchemeDiscount>1</OrderPrimarySchemeDiscount>
          <OrderQtyInStdUnit>1.1</OrderQtyInStdUnit>
          <OrderQtyInSuperUnit>1.1</OrderQtyInSuperUnit>
          <OrderQtyInUnits>1.1</OrderQtyInUnits>
          <OrderSchemeQtyUnit>1.1</OrderSchemeQtyUnit>
          <OrderSecondarySchemeDiscount>1</OrderSecondarySchemeDiscount>
          <OrderTaxValue>1</OrderTaxValue>
          <OrderTotalValue>1</OrderTotalValue>
          <OrderTradeDiscount>1</OrderTradeDiscount>
          <OrderUnitPrice>1.1</OrderUnitPrice>
          <ProductErpId>sample string 1</ProductErpId>
        </ProductList>
      </ProductList>
      <RSMErpId>sample string 21</RSMErpId>
      <RegionName>sample string 25</RegionName>
      <TerritoryName>sample string 26</TerritoryName>
      <TokenId>1</TokenId>
      <VisitId>1</VisitId>
      <ZSMErpId>sample string 20</ZSMErpId>
      <ZoneName>sample string 24</ZoneName>
    </SecondaryOrderVsInvoices>
  </data>
  <dataStatus>true</dataStatus>
  <nexttoken>2</nexttoken>
</SecondaryOrderVsInvoicesApiModel>