- 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/get_sub_distributor_margin
POST
/api/xc/1.0/get_sub_distributor_margin
xcJourneyPlan
Request
Body Params application/json
tenant_code
stringĀ
required
<= 48 characters
distributor_code
stringĀ
required
<= 48 characters
page_number
integerĀ
required
start_date_time
stringĀ <date-time>
optional
end_date_time
stringĀ <date-time>
optional
Example
{
"tenant_code": "string",
"distributor_code": "string",
"page_number": 0,
"start_date_time": "2019-08-24T14:15:22Z",
"end_date_time": "2019-08-24T14:15:22Z"
}
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/get_sub_distributor_margin' \
--header 'Content-Type: application/json' \
--data-raw '{
"tenant_code": "string",
"distributor_code": "string",
"page_number": 0,
"start_date_time": "2019-08-24T14:15:22Z",
"end_date_time": "2019-08-24T14:15:22Z"
}'
Responses
š¢200Success
application/json
Body
array of:
tenant_code
stringĀ
required
<= 48 characters
outlet_code
stringĀ
required
<= 48 characters
distributor_code
stringĀ
required
<= 48 characters
item_code
stringĀ
required
<= 100 characters
product_hierarchy_code
stringĀ
required
<= 200 characters
scope_type
integerĀ
required
effective_date
stringĀ <date-time>
optional
calculation_method
integerĀ
required
margin_value
numberĀ <float>
required
last_modified_dateTime
stringĀ <date-time>
required
Example
[
{
"tenant_code": "string",
"outlet_code": "string",
"distributor_code": "string",
"item_code": "string",
"product_hierarchy_code": "string",
"scope_type": 0,
"effective_date": "2019-08-24T14:15:22Z",
"calculation_method": 0,
"margin_value": 0,
"last_modified_dateTime": "2019-08-24T14:15:22Z"
}
]
Modified atĀ 2024-06-26 04:18:28