- 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/update_short_closure
Developing
POST
/api/xc/1.0/update_short_closure
Request
Body Params application/json
update_short_closures
arrayĀ [object {6}]Ā
required
principle_code
stringĀ
optional
<= 28 characters
distributor_code
stringĀ
optional
<= 28 characters
mer_number
stringĀ
optional
<= 28 characters
closure_date
stringĀ <date-time>
optional
ipc_code
stringĀ
optional
<= 28 characters
closure_type
integerĀ
optional
Example
{
"update_short_closures": [
{
"principle_code": "1165",
"distributor_code": "test",
"mer_number": "test",
"closure_date": "2024-10-17T12:41:42.376Z",
"ipc_code": "test",
"closure_type": 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/update_short_closure' \
--header 'Content-Type: application/json' \
--data-raw '{
"update_short_closures": [
{
"principle_code": "1165",
"distributor_code": "test",
"mer_number": "test",
"closure_date": "2024-10-17T12:41:42.376Z",
"ipc_code": "test",
"closure_type": 0
}
]
}'
Responses
š¢200OK
application/json
Body
array of:
principle_code
stringĀ
optional
<= 28 characters
distributor_code
stringĀ
optional
<= 28 characters
mer_number
stringĀ
optional
<= 28 characters
closure_date
stringĀ <date-time>
optional
ipc_code
stringĀ
optional
<= 28 characters
closure_type
integerĀ
optional
success
booleanĀ
optional
failed_reason
stringĀ
optional
<= 100 characters
Example
[
{
"principle_code": "1165",
"distributor_code": "test",
"mer_number": "aa",
"closure_date": "2024-10-17T10:38:12.294Z",
"ipc_code": "rr",
"closure_type": 0,
"success": false,
"failed_reason": "INVALIDPROMOTIONQUOTACODE"
}
]
Modified atĀ 2024-10-22 12:26:27