- 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_route
POST
/api/xc/1.0/set_route
xcRouteDetail
Request
Body Params application/json
route_detail
arrayĀ [object {16}]Ā Ā |Ā nullĀ
optional
tenant_code
stringĀ
required
<= 24 characters
distributor_code
stringĀ
required
<= 24 characters
salesman_code
stringĀ
required
<= 24 characters
salesman_name
stringĀ
required
<= 100 characters
address
stringĀ
optional
<= 200 characters
city
stringĀ
optional
<= 40 characters
state
stringĀ
optional
<= 40 characters
zip
stringĀ
optional
<= 20 characters
phone
stringĀ
optional
<= 60 characters
is_active
enum<integer>Ā
required
Allowed values:
10
password
stringĀ
required
<= 100 characters
route_code
stringĀ
required
<= 24 characters
route_name
stringĀ
required
<= 100 characters
authorizeditem_code
stringĀ
required
<= 24 characters
journeyplan_code
stringĀ
required
<= 24 characters
journey_type
enum<integer>Ā
required
Allowed values:
411
Example
{
"route_detail": [
{
"tenant_code": "string",
"distributor_code": "string",
"salesman_code": "string",
"salesman_name": "string",
"address": "string",
"city": "string",
"state": "string",
"zip": "string",
"phone": "string",
"is_active": 1,
"password": "string",
"route_code": "string",
"route_name": "string",
"authorizeditem_code": "string",
"journeyplan_code": "string",
"journey_type": 4
}
]
}
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_route' \
--header 'Content-Type: application/json' \
--data-raw '{
"route_detail": [
{
"tenant_code": "string",
"distributor_code": "string",
"salesman_code": "string",
"salesman_name": "string",
"address": "string",
"city": "string",
"state": "string",
"zip": "string",
"phone": "string",
"is_active": 1,
"password": "string",
"route_code": "string",
"route_name": "string",
"authorizeditem_code": "string",
"journeyplan_code": "string",
"journey_type": 4
}
]
}'
Responses
š¢200Success
application/json
Body
status
integerĀ <int32>
optional
message
stringĀ Ā |Ā nullĀ
optional
transaction_id
stringĀ <uuid>
optional
record_count
integerĀ <int32>
optional
Example
{
"status": 0,
"message": "string",
"transaction_id": "0fec1e58-b197-4052-99cf-2218496c5482",
"record_count": 0
}
Modified atĀ 2024-04-23 11:56:37