- 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_organization_hierarchy
POST
/api/xc/1.0/set_organization_hierarchy
xcOrganizationHierarchy
Request
Body Params application/json
organization_hierarchy
arrayĀ [object {11}]Ā
optional
tenant_code
stringĀ
optional
<= 24 characters
hierarchy_code
stringĀ
optional
<= 20 characters
hierarchy_name
stringĀ
optional
<= 100 characters
employee_name
stringĀ
optional
<= 100 characters
hierarchy_level
integerĀ <int32>
optional
parent_code
stringĀ
optional
<= 100 characters
parent_hierarchy
stringĀ
optional
<= 100 characters
user_code
stringĀ
optional
<= 20 characters
mobile
stringĀ
optional
<= 20 characters
email
stringĀ
optional
<= 100 characters
is_active
enum<string>Ā
required
<= 1 characters
Allowed values:
01
Example
{
"organization_hierarchy": [
{
"tenant_code": "string",
"hierarchy_code": "string",
"hierarchy_name": "string",
"employee_name": "string",
"hierarchy_level": 0,
"parent_code": "string",
"parent_hierarchy": "string",
"user_code": "string",
"mobile": "string",
"email": "string",
"is_active": "0"
}
]
}
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_organization_hierarchy' \
--header 'Content-Type: application/json' \
--data-raw '{
"organization_hierarchy": [
{
"tenant_code": "string",
"hierarchy_code": "string",
"hierarchy_name": "string",
"employee_name": "string",
"hierarchy_level": 0,
"parent_code": "string",
"parent_hierarchy": "string",
"user_code": "string",
"mobile": "string",
"email": "string",
"is_active": "0"
}
]
}'
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Ā 2023-12-04 05:56:49