- LIGHTHOUSE Rest API Walkthrough
- Lighthouse APIs
- Authentication
- TransactionStatus
- xcAssetDetail
- Shopping Cart
- xcAuthorizedProduct
- xcCFAMapping
- xcCFAMaster
- xcCFAStock
- xcDistributorDetail
- xcGetPromotionDetail
- xcHSNMaster
- xcJourneyPlan
- xcSubDistributorMargin
- xcOrganizationHierarchy
- xcGetOrganizationHierarchy
- xcOutlet
- xcOutletPriceMapping
- xcPricingControl
- xcPricingPlan
- xcProduct
- xcRouteDetail
- xcTerritoryHierarchy
- xcUserList
- xdARCollection
- xdAROpenItems
- xdCreditDebitNote
- xdCreditDetails
- xdDMSARCollection
- xdEmptieDispatchAdvice
- xdGetPurchaseOrder
- xdGRNDetails
- xdLocationCreditDetails
- xdOpenItems
- xdPendingInvoice
- xdPoFillRate
- xdPOStatus
- xdProduct
- xdPromotion
- xdPurchaseInvoice
- xdSalesInvoice
- xdSalesOrder
- xdSalesOrderStatusUpdate
- xdSalesReturn
- xdStockTransfer
- xdWarehouseStock
- xdInterDTStockIn
- xdInterDTStockOut
- xdGetPOShoppingCart
- xdReturnOrder
- xdDMSStockAdjustment
- xcDistributorPriceMapping
- xdLocationDetails
- xdBeatDetails
- xdVehicleDetails
- xdHHTMaster
- xdPricingPlan
- xdPrimaryPrice
- xdAuthorizedProduct
- xdWarehouseInventory
- xdCustomerMaster
- xdPromotionDefinition
- xdJourneyPlan
- xdRouteSetupV2
- xdCustomerTarget
- xdRouteTarget
- xdSalesInvoice
- xdSchemeAchievement
- xdVanLoad
- xdVanStock
- xdOrderHistoryV1
- xnBeatMaster
- xdSupervisorDetails
- xnRouteSetup
- xdVisitSummaryList
- xdGetNewCustomerRequest
- xdCustomerInventory
- xdGetUploadSyncKeys
- xdGetLoadRequest
- xdGetCustomerGeoCode
- xdDMSVanOffLoad
- xdGetRetailerContactInfo
- xdRouteSetupV2
- xdGetSalesman
- xdCustomer
- xdSetLoadRequest
- xdLoadOut
- xdLoadOutStatus
- xcPromotion
- xcProductHierarchy
- xdIQData
- xdSetReturnHistoryV1
- xdSetDNPlanInfo
- xnJourneyPlanTemplate
- xdGetBeatMaster
- xcGetListSchemes
- xcGetSchemeIsDuplicate
- xcUpdateShortClosure
- xcCreateScheme
- xcGetListBundleSchemes
- xdPODURL
- xdGetPromoAccrualDetails
- xcExclusionList
- xdProductMaster
- TerritoryRoute
- TerritoryRoute Copy
/api/xc/1.0/set_promotion
Developing
POST
/api/xc/1.0/set_promotion
Request
Body Params application/json
promotion_master
arrayĀ [object {68}]Ā
required
sales_Organisation
stringĀ
optional
promotionCode
stringĀ
optional
promotionDescription
stringĀ
optional
ioCode
stringĀ
optional
promotionQuotaCode
stringĀ
optional
disbursementMethod
integerĀ
optional
rangeBasis
integerĀ
optional
promotionTypeCode
integerĀ
optional
proRata
stringĀ
optional
bundle_Promotion
integerĀ
optional
exclusionOption
integerĀ
optional
sequenceNumber
integerĀ
optional
specialPromotion
integerĀ
optional
start_Date
stringĀ
optional
end_Date
stringĀ
optional
slabnum
integerĀ
optional
slabfrom
integerĀ
optional
slabto
integerĀ
optional
discount
integerĀ
optional
repeating_Range
integerĀ
optional
productGroup
stringĀ
optional
promotionQuantity
integerĀ
optional
unitOfMeasure
stringĀ
optional
skuCode
stringĀ
optional
product_Hierarchy
stringĀ
optional
brand
stringĀ
optional
beverage_Category
stringĀ
optional
beverage_Product
stringĀ
optional
packType
stringĀ
optional
flavor
stringĀ
optional
carbonationIndicator
stringĀ
optional
packSize
stringĀ
optional
productGroupBasis
stringĀ
optional
tradeMark
stringĀ
optional
general_Item_Category_Group
stringĀ
optional
numberOfUniqueSKU
integerĀ
optional
displayweightage
integerĀ
optional
territory
stringĀ
optional
distributorCode
stringĀ
optional
outletHierarchyName
stringĀ
optional
outletCode
stringĀ
optional
premiseStatus
stringĀ
optional
populatedArea
stringĀ
optional
classification
stringĀ
optional
category
stringĀ
optional
customerGroupCode
stringĀ
optional
customerBusienssType
stringĀ
optional
customerKeyAccount
stringĀ
optional
redCustomerName
stringĀ
optional
customerType
stringĀ
optional
coolerCustomer
stringĀ
optional
exclusionCustomerCode
stringĀ
optional
digital_Agreement
stringĀ
optional
qualificationMode
stringĀ
optional
amountBasis
stringĀ
optional
allowCapQuota
stringĀ
optional
sourceTags_Client
stringĀ
optional
applyCount_Client
integerĀ
optional
applyOn_Basket
integerĀ
optional
cpc
integerĀ
optional
exclusion_Group_Code
stringĀ
optional
header_Level_Amount_Basis
integerĀ
optional
isConsumer_Promotion
integerĀ
optional
promotionQuota
integerĀ
optional
useIn_Or
integerĀ
optional
volume
integerĀ
optional
isDiscretionary
integerĀ
optional
dan
integerĀ
optional
Example
{
"promotion_master": [
{
"sales_Organisation": "string",
"promotionCode": "string",
"promotionDescription": "string",
"ioCode": "string",
"promotionQuotaCode": "string",
"disbursementMethod": 0,
"rangeBasis": 0,
"promotionTypeCode": 0,
"proRata": "string",
"bundle_Promotion": 0,
"exclusionOption": 0,
"sequenceNumber": 0,
"specialPromotion": 0,
"start_Date": "string",
"end_Date": "string",
"slabnum": 0,
"slabfrom": 0,
"slabto": 0,
"discount": 0,
"repeating_Range": 0,
"productGroup": "string",
"promotionQuantity": 0,
"unitOfMeasure": "string",
"skuCode": "string",
"product_Hierarchy": "string",
"brand": "string",
"beverage_Category": "string",
"beverage_Product": "string",
"packType": "string",
"flavor": "string",
"carbonationIndicator": "string",
"packSize": "string",
"productGroupBasis": "string",
"tradeMark": "string",
"general_Item_Category_Group": "string",
"numberOfUniqueSKU": 0,
"displayweightage": 0,
"territory": "string",
"distributorCode": "string",
"outletHierarchyName": "string",
"outletCode": "string",
"premiseStatus": "string",
"populatedArea": "string",
"classification": "string",
"category": "string",
"customerGroupCode": "string",
"customerBusienssType": "string",
"customerKeyAccount": "string",
"redCustomerName": "string",
"customerType": "string",
"coolerCustomer": "string",
"exclusionCustomerCode": "string",
"digital_Agreement": "string",
"qualificationMode": "string",
"amountBasis": "string",
"allowCapQuota": "string",
"sourceTags_Client": "string",
"applyCount_Client": 0,
"applyOn_Basket": 0,
"cpc": 0,
"exclusion_Group_Code": "string",
"header_Level_Amount_Basis": 0,
"isConsumer_Promotion": 0,
"promotionQuota": 0,
"useIn_Or": 0,
"volume": 0,
"isDiscretionary": 0,
"dan": 0
}
]
}
Request samples
Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R
Request Request Example
Shell
JavaScript
Java
Swift
curl --location --request POST 'https://testapi.com/api/xc/1.0/set_promotion' \
--header 'Content-Type: application/json' \
--data-raw '{
"promotion_master": [
{
"sales_Organisation": "string",
"promotionCode": "string",
"promotionDescription": "string",
"ioCode": "string",
"promotionQuotaCode": "string",
"disbursementMethod": 0,
"rangeBasis": 0,
"promotionTypeCode": 0,
"proRata": "string",
"bundle_Promotion": 0,
"exclusionOption": 0,
"sequenceNumber": 0,
"specialPromotion": 0,
"start_Date": "string",
"end_Date": "string",
"slabnum": 0,
"slabfrom": 0,
"slabto": 0,
"discount": 0,
"repeating_Range": 0,
"productGroup": "string",
"promotionQuantity": 0,
"unitOfMeasure": "string",
"skuCode": "string",
"product_Hierarchy": "string",
"brand": "string",
"beverage_Category": "string",
"beverage_Product": "string",
"packType": "string",
"flavor": "string",
"carbonationIndicator": "string",
"packSize": "string",
"productGroupBasis": "string",
"tradeMark": "string",
"general_Item_Category_Group": "string",
"numberOfUniqueSKU": 0,
"displayweightage": 0,
"territory": "string",
"distributorCode": "string",
"outletHierarchyName": "string",
"outletCode": "string",
"premiseStatus": "string",
"populatedArea": "string",
"classification": "string",
"category": "string",
"customerGroupCode": "string",
"customerBusienssType": "string",
"customerKeyAccount": "string",
"redCustomerName": "string",
"customerType": "string",
"coolerCustomer": "string",
"exclusionCustomerCode": "string",
"digital_Agreement": "string",
"qualificationMode": "string",
"amountBasis": "string",
"allowCapQuota": "string",
"sourceTags_Client": "string",
"applyCount_Client": 0,
"applyOn_Basket": 0,
"cpc": 0,
"exclusion_Group_Code": "string",
"header_Level_Amount_Basis": 0,
"isConsumer_Promotion": 0,
"promotionQuota": 0,
"useIn_Or": 0,
"volume": 0,
"isDiscretionary": 0,
"dan": 0
}
]
}'
Responses
š¢200OK
application/json
Body
status
integerĀ
required
message
stringĀ
required
transaction_id
stringĀ
required
record_count
integerĀ
required
Example
{
"status": 0,
"message": "string",
"transaction_id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
"record_count": 0
}
Modified atĀ 2024-06-24 04:54:48