- 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_return_history_v1
Developing
POST
/api/xd/1.0/set_return_history_v1
Request
Body Params application/json
return_history_v1
arrayĀ [object {11}]Ā
optional
tenant_code
stringĀ
optional
<= 24 characters
location_code
stringĀ
optional
<= 24 characters
route_code
stringĀ
optional
<= 12 characters
salesman_code
stringĀ
optional
<= 12 characters
customer_code
stringĀ
optional
<= 24 characters
return_order_no
stringĀ
optional
<= 25 characters
return_order_date
stringĀ <date-time>
optional
erp_sales_return_no
stringĀ
optional
<= 25 characters
erp_sales_return_date
stringĀ <date-time>
optional
document_status
integerĀ <int32>
optional
remarks
stringĀ
optional
<= 500 characters
Example
{
"return_history": [
{
"tenant_code": "string",
"location_code": "string",
"route_code": "string",
"salesman_code": "string",
"customer_code": "string",
"return_order_no": "string",
"return_order_date": "2025-03-18T09:17:34.908Z",
"erp_sales_return_no": "string",
"erp_sales_return_date": "2025-03-18T09:17:34.909Z",
"document_status": 0,
"remarks": "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_return_history_v1' \
--header 'Content-Type: application/json' \
--data-raw '{
"return_history": [
{
"tenant_code": "string",
"location_code": "string",
"route_code": "string",
"salesman_code": "string",
"customer_code": "string",
"return_order_no": "string",
"return_order_date": "2025-03-18T09:17:34.908Z",
"erp_sales_return_no": "string",
"erp_sales_return_date": "2025-03-18T09:17:34.909Z",
"document_status": 0,
"remarks": "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Ā 2025-03-18 09:18:42