- 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_supervisor_details
Developing
POST
/api/xd/1.0/set_xn_supervisor_details
Request
Body Params application/json
supervisor_details
arrayĀ [object {22}]Ā
required
principle_code
stringĀ
required
<= 48 characters
tenant_code
stringĀ
required
<= 48 characters
location_code
stringĀ
required
<= 48 characters
route_code
stringĀ
required
<= 48 characters
supervisor_code
stringĀ
required
<= 48 characters
supervisor_name
stringĀ
required
<= 200 characters
supervisor_name_a
stringĀ
optional
<= 200 characters
address
stringĀ
optional
<= 200 characters
city
stringĀ
optional
<= 80 characters
state
stringĀ
optional
<= 40 characters
zip
stringĀ
optional
<= 20 characters
phone
stringĀ
optional
<= 120 characters
mobile
stringĀ
optional
<= 120 characters
email
stringĀ
optional
<= 120 characters
is_active
integerĀ
required
password
stringĀ
required
<= 200 characters
driving_licence_expiry_date
stringĀ <date-time>
optional
id_card_expiry_date
stringĀ <date-time>
optional
commission_fixed_amount
numberĀ <float>
optional
commission_perc_of_sales
numberĀ <float>
optional
exposure_limit
numberĀ <float>
optional
supervisor_tenants
arrayĀ [object {2}]Ā
optional
Example
{
"supervisor_details": [
{
"principle_code": "string",
"tenant_code": "string",
"location_code": "string",
"route_code": "string",
"supervisor_code": "string",
"supervisor_name": "string",
"supervisor_name_a": "string",
"address": "string",
"city": "string",
"state": "string",
"zip": "string",
"phone": "string",
"mobile": "string",
"email": "string",
"is_active": 0,
"password": "string",
"driving_licence_expiry_date": "2024-04-17T06:14:02.199Z",
"id_card_expiry_date": "2024-04-17T06:14:02.199Z",
"commission_fixed_amount": 0,
"commission_perc_of_sales": 0,
"exposure_limit": 0,
"supervisor_tenants": [
{
"tenant_code": "string",
"supervisor_routes": [
{
"location_code": "string",
"route_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_xn_supervisor_details' \
--header 'Content-Type: application/json' \
--data-raw '{
"supervisor_details": [
{
"principle_code": "string",
"tenant_code": "string",
"location_code": "string",
"route_code": "string",
"supervisor_code": "string",
"supervisor_name": "string",
"supervisor_name_a": "string",
"address": "string",
"city": "string",
"state": "string",
"zip": "string",
"phone": "string",
"mobile": "string",
"email": "string",
"is_active": 0,
"password": "string",
"driving_licence_expiry_date": "2024-04-17T06:14:02.199Z",
"id_card_expiry_date": "2024-04-17T06:14:02.199Z",
"commission_fixed_amount": 0,
"commission_perc_of_sales": 0,
"exposure_limit": 0,
"supervisor_tenants": [
{
"tenant_code": "string",
"supervisor_routes": [
{
"location_code": "string",
"route_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-17 06:21:30