- 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_order
Developing
POST
/api/xd/1.0/set_return_order
Request
Body Params application/json
return_order
arrayĀ [object {13}]Ā
required
principle_code
stringĀ
required
<= 25 characters
tenant_code
stringĀ
required
<= 24 characters
location_code
stringĀ
required
<= 24 characters
document_number
stringĀ
required
<= 50 characters
document_date
stringĀ <date-time>
required
customer_code
stringĀ
required
<= 24 characters
bill_to_customer
stringĀ
required
<= 24 characters
division_code
stringĀ
required
<= 24 characters
currency_code
stringĀ
required
<= 24 characters
source_of_data
integerĀ
optional
order_status
integerĀ
optional
document_reference_no
stringĀ
required
<= 50 characters
return_order_detail
arrayĀ [object {23}]Ā
optional
Example
{
"return_order": [
{
"principle_code": "string",
"tenant_code": "string",
"location_code": "string",
"document_number": "string",
"document_date": "2024-02-05T12:40:13.927Z",
"customer_code": "string",
"bill_to_customer": "string",
"division_code": "string",
"currency_code": "string",
"source_of_data": 0,
"order_status": 0,
"document_reference_no": "string",
"return_order_detail": [
{
"principle_code": "string",
"document_number": "string",
"sequence_number": 0,
"item_code": "string",
"mrp": 0,
"item_quantity": 0,
"item_price": 0,
"total_tax_amount": 0,
"total_discount_amount": 0,
"total_net_amount": 0,
"is_free_good": 0,
"tax_percentage_1": 0,
"tax_amount_1": 0,
"tax_percentage_2": 0,
"tax_amount_2": 0,
"tax_percentage_3": 0,
"tax_amount_3": 0,
"tax_percentage_4": 0,
"tax_amount_4": 0,
"tax_percentage_5": 0,
"tax_amount_5": 0,
"return_type": 0,
"reason_code": "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_order' \
--header 'Content-Type: application/json' \
--data-raw '{
"return_order": [
{
"principle_code": "string",
"tenant_code": "string",
"location_code": "string",
"document_number": "string",
"document_date": "2024-02-05T12:40:13.927Z",
"customer_code": "string",
"bill_to_customer": "string",
"division_code": "string",
"currency_code": "string",
"source_of_data": 0,
"order_status": 0,
"document_reference_no": "string",
"return_order_detail": [
{
"principle_code": "string",
"document_number": "string",
"sequence_number": 0,
"item_code": "string",
"mrp": 0,
"item_quantity": 0,
"item_price": 0,
"total_tax_amount": 0,
"total_discount_amount": 0,
"total_net_amount": 0,
"is_free_good": 0,
"tax_percentage_1": 0,
"tax_amount_1": 0,
"tax_percentage_2": 0,
"tax_amount_2": 0,
"tax_percentage_3": 0,
"tax_amount_3": 0,
"tax_percentage_4": 0,
"tax_amount_4": 0,
"tax_percentage_5": 0,
"tax_amount_5": 0,
"return_type": 0,
"reason_code": "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-05-27 06:59:37