- 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_route_setup
Developing
POST
/api/xd/1.0/set_route_setup
Request
Body Params application/json
route_setup
arrayĀ [object {28}]Ā
required
tenant_code
stringĀ
required
<= 48 characters
location_code
stringĀ
required
<= 48 characters
route_code
stringĀ
required
<= 48 characters
route_name
stringĀ
required
<= 200 characters
route_name_a
stringĀ
optional
<= 200 characters
admin_email
stringĀ
optional
<= 400 characters
vehicle_code
stringĀ
required
<= 48 characters
hht_device_serial_number
stringĀ
optional
<= 200 characters
salesman_code
stringĀ
optional
<= 48 characters
is_active
integerĀ
required
max_load_limit
numberĀ <float>
required
warehouse_code
stringĀ
optional
<= 48 characters
gl_account_code
stringĀ
optional
<= 48 characters
journey_plan_code
stringĀ
optional
<= 48 characters
printer_name
stringĀ
optional
<= 400 characters
bank_account_number
stringĀ
optional
<= 100 characters
credit_limit
numberĀ <float>
optional
exposure_limit
numberĀ <float>
optional
authorized_item_code
stringĀ
optional
<= 48 characters
sector
integerĀ
required
use_back_office
integerĀ
required
load_plan_code
stringĀ
optional
<= 48 characters
route_type
integerĀ
optional
allow_inventory_cycle
integerĀ
optional
default_delivery_date
stringĀ <date-time>
optional
default_cash_customer
integerĀ
optional
sales_quota_limit
numberĀ <float>
optional
route_division
arrayĀ [object {4}]Ā
optional
Example
{
"route_setup": [
{
"tenant_code": "string",
"location_code": "string",
"route_code": "string",
"route_name": "string",
"route_name_a": "string",
"admin_email": "string",
"vehicle_code": "string",
"hht_device_serial_number": "string",
"salesman_code": "string",
"is_active": 0,
"max_load_limit": 0,
"warehouse_code": "string",
"gl_account_code": "string",
"journey_plan_code": "string",
"printer_name": "string",
"bank_account_number": "string",
"credit_limit": 0,
"exposure_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-16T11:26:01.272Z",
"default_cash_customer": "string",
"sales_quota_limit": 0,
"route_division": [
{
"tenant_code": "string",
"location_code": "string",
"route_code": "string",
"division_code": "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_route_setup' \
--header 'Content-Type: application/json' \
--data-raw '{
"route_setup": [
{
"tenant_code": "string",
"location_code": "string",
"route_code": "string",
"route_name": "string",
"route_name_a": "string",
"admin_email": "string",
"vehicle_code": "string",
"hht_device_serial_number": "string",
"salesman_code": "string",
"is_active": 0,
"max_load_limit": 0,
"warehouse_code": "string",
"gl_account_code": "string",
"journey_plan_code": "string",
"printer_name": "string",
"bank_account_number": "string",
"credit_limit": 0,
"exposure_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-16T11:26:01.272Z",
"default_cash_customer": "string",
"sales_quota_limit": 0,
"route_division": [
{
"tenant_code": "string",
"location_code": "string",
"route_code": "string",
"division_code": "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": "string",
"record_count": 0
}
Modified atĀ 2024-04-16 11:31:49