- 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_dms_ar_collection
POST
/api/xd/1.0/set_dms_ar_collection
xdDMSARCollection
Request
Body Params application/json
ar_collection
arrayĀ [object {15}]Ā
required
principle_code
stringĀ
required
<= 50 characters
tenant_code
stringĀ
required
<= 50 characters
location_code
stringĀ
required
<= 50 characters
document_number
stringĀ
required
<= 60 characters
document_date
stringĀ <date-time>
required
customer_code
stringĀ
required
<= 50 characters
salesman_code
stringĀ
required
<= 50 characters
route_code
stringĀ
required
<= 50 characters
division_code
stringĀ
required
<= 50 characters
document_amount
numberĀ <float>
required
payment_type
integerĀ
required
currency_code
stringĀ
required
<= 10 characters
load_out_document_no
stringĀ
required
<= 60 characters
ar_invoice_details
arrayĀ [object {5}]Ā
optional
ar_collection_detail
arrayĀ [object {7}]Ā
optional
Example
{
"ar_collection": [
{
"principle_code": "string",
"tenant_code": "string",
"location_code": "string",
"document_number": "string",
"document_date": "2024-06-14T06:17:04.908Z",
"customer_code": "string",
"salesman_code": "string",
"route_code": "string",
"division_code": "string",
"document_amount": 0,
"payment_type": 0,
"currency_code": "string",
"load_out_document_no": "string",
"ar_invoice_details": [
{
"invoice_number": "string",
"invoice_date": "2024-06-14T06:17:04.908Z",
"invoice_amount": 0,
"amount_paid": 0,
"comments": "string"
}
],
"ar_collection_detail": [
{
"payment_indicator": "string",
"collection_amount": 0,
"check_number": 0,
"check_date": "2024-06-14T06:17:04.908Z",
"bank_details": "string",
"branch_details": "string",
"comments": "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_dms_ar_collection' \
--header 'Content-Type: application/json' \
--data-raw '{
"ar_collection": [
{
"principle_code": "string",
"tenant_code": "string",
"location_code": "string",
"document_number": "string",
"document_date": "2024-06-14T06:17:04.908Z",
"customer_code": "string",
"salesman_code": "string",
"route_code": "string",
"division_code": "string",
"document_amount": 0,
"payment_type": 0,
"currency_code": "string",
"load_out_document_no": "string",
"ar_invoice_details": [
{
"invoice_number": "string",
"invoice_date": "2024-06-14T06:17:04.908Z",
"invoice_amount": 0,
"amount_paid": 0,
"comments": "string"
}
],
"ar_collection_detail": [
{
"payment_indicator": "string",
"collection_amount": 0,
"check_number": 0,
"check_date": "2024-06-14T06:17:04.908Z",
"bank_details": "string",
"branch_details": "string",
"comments": "string"
}
]
}
]
}'
Responses
š¢200Success
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-02-13 10:49:35