- 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/get_promotion_detail
POST
/api/xc/1.0/get_promotion_detail
xcGetPromotionDetail
Request
Body Params application/json
tenant_code
stringĀ Ā |Ā nullĀ
required
<= 10 characters
distributor_code
stringĀ Ā |Ā nullĀ
required
<= 30 characters
start_date
stringĀ <date-time>Ā |Ā nullĀ
optional
end_date
stringĀ <date-time>Ā |Ā nullĀ
optional
page_number
integerĀ <int32>
optional
Example
{
"tenant_code": "string",
"distributor_code": "string",
"start_date": "2019-08-24T14:15:22Z",
"end_date": "2019-08-24T14:15:22Z",
"page_number": 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/get_promotion_detail' \
--header 'Content-Type: application/json' \
--data-raw '{
"tenant_code": "string",
"distributor_code": "string",
"start_date": "2019-08-24T14:15:22Z",
"end_date": "2019-08-24T14:15:22Z",
"page_number": 0
}'
Responses
š¢200Success
application/json
Body
array of:
tenant_code
stringĀ
required
<= 12 characters
promotion_code
stringĀ
required
<= 25 characters
promotion_description
stringĀ
required
<= 50 characters
promotion_type_code
enum<integer>Ā <int32>
required
>= 1<= 6
Allowed values:
123456
range_basis
enum<integer>Ā <int32>
required
>= 0<= 2
Allowed values:
012
amount_basis
enum<integer>Ā <int32>
required
>= 0<= 2
Allowed values:
012
exclusion_option
integerĀ <int32>
optional
>= 0<= 1
promotion_indicator
stringĀ
required
<= 3 characters
condition_type
stringĀ
optional
<= 25 characters
special_promotion
integerĀ <int32>
optional
promotion_product_level
integerĀ <int32>
required
pro_rata
stringĀ
optional
<= 1 characters
allow_promotion_quota
integerĀ <int32>
optional
promotion_quota
numberĀ <double>
optional
promotion_quota_code
stringĀ
optional
<= 25 characters
allow_qps
integerĀ <int32>
required
approval_status
integerĀ <int32>
optional
closure_type
integerĀ <int32>
optional
is_discretionary_promotion
integerĀ <int32>
optional
created_date_time
stringĀ <date-time>
optional
modified_date_time
stringĀ <date-time>
optional
bundle_promotion
integerĀ <int32>
optional
source_tags
stringĀ
required
<= 500 characters
is_consumer_promotion
integerĀ <int32>
optional
always_apply
stringĀ
optional
promotion_assignment
arrayĀ [object {7}]Ā
optional
tenant_code
stringĀ
required
<= 12 characters
promotion_code
stringĀ
required
<= 25 characters
range_low
numberĀ <double>
required
range_high
numberĀ <double>
required
repeating_range
integerĀ <int32>
required
promotion_amount
numberĀ <double>
required
slab_number
integerĀ <int32>
required
outlet_promotion_mapping
arrayĀ [object {20}]Ā
optional
tenant_code
stringĀ
required
<= 12 characters
distributor_code
stringĀ
required
<= 12 characters
outlet_code
stringĀ
optional
<= 12 characters
category_code1
stringĀ
optional
<= 12 characters
category_code2
stringĀ
optional
<= 12 characters
category_code3
stringĀ
optional
<= 12 characters
category_code4
stringĀ
optional
<= 12 characters
category_code5
stringĀ
optional
<= 12 characters
category_code6
stringĀ
optional
<= 12 characters
category_code7
stringĀ
optional
<= 12 characters
category_code8
stringĀ
optional
<= 12 characters
category_code9
stringĀ
optional
<= 12 characters
category_code10
stringĀ
optional
<= 12 characters
outlet_hierarchy_code
stringĀ
optional
<= 20 characters
exclusion_outlet_codes
stringĀ
optional
promotion_code
stringĀ
required
<= 25 characters
start_date
stringĀ <date-time>
required
end_date
stringĀ <date-time>
required
active_indicator
enum<integer>Ā
required
Allowed values:
01
sequence_number
integerĀ
required
product_group
arrayĀ [object {22}]Ā
optional
tenant_code
stringĀ
required
<= 12 characters
promotion_code
stringĀ
required
<= 25 characters
group_type
stringĀ
required
<= 1 characters
product_hierarchy_code
stringĀ
required
<= 20 characters
product_category_type
integerĀ <int32>
optional
product_category_code
stringĀ
optional
<= 12 characters
category_code1
stringĀ
optional
<= 12 characters
category_code2
stringĀ
optional
<= 12 characters
category_code3
stringĀ
optional
<= 12 characters
category_code4
stringĀ
optional
<= 12 characters
category_code5
stringĀ
optional
<= 12 characters
category_code6
stringĀ
optional
<= 12 characters
category_code7
stringĀ
optional
<= 12 characters
category_code8
stringĀ
optional
<= 12 characters
category_code9
stringĀ
optional
<= 12 characters
category_code10
stringĀ
optional
<= 12 characters
item_code
stringĀ
required
<= 18 characters
units_of_measure
stringĀ
optional
<= 20 characters
item_type_code
integerĀ <int32>
optional
quantity
integerĀ <int32>
optional
product_group_id
stringĀ
optional
<= 16 characters
set_code
stringĀ
optional
<= 36 characters
distributor_promotion_mapping
arrayĀ [object {3}]Ā
optional
tenant_code
stringĀ
required
<= 12 characters
distributor_code
stringĀ
required
<= 12 characters
promotion_code
stringĀ
optional
<= 25 characters
Example
[
{
"tenant_code": "string",
"promotion_code": "string",
"promotion_description": "string",
"promotion_type_code": 0,
"range_basis": 0,
"amount_basis": 0,
"exclusion_option": 0,
"promotion_indicator": "string",
"condition_type": "string",
"special_promotion": 0,
"promotion_product_level": 0,
"pro_rata": "string",
"allow_promotion_quota": 0,
"promotion_quota": 0,
"promotion_quota_code": "string",
"allow_qps": 0,
"approval_status": 0,
"closure_type": 0,
"is_discretionary_promotion": 0,
"created_date_time": "2024-08-28T07:47:15.260Z",
"modified_date_time": "2024-08-28T07:47:15.260Z",
"bundle_promotion": 0,
"source_tags": "string",
"is_consumer_promotion": 0,
"always_apply": "string",
"promotion_assignment": [
{
"tenant_code": "string",
"promotion_code": "string",
"range_low": 0,
"range_high": 0,
"repeating_range": 0,
"promotion_amount": 0,
"slab_number": 0
}
],
"outlet_promotion_mapping": [
{
"tenant_code": "string",
"distributor_code": "string",
"outlet_code": "string",
"category_code1": "string",
"category_code2": "string",
"category_code3": "string",
"category_code4": "string",
"category_code5": "string",
"category_code6": "string",
"category_code7": "string",
"category_code8": "string",
"category_code9": "string",
"category_code10": "string",
"outlet_hierarchy_code": "string",
"exclusion_outlet_codes": "string",
"promotion_code": "string",
"start_date": "2024-08-28T07:47:15.260Z",
"end_date": "2024-08-28T07:47:15.260Z",
"active_indicator": 0,
"sequence_number": 0
}
],
"product_group": [
{
"tenant_code": "string",
"promotion_code": "string",
"group_type": "string",
"product_hierarchy_code": "string",
"product_category_type": 0,
"product_category_code": "string",
"item_code": "string",
"units_of_measure": "string",
"item_type_code": 0,
"quantity": 0,
"product_group_id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
"product_category_code1": "string",
"product_category_code2": "string",
"product_category_code3": "string",
"product_category_code4": "string",
"product_category_code5": "string",
"product_category_code6": "string",
"product_category_code7": "string",
"product_category_code8": "string",
"product_category_code9": "string",
"product_category_code10": "string",
"set_code": "string"
}
],
"distributor_promotion_mapping": [
{
"tenant_code": "string",
"distributor_code": "string",
"promotion_code": "string"
}
]
}
]
Modified atĀ 2024-04-18 09:43:36