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 .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/MemberGroup/{AcLocationID}/{AcStockID}/{AcStockUOMID} HTTP/1.1 
Host: snr2u.com 
Accept: text/jsv
HTTP/1.1 200 OK
Content-Type: text/jsv
Content-Length: length

{
	PromotionMemberGroupPlanStockByLocation: 
	[
		{
			AcPromotionMemberGroupPlanID: String,
			AcPromotionMemberGroupPlanSchPromoMID: String,
			AcPromotionMemberGroupPlanSchPromoMBatchID: String,
			AcPromotionMemberGroupPlanSchStockID: String,
			AcPromotionMemberGroupPlanRefNo: String,
			AcPromotionMemberGroupPlanDesc: String,
			AcPromotionMemberGroupPlanSchPromoMDesc: String,
			AcPromotionMemberGroupPlanSchPromoMBatchRefNo: String,
			AcPromotionMemberGroupPlanSchPromoMBatchDesc: String,
			SchPromoIsAllDayEvent: String,
			AcStockID: String,
			AcStockUOMID: String,
			StockPrice1: 0,
			StockPrice2: 0,
			StockPrice3: 0,
			StockPrice4: 0,
			StockPrice5: 0,
			POSPrice: 0,
			DiscountAmount: 0,
			POSPromoPrice: 0,
			PromotionPlanType: String
		}
	],
	ResponseStatus: 
	{
		ErrorCode: String,
		Message: String,
		StackTrace: String,
		Errors: 
		[
			{
				ErrorCode: String,
				FieldName: String,
				Message: String,
				Meta: 
				{
					String: String
				}
			}
		],
		Meta: 
		{
			String: String
		}
	}
}