- 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_sales_Invoice
Developing
POST
/api/xd/1.0/set_sales_Invoice
Request
Body Params application/json
sales_invoice
arrayĀ [object {24}]Ā
required
tenant_code
stringĀ
required
<= 48 characters
location_code
stringĀ
required
<= 48 characters
transaction_type
integerĀ
required
invoice_no
stringĀ
required
<= 50 characters
hht_order_no
stringĀ
required
<= 48 characters
document_date
stringĀ <date-time>
required
route_code
stringĀ
required
<= 48 characters
salesman_code
stringĀ
required
<= 48 characters
customer_code
stringĀ
required
<= 48 characters
division_code
stringĀ
required
<= 48 characters
si_reference_no
numberĀ <float>
required
total_quantity
numberĀ <float>
required
sales_amount
numberĀ <float>
required
return_amount
numberĀ <float>
required
tax_amount
numberĀ <float>
required
discount_amount
numberĀ <float>
required
net_off_amount
numberĀ <float>
required
document_amount
numberĀ <float>
required
currency_code
stringĀ
required
<= 10 characters
document_source
integerĀ
required
coupon_code
stringĀ
optional
<= 50 characters
coupon_discount_amount
integerĀ
optional
sales_invoice_details
arrayĀ [object {16}]Ā
optional
sales_promo_details
arrayĀ [object {15}]Ā
optional
Example
{
"sales_invoice": [
{
"tenant_code": "string",
"location_code": "string",
"transaction_type": 0,
"invoice_no": "string",
"hht_order_no": "string",
"document_date": "2024-04-16T11:47:46.407Z",
"route_code": "string",
"salesman_code": "string",
"customer_code": "string",
"division_code": "string",
"si_reference_no": 0,
"total_quantity": 0,
"sales_amount": 0,
"return_amount": 0,
"tax_amount": 0,
"discount_amount": 0,
"net_off_amount": 0,
"document_amount": 0,
"currency_code": "string",
"document_source": 0,
"coupon_code": "string",
"coupon_discount_amount": 0,
"sales_invoice_details": [
{
"tenant_code": "string",
"location_code": "string",
"invoice_no": "string",
"sequence_number": 0,
"item_transaction_type": 0,
"item_code": "string",
"units_of_measure": "string",
"item_quantity": 0,
"item_price": 0,
"discount_amount": 0,
"tax_amount": 0,
"net_unit_price": 0,
"net_line_amount": 0,
"is_free_good": 0,
"item_type_code": 0,
"returned_quantity": 0
}
],
"sales_promo_details": [
{
"tenant_code": "string",
"location_code": "string",
"invoice_no": "string",
"sales_line_no": 0,
"item_transaction_type": 0,
"item_code": "string",
"units_of_measure": "string",
"item_type_code": 0,
"promotion_quantity": "string",
"promotion_amount": "string",
"promotion_code": "string",
"promotion_description": "string",
"promotion_type_code": 0,
"promotion_indicator": "string",
"condition_type": "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_sales_Invoice' \
--header 'Content-Type: application/json' \
--data-raw '{
"sales_invoice": [
{
"tenant_code": "string",
"location_code": "string",
"transaction_type": 0,
"invoice_no": "string",
"hht_order_no": "string",
"document_date": "2024-04-16T11:47:46.407Z",
"route_code": "string",
"salesman_code": "string",
"customer_code": "string",
"division_code": "string",
"si_reference_no": 0,
"total_quantity": 0,
"sales_amount": 0,
"return_amount": 0,
"tax_amount": 0,
"discount_amount": 0,
"net_off_amount": 0,
"document_amount": 0,
"currency_code": "string",
"document_source": 0,
"coupon_code": "string",
"coupon_discount_amount": 0,
"sales_invoice_details": [
{
"tenant_code": "string",
"location_code": "string",
"invoice_no": "string",
"sequence_number": 0,
"item_transaction_type": 0,
"item_code": "string",
"units_of_measure": "string",
"item_quantity": 0,
"item_price": 0,
"discount_amount": 0,
"tax_amount": 0,
"net_unit_price": 0,
"net_line_amount": 0,
"is_free_good": 0,
"item_type_code": 0,
"returned_quantity": 0
}
],
"sales_promo_details": [
{
"tenant_code": "string",
"location_code": "string",
"invoice_no": "string",
"sales_line_no": 0,
"item_transaction_type": 0,
"item_code": "string",
"units_of_measure": "string",
"item_type_code": 0,
"promotion_quantity": "string",
"promotion_amount": "string",
"promotion_code": "string",
"promotion_description": "string",
"promotion_type_code": 0,
"promotion_indicator": "string",
"condition_type": "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": "string",
"record_count": 0
}
Modified atĀ 2024-04-16 11:57:51