SmartAcc DynaMod Web API v2024.4 Build 0000 - Local

<back to all web services

PromotionMemberGroupPlanStockByLocation

Promotion Module

Promotion API

Requires Authentication
Required permission:PromotionMemberGroupPlanStockByLocation-Enquiry.GET
The following routes are available for this service:
GET/Promotion/MemberGroup/{AcLocationID}/{AcStockID}/{AcStockUOMID}Get Member Group Stock Promotion Price by given Location, StockID, Stock UOM ID
PromotionMemberGroupPlanStockByLocation Parameters:
NameParameterData TypeRequiredDescription
AcLocationIDpathstringNo
AcStockIDpathstringNo
AcStockUOMIDpathstringNo
PromotionMemberGroupPlanStockByLocationResponse Parameters:
NameParameterData TypeRequiredDescription
PromotionMemberGroupPlanStockByLocationformList<pfapi70030GetPromotionMemberGroupPlanStockByLocation>No
ResponseStatusformResponseStatusNo
pfapi70030GetPromotionMemberGroupPlanStockByLocation Parameters:
NameParameterData TypeRequiredDescription
AcPromotionMemberGroupPlanIDformstringNo
AcPromotionMemberGroupPlanSchPromoMIDformstringNo
AcPromotionMemberGroupPlanSchPromoMBatchIDformstringNo
AcPromotionMemberGroupPlanSchStockIDformstringNo
AcPromotionMemberGroupPlanRefNoformstringNoPromtion Campaign Reference Number
AcPromotionMemberGroupPlanDescformstringNoPromtion Campaign Description
AcPromotionMemberGroupPlanSchPromoMDescformstringNoScheduled/Adhoc Activity Description
AcPromotionMemberGroupPlanSchPromoMBatchRefNoformstringNoScheduled/Adhoc Batch Reference Number
AcPromotionMemberGroupPlanSchPromoMBatchDescformstringNoScheduled/Adhoc Batch Description
SchPromoIsAllDayEventformstringNo
AcStockIDformstringNo
AcStockUOMIDformstringNo
StockPrice1formdecimalNo
StockPrice2formdecimalNo
StockPrice3formdecimalNo
StockPrice4formdecimalNo
StockPrice5formdecimalNo
POSPriceformdecimalNo
DiscountAmountformdecimalNoDiscounted Amount
POSPromoPriceformdecimalNoPromotion Price
PromotionPlanTypeformstringNoPromotion Plan Type: SCHEDULED/ADHOC

To override the Content-type in your clients, use the HTTP Accept Header, append the .xml suffix or ?format=xml

HTTP + XML

The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.

GET /Promotion/MemberGroup/{AcLocationID}/{AcStockID}/{AcStockUOMID} HTTP/1.1 
Host: snr2u.com 
Accept: application/xml
HTTP/1.1 200 OK
Content-Type: application/xml
Content-Length: length

<PromotionMemberGroupPlanStockByLocationResponse xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/SmartDynaModWebAPI.ServiceModel">
  <PromotionMemberGroupPlanStockByLocation xmlns:d2p1="http://schemas.datacontract.org/2004/07/SmartDynaModWebAPI.ServiceModel.Types">
    <d2p1:pfapi70030GetPromotionMemberGroupPlanStockByLocation>
      <d2p1:AcPromotionMemberGroupPlanDesc>String</d2p1:AcPromotionMemberGroupPlanDesc>
      <d2p1:AcPromotionMemberGroupPlanID>String</d2p1:AcPromotionMemberGroupPlanID>
      <d2p1:AcPromotionMemberGroupPlanRefNo>String</d2p1:AcPromotionMemberGroupPlanRefNo>
      <d2p1:AcPromotionMemberGroupPlanSchPromoMBatchDesc>String</d2p1:AcPromotionMemberGroupPlanSchPromoMBatchDesc>
      <d2p1:AcPromotionMemberGroupPlanSchPromoMBatchID>String</d2p1:AcPromotionMemberGroupPlanSchPromoMBatchID>
      <d2p1:AcPromotionMemberGroupPlanSchPromoMBatchRefNo>String</d2p1:AcPromotionMemberGroupPlanSchPromoMBatchRefNo>
      <d2p1:AcPromotionMemberGroupPlanSchPromoMDesc>String</d2p1:AcPromotionMemberGroupPlanSchPromoMDesc>
      <d2p1:AcPromotionMemberGroupPlanSchPromoMID>String</d2p1:AcPromotionMemberGroupPlanSchPromoMID>
      <d2p1:AcPromotionMemberGroupPlanSchStockID>String</d2p1:AcPromotionMemberGroupPlanSchStockID>
      <d2p1:AcStockID>String</d2p1:AcStockID>
      <d2p1:AcStockUOMID>String</d2p1:AcStockUOMID>
      <d2p1:DiscountAmount>0</d2p1:DiscountAmount>
      <d2p1:POSPrice>0</d2p1:POSPrice>
      <d2p1:POSPromoPrice>0</d2p1:POSPromoPrice>
      <d2p1:PromotionPlanType>String</d2p1:PromotionPlanType>
      <d2p1:SchPromoIsAllDayEvent>String</d2p1:SchPromoIsAllDayEvent>
      <d2p1:StockPrice1>0</d2p1:StockPrice1>
      <d2p1:StockPrice2>0</d2p1:StockPrice2>
      <d2p1:StockPrice3>0</d2p1:StockPrice3>
      <d2p1:StockPrice4>0</d2p1:StockPrice4>
      <d2p1:StockPrice5>0</d2p1:StockPrice5>
    </d2p1:pfapi70030GetPromotionMemberGroupPlanStockByLocation>
  </PromotionMemberGroupPlanStockByLocation>
  <ResponseStatus xmlns:d2p1="http://schemas.servicestack.net/types">
    <d2p1:ErrorCode>String</d2p1:ErrorCode>
    <d2p1:Message>String</d2p1:Message>
    <d2p1:StackTrace>String</d2p1:StackTrace>
    <d2p1:Errors>
      <d2p1:ResponseError>
        <d2p1:ErrorCode>String</d2p1:ErrorCode>
        <d2p1:FieldName>String</d2p1:FieldName>
        <d2p1:Message>String</d2p1:Message>
        <d2p1:Meta xmlns:d5p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
          <d5p1:KeyValueOfstringstring>
            <d5p1:Key>String</d5p1:Key>
            <d5p1:Value>String</d5p1:Value>
          </d5p1:KeyValueOfstringstring>
        </d2p1:Meta>
      </d2p1:ResponseError>
    </d2p1:Errors>
    <d2p1:Meta xmlns:d3p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
      <d3p1:KeyValueOfstringstring>
        <d3p1:Key>String</d3p1:Key>
        <d3p1:Value>String</d3p1:Value>
      </d3p1:KeyValueOfstringstring>
    </d2p1:Meta>
  </ResponseStatus>
</PromotionMemberGroupPlanStockByLocationResponse>