- 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/set_xn_route_target
Developing
POST
/api/xd/1.0/set_xn_route_target
Request
Body Params application/json
route_target
arrayĀ [object {17}]Ā
required
principle_code
stringĀ
required
<= 48 characters
route_code
stringĀ
required
<= 48 characters
salesman_code
stringĀ
required
<= 48 characters
target_month
stringĀ
required
<= 14 characters
target_group
stringĀ
required
<= 100 characters
target_name
stringĀ
required
<= 100 characters
target_name_a
stringĀ
required
<= 100 characters
month_target
numberĀ <float>
required
till_date_target
numberĀ <float>
required
target_achieved
numberĀ <float>
required
sequence_number
integerĀ
required
threshold_1
numberĀ <float>
required
threshold_2
numberĀ <float>
required
display_indicator
integerĀ
required
kpi_indicator
stringĀ
required
<= 50 characters
allow_beat_target
integerĀ
required
history_indicator
stringĀ
required
<= 50 characters
Example
{
"route_target": [
{
"principle_code": "string",
"route_code": "string",
"salesman_code": "string",
"target_month": "string",
"target_group": "string",
"target_name": "string",
"target_name_a": "string",
"month_target": 0,
"till_date_target": 0,
"target_achieved": 0,
"sequence_number": 0,
"threshold_1": 0,
"threshold_2": 0,
"display_indicator": 0,
"kpi_indicator": "string",
"allow_beat_target": 0,
"history_indicator": "string"
}
]
}
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/set_xn_route_target' \
--header 'Content-Type: application/json' \
--data-raw '{
"route_target": [
{
"principle_code": "string",
"route_code": "string",
"salesman_code": "string",
"target_month": "string",
"target_group": "string",
"target_name": "string",
"target_name_a": "string",
"month_target": 0,
"till_date_target": 0,
"target_achieved": 0,
"sequence_number": 0,
"threshold_1": 0,
"threshold_2": 0,
"display_indicator": 0,
"kpi_indicator": "string",
"allow_beat_target": 0,
"history_indicator": "string"
}
]
}'
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-04-17 06:12:55