- 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/get_new_customer_request
Developing
POST
/api/xd/1.0/get_new_customer_request
Request
Body Params application/json
principle_code
stringĀ
required
<= 48 characters
tenant_code
stringĀ
optional
<= 48 characters
location_code
stringĀ
optional
<= 48 characters
salesman_code
stringĀ
optional
<= 48 characters
route_code
stringĀ
optional
<= 48 characters
sync_key
stringĀ
optional
<= 100 characters
page_number
integerĀ
required
start_date_time
stringĀ <date-time>
optional
end_date_time
stringĀ <date-time>
optional
Example
{
"principle_code": "string",
"tenant_code": "string",
"location_code": "string",
"salesman_code": "string",
"route_code": "string",
"sync_key": "string",
"page_number": 0,
"start_date_time": "2024-04-17T07:33:23.699Z",
"end_date_time": "2024-04-17T07:33:23.699Z"
}
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/get_new_customer_request' \
--header 'Content-Type: application/json' \
--data-raw '{
"principle_code": "string",
"tenant_code": "string",
"location_code": "string",
"salesman_code": "string",
"route_code": "string",
"sync_key": "string",
"page_number": 0,
"start_date_time": "2024-04-17T07:33:23.699Z",
"end_date_time": "2024-04-17T07:33:23.699Z"
}'
Responses
š¢200OK
application/json
Body
array of:
request_id
integerĀ
required
principle_code
stringĀ
required
<= 48 characters
tenant_code
stringĀ
required
<= 48 characters
location_code
stringĀ
required
<= 48 characters
route_code
stringĀ
required
<= 48 characters
salesman_code
stringĀ
required
<= 48 characters
posting_date
stringĀ <date-time>
optional
customer_name
stringĀ
required
<= 200 characters
address1
stringĀ
optional
<= 800 characters
address2
stringĀ
optional
<= 40 characters
address3
stringĀ
optional
<= 100 characters
address4
stringĀ
optional
<= 100 characters
city
stringĀ
optional
<= 100 characters
state
stringĀ
optional
<= 100 characters
zip
stringĀ
optional
<= 100 characters
phone
stringĀ
optional
<= 120 characters
fax
stringĀ
optional
<= 120 characters
email
stringĀ
optional
<= 120 characters
contact_person
stringĀ
optional
<= 120 characters
notes
stringĀ
optional
<= 100 characters
geo_code_x
numberĀ <float>
required
geo_code_y
numberĀ <float>
required
category_code1
stringĀ
optional
<= 48 characters
category_code2
stringĀ
optional
<= 48 characters
category_code3
stringĀ
optional
<= 48 characters
category_code4
stringĀ
optional
<= 48 characters
category_code5
stringĀ
optional
<= 48 characters
category_code6
stringĀ
optional
<= 48 characters
category_code7
stringĀ
optional
<= 48 characters
category_code8
stringĀ
optional
<= 48 characters
hierarchy_code
stringĀ
optional
<= 48 characters
category_code9
stringĀ
optional
<= 48 characters
date_of_birth
stringĀ <date-time>
optional
id_number
stringĀ
optional
<= 100 characters
apply_conditional_discount
integerĀ
required
document_type
integerĀ
required
document_prefix
stringĀ
optional
<= 48 characters
document_number
stringĀ
optional
<= 48 characters
area_type
stringĀ
optional
<= 48 characters
type_code
integerĀ
required
customer_code
stringĀ
optional
<= 48 characters
gst_number
stringĀ
optional
<= 100 characters
pan_card_number
stringĀ
optional
<= 100 characters
beat_code
stringĀ
optional
<= 48 characters
outlet_photo_url
stringĀ
optional
<= 400 characters
license_number
stringĀ
optional
<= 100 characters
license_expiry_date
stringĀ <date-time>
optional
disable_reason
stringĀ
optional
<= 200 characters
existing_customer_name
stringĀ
optional
<= 200 characters
Example
[
{
"request_id": 0,
"principle_code": "string",
"tenant_code": "string",
"location_code": "string",
"route_code": "string",
"salesman_code": "string",
"posting_date": "2024-04-17T07:33:23.700Z",
"customer_name": "string",
"address1": "string",
"address2": "string",
"address3": "string",
"address4": "string",
"city": "string",
"state": "string",
"zip": "string",
"phone": "string",
"fax": "string",
"email": "string",
"contact_person": "string",
"notes": "string",
"geo_code_x": 0,
"geo_code_y": 0,
"category_code1": "string",
"category_code2": "string",
"category_code3": "string",
"category_code4": "string",
"category_code5": "string",
"category_code6": "string",
"category_code7": "string",
"category_code8": "string",
"hierarchy_code": "string",
"category_code9": "string",
"date_of_birth": "2024-04-17T07:33:23.700Z",
"id_number": "string",
"apply_conditional_discount": 0,
"document_type": 0,
"document_prefix": "string",
"document_number": 0,
"area_type": "string",
"type_code": 0,
"customer_code": "string",
"gst_number": "string",
"pan_card_number": "string",
"beat_code": "string",
"outlet_photo_url": "string",
"license_number": "string",
"license_expiry_date": "2024-04-17T07:33:23.700Z",
"disable_reason": "string",
"existing_customer_name": "string"
}
]
Modified atĀ 2024-11-28 09:39:05