- 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_setup
Developing
POST
/api/xd/1.0/set_xn_route_setup
Request
Body Params application/json
xn_route_setup
arrayĀ [object {23}]Ā
required
principle_code
stringĀ
required
<= 48 characters
route_code
stringĀ
required
<= 48 characters
route_name
stringĀ
required
<= 200 characters
route_name_a
stringĀ
required
<= 200 characters
admin_email
stringĀ
required
<= 400 characters
hht_device_serial_number
stringĀ
required
<= 200 characters
supervisor_code
stringĀ
required
<= 48 characters
is_active
integerĀ
required
max_load_limit
numberĀ <float>
required
journey_plan_code
stringĀ
required
<= 48 characters
printer_name
stringĀ
required
<= 200 characters
bank_account_number
stringĀ
required
<= 100 characters
credit_limit
numberĀ <float>
required
exposure_limit
numberĀ <float>
optional
sales_quota_limit
numberĀ <float>
required
authorized_item_code
stringĀ
required
<= 48 characters
sector
integerĀ
required
use_back_office
integerĀ
required
load_plan_code
stringĀ
required
<= 48 characters
route_type
integerĀ
required
allow_inventory_cycle
integerĀ
required
default_delivery_date
stringĀ <date-time>
required
default_cash_customer
stringĀ
required
<= 28 characters
Example
{
"xn_route_setup": [
{
"principle_code": "string",
"route_code": "string",
"route_name": "string",
"route_name_a": "string",
"admin_email": "string",
"hht_device_serial_number": "string",
"supervisor_code": "string",
"is_active": 0,
"max_load_limit": 0,
"journey_plan_code": "string",
"printer_name": "string",
"bank_account_number": "string",
"credit_limit": 0,
"exposure_limit": 0,
"sales_quota_limit": 0,
"authorized_item_code": "string",
"sector": 0,
"use_back_office": 0,
"load_plan_code": "string",
"route_type": 0,
"allow_inventory_cycle": 0,
"default_delivery_date": "2024-04-17T06:23:00.490Z",
"default_cash_customer": "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_setup' \
--header 'Content-Type: application/json' \
--data-raw '{
"xn_route_setup": [
{
"principle_code": "string",
"route_code": "string",
"route_name": "string",
"route_name_a": "string",
"admin_email": "string",
"hht_device_serial_number": "string",
"supervisor_code": "string",
"is_active": 0,
"max_load_limit": 0,
"journey_plan_code": "string",
"printer_name": "string",
"bank_account_number": "string",
"credit_limit": 0,
"exposure_limit": 0,
"sales_quota_limit": 0,
"authorized_item_code": "string",
"sector": 0,
"use_back_office": 0,
"load_plan_code": "string",
"route_type": 0,
"allow_inventory_cycle": 0,
"default_delivery_date": "2024-04-17T06:23:00.490Z",
"default_cash_customer": "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-08-06 11:30:24