- 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_location_details
Developing
POST
/api/xd/1.0/set_location_details
Request
Body Params application/json
location_details
arrayĀ [object {19}]Ā
optional
tenant_code
stringĀ
required
<= 48 characters
location_code
stringĀ
required
<= 48 characters
location_name
stringĀ
optional
<= 200 characters
address
stringĀ
optional
<= 600 characters
city
stringĀ
optional
<= 80 characters
state
stringĀ
optional
<= 80 characters
country
stringĀ
optional
<= 80 characters
zip
stringĀ
optional
<= 80 characters
phone
stringĀ
optional
<= 200 characters
email
stringĀ
optional
<= 240 characters
website
stringĀ
optional
<= 120 characters
currency_code
stringĀ
optional
<= 10 characters
fax
stringĀ
optional
<= 120 characters
sales_tax_number
stringĀ
optional
<= 100 characters
trade_id_number
stringĀ
optional
<= 100 characters
reference_code
stringĀ
optional
<= 100 characters
geo_codeX
numberĀ <float>
optional
geo_codeY
numberĀ <float>
optional
gst_number
stringĀ
optional
<= 100 characters
Example
{
"location_details": [
{
"tenant_code": "string",
"location_code": "string",
"location_name": "string",
"address": "string",
"city": "string",
"state": "string",
"country": "string",
"zip": "string",
"phone": "string",
"email": "string",
"website": "string",
"currency_code": "string",
"fax": "string",
"sales_tax_number": "string",
"trade_id_number": "string",
"reference_code": "string",
"geo_codeX": 0,
"geo_codeY": 0,
"gst_number": "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_location_details' \
--header 'Content-Type: application/json' \
--data-raw '{
"location_details": [
{
"tenant_code": "string",
"location_code": "string",
"location_name": "string",
"address": "string",
"city": "string",
"state": "string",
"country": "string",
"zip": "string",
"phone": "string",
"email": "string",
"website": "string",
"currency_code": "string",
"fax": "string",
"sales_tax_number": "string",
"trade_id_number": "string",
"reference_code": "string",
"geo_codeX": 0,
"geo_codeY": 0,
"gst_number": "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": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
"record_count": 0
}
Modified atĀ 2024-04-16 09:51:41