- 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/xd/1.0/get_promotion
POST
/api/xd/1.0/get_promotion
xdPromotion
Request
Body Params application/json
principle_code
string
required
<= 50 characters
tenant_code
string
optional
<= 50 characters
location_code
string
optional
<= 50 characters
customer_code
string
optional
<= 50 characters
start_date_time
string <date-time>
optional
end_date_time
string <date-time>
optional
page_number
integer
required
Example
{
"principle_code": "string",
"tenant_code": "string",
"location_code": "string",
"customer_code": "string",
"start_date_time": "2024-08-06T10:27:34.446Z",
"end_date_time": "2024-08-06T10:27:34.446Z",
"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/xd/1.0/get_promotion' \
--header 'Content-Type: application/json' \
--data-raw '{
"principle_code": "string",
"tenant_code": "string",
"location_code": "string",
"customer_code": "string",
"start_date_time": "2024-08-06T10:27:34.446Z",
"end_date_time": "2024-08-06T10:27:34.446Z",
"page_number": 0
}'
Responses
🟢200Success
application/json
Body
array of:
tenant_code
string
required
<= 12 characters
promotion_code
string
required
<= 50 characters
promotion_description
string
required
<= 50 characters
promotion_remarks
string
optional
<= 500 characters
promotion_type_code
enum<integer> <int32>
required
Allowed values:
123456789
range_basis
enum<integer> <int32>
required
Allowed values:
012
amount_basis
enum<integer> <int32>
optional
Allowed values:
0123
exclusion_option
enum<integer> <int32>
required
Allowed values:
10
promotion_indicator
enum<string>
optional
<= 3 characters
Allowed values:
NULLPD
condtion_type
string
optional
<= 25 characters
subcondtion_type
string
optional
<= 25 characters
promotion_product_level
enum<integer> <int32>
optional
Allowed values:
0123456789
enable_base_set
enum<integer> <int32>
required
Allowed values:
01
enable_foc_set
enum<integer> <int32>
required
Allowed values:
01
pro_rata
enum<string>
optional
<= 1 characters
Allowed values:
""YN
allow_promotion_quota
enum<integer> <int32>
required
Allowed values:
0123
promotion_quota
number <float>
required
promotion_quota_code
string
optional
<= 50 characters
minimum_sku
integer <int32>
optional
display_type
enum<integer> <int32>
optional
Allowed values:
012
application_type
enum<integer> <int32>
optional
Allowed values:
012
disable_gift_icon
enum<integer> <int32>
optional
Allowed values:
01
allow_qps
integer <int32>
optional
promotion_mechanics
string
optional
<= 25 characters
is_discretionary_promotion
integer <int32>
optional
created_date_time
string <date-time>
optional
modified_date_time
string <date-time>
optional
closure_type
integer <int32>
optional
bundle_promotion
integer <int32>
optional
source_tags
string
optional
<= 50 characters
is_consumer_promotion
integer <int32>
optional
special_promotion
integer <int32>
optional
always_apply
string
optional
<= 2 characters
promotionAssignment
array [object {7}]
optional
tenant_code
string
required
<= 12 characters
promotion_code
string
required
<= 25 characters
range_low
number <float>
required
range_high
number <float>
required
repeating_range
integer <int32>
required
promotion_amount
number <float>
required
slab_number
integer <int32>
optional
productGroup
array [object {18}]
optional
tenant_code
string
required
<= 12 characters
promotion_code
string
required
<= 25 characters
group_type
enum<string>
required
<= 1 characters
Allowed values:
QA
item_code
string
optional
<= 18 characters
unitsof_measure
string
optional
<= 20 characters
quantity
integer <int32>
required
product_hierarchy_code
string
optional
<= 100 characters
product_category_code1
string
optional
<= 12 characters
product_category_code2
string
optional
<= 12 characters
product_category_code3
string
optional
<= 12 characters
product_category_code4
string
optional
<= 12 characters
product_category_code5
string
optional
<= 12 characters
product_category_code6
string
optional
<= 12 characters
product_category_code7
string
optional
<= 12 characters
product_category_code8
string
optional
<= 12 characters
product_category_code9
string
optional
<= 12 characters
product_category_code10
string
optional
<= 12 characters
set_code
string
optional
<= 18 characters
customerPromotionMapping
array [object {20}]
optional
tenant_code
string
required
<= 12 characters
location_code
string
required
<= 12 characters
promotion_code
string
required
<= 12 characters
customer_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
start_date
string <date-time>
required
end_date
string <date-time>
required
active_indicator
integer <int32>
required
sequence_no
integer <int32>
required
apply_count
integer <int32>
optional
source_tag
string
optional
<= 100 characters
Example
[
{
"tenant_code": "string",
"promotion_code": "string",
"promotion_description": "string",
"promotion_remarks": "string",
"promotion_type_code": 0,
"range_basis": 0,
"amount_basis": 0,
"exclusion_option": 0,
"promotion_indicator": "string",
"condtion_type": "string",
"subcondtion_type": "string",
"promotion_product_level": 0,
"enable_base_set": 0,
"enable_foc_set": 0,
"pro_rata": "string",
"allow_promotion_quota": 0,
"promotion_quota": 0,
"promotion_quota_code": "string",
"minimum_sku": 0,
"display_type": 0,
"application_type": 0,
"disable_gift_icon": 0,
"allow_qps": 0,
"promotion_mechanics": "string",
"is_discretionary_promotion": 0,
"created_date_time": "2024-08-28T07:56:08.304Z",
"modified_date_time": "2024-08-28T07:56:08.304Z",
"closure_type": 0,
"bundle_promotion": 0,
"source_tags": "string",
"is_consumer_promotion": 0,
"special_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
}
],
"product_group": [
{
"tenant_code": "string",
"promotion_code": "string",
"group_type": "string",
"item_code": "string",
"units_of_measure": "string",
"quantity": 0,
"product_hierarchy_code": "string",
"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"
}
],
"customer_promotion_mapping": [
{
"tenant_code": "string",
"promotion_code": "string",
"customer_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",
"start_date": "2024-08-28T07:56:08.304Z",
"end_date": "2024-08-28T07:56:08.304Z",
"active_indicator": 0,
"sequence_no": 0,
"apply_count": 0,
"source_tag": "string"
}
]
}
]
Modified at 2024-08-06 10:30:26