- 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_cfa_stock
POST
/api/xc/1.0/set_cfa_stock
xcCFAStock
Request
Body Params application/json
cfA_stock
arrayĀ [object {13}]Ā
optional
tenant_code
stringĀ
required
<= 12 characters
cfA_code
stringĀ
required
<= 12 characters
warehouse_location
stringĀ
required
<= 12 characters
item_code
stringĀ
required
<= 50 characters
batch_code
stringĀ
required
<= 10 characters
units_of_measure
stringĀ
optional
<= 40 characters
quantity
numberĀ <float>
required
unrestricted_qty
numberĀ <float>
optional
restricted_qty
numberĀ <float>
optional
inspection_qty
numberĀ <float>
optional
blocked_qty
numberĀ <float>
optional
transfer_sl_qty
numberĀ <float>
optional
in_transit_qty
numberĀ <float>
optional
Example
{
"cfA_stock": [
{
"tenant_code": "string",
"cfA_code": "string",
"warehouse_location": "string",
"item_code": "string",
"batch_code": "string",
"units_of_measure": "string",
"quantity": 0,
"unrestricted_qty": 0,
"restricted_qty": 0,
"inspection_qty": 0,
"blocked_qty": 0,
"transfer_sl_qty": 0,
"in_transit_qty": 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_cfa_stock' \
--header 'Content-Type: application/json' \
--data-raw '{
"cfA_stock": [
{
"tenant_code": "string",
"cfA_code": "string",
"warehouse_location": "string",
"item_code": "string",
"batch_code": "string",
"units_of_measure": "string",
"quantity": 0,
"unrestricted_qty": 0,
"restricted_qty": 0,
"inspection_qty": 0,
"blocked_qty": 0,
"transfer_sl_qty": 0,
"in_transit_qty": 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-12 05:02:25