SmartAcc DynaMod Web API v2024.4 Build 0000 - Local

<back to all web services

PromotionPlanStockByLocation

Promotion Module

Promotion API

Requires Authentication
Required permission:PromotionPlanStockByLocation-Enquiry.GET
The following routes are available for this service:
GET/Promotion/Stock/{AcLocationID}/{AcStockID}/{AcStockUOMID}Get Stock Promotion Price by given Location, StockID, Stock UOM ID
GET/Promotion/Stock/StockArticleNo/{AcLocationID}/{StockArticleNo}Get Stock Promotion Price by given Location, Stock Article Number
PromotionPlanStockByLocation Parameters:
NameParameterData TypeRequiredDescription
AcLocationIDpathstringNo
AcStockIDpathstringNo
AcStockUOMIDpathstringNo
StockArticleNopathstringNo
PromotionPlanStockByLocationResponse Parameters:
NameParameterData TypeRequiredDescription
PromotionPlanStockByLocationformList<pfapi70020GetPromotionPlanStockByLocation>No
ResponseStatusformResponseStatusNo
pfapi70020GetPromotionPlanStockByLocation Parameters:
NameParameterData TypeRequiredDescription
AcPromotionPlanIDformstringNo
AcPromotionPlanSchPromoMIDformstringNo
AcPromotionPlanSchPromoMBatchIDformstringNo
AcPromotionPlanSchStockIDformstringNo
AcPromotionPlanRefNoformstringNoPromtion Campaign Reference Number
AcPromotionPlanDescformstringNoPromtion Campaign Description
AcPromotionPlanSchPromoMDescformstringNoScheduled/Adhoc Activity Description
AcPromotionPlanSchPromoMBatchRefNoformstringNoScheduled/Adhoc Batch Reference Number
AcPromotionPlanSchPromoMBatchDescformstringNoScheduled/Adhoc Batch Description
SchPromoIsAllDayEventformstringNo
AcStockIDformstringNo
AcStockUOMIDformstringNo
StockArticleNoformstringNo
AcStockColorIDformstringNo
AcStockColorDescformstringNo
AcStockSizeIDformstringNo
AcStockSizeDescformstringNo
StockPrice1formdecimalNo
StockPrice2formdecimalNo
StockPrice3formdecimalNo
StockPrice4formdecimalNo
StockPrice5formdecimalNo
POSPriceformdecimalNo
DiscountAmountformdecimalNo
POSPromoPriceformdecimalNo
DiscountAmountForMemberformdecimalNo
PosPromoMemberPriceformdecimalNo
PromotionPlanTypeformstringNoPromotion Plan Type: SCHEDULED/ADHOC

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

HTTP + JSV

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

GET /Promotion/Stock/{AcLocationID}/{AcStockID}/{AcStockUOMID} HTTP/1.1 
Host: snr2u.com 
Accept: text/jsv
HTTP/1.1 200 OK
Content-Type: text/jsv
Content-Length: length

{
	PromotionPlanStockByLocation: 
	[
		{
			AcPromotionPlanID: String,
			AcPromotionPlanSchPromoMID: String,
			AcPromotionPlanSchPromoMBatchID: String,
			AcPromotionPlanSchStockID: String,
			AcPromotionPlanRefNo: String,
			AcPromotionPlanDesc: String,
			AcPromotionPlanSchPromoMDesc: String,
			AcPromotionPlanSchPromoMBatchRefNo: String,
			AcPromotionPlanSchPromoMBatchDesc: String,
			SchPromoIsAllDayEvent: String,
			AcStockID: String,
			AcStockUOMID: String,
			StockArticleNo: String,
			AcStockColorID: String,
			AcStockColorDesc: String,
			AcStockSizeID: String,
			AcStockSizeDesc: String,
			StockPrice1: 0,
			StockPrice2: 0,
			StockPrice3: 0,
			StockPrice4: 0,
			StockPrice5: 0,
			POSPrice: 0,
			DiscountAmount: 0,
			POSPromoPrice: 0,
			DiscountAmountForMember: 0,
			PosPromoMemberPrice: 0,
			PromotionPlanType: String
		}
	],
	ResponseStatus: 
	{
		ErrorCode: String,
		Message: String,
		StackTrace: String,
		Errors: 
		[
			{
				ErrorCode: String,
				FieldName: String,
				Message: String,
				Meta: 
				{
					String: String
				}
			}
		],
		Meta: 
		{
			String: String
		}
	}
}