- 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_credit_debit_note
POST
/api/xd/1.0/set_credit_debit_note
xdCreditDebitNote
Request
Body Params application/json
credit_debit_note
arrayĀ [object {13}]Ā
optional
tenant_code
stringĀ
required
<= 24 characters
location_code
stringĀ
required
<= 24 characters
document_type
enum<integer>Ā <int32>
required
Allowed value:
1
document_no
stringĀ
required
<= 25 characters
document_date
stringĀ <date-time>
required
business_partner_code
stringĀ
optional
<= 24 characters
document_amount
numberĀ <float>
required
posting_date_time
stringĀ <date-time>
optional
currency_code
stringĀ
optional
<= 10 characters
remarks
stringĀ
optional
<= 100 characters
original_document_no
stringĀ
optional
<= 25 characters
void_indicator
enum<integer>Ā <int32>
required
Allowed values:
01
credit_debit_note_detail
arrayĀ [object {19}]Ā
optional
Example
{
"credit_debit_note": [
{
"tenant_code": "string",
"location_code": "string",
"document_type": 1,
"document_no": "string",
"document_date": "2019-08-24T14:15:22Z",
"business_partner_code": "string",
"document_amount": 0,
"posting_date_time": "2019-08-24T14:15:22Z",
"currency_code": "string",
"remarks": "string",
"original_document_no": "string",
"void_indicator": 0,
"credit_debit_note_detail": [
{
"tenant_code": "string",
"location_code": "string",
"document_no": "string",
"sequence_number": 0,
"item_code": "string",
"units_of_measure": "string",
"item_total_promotion": 0,
"item_excise_tax": 0,
"line_net_amount": 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
}
]
}
]
}
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_credit_debit_note' \
--header 'Content-Type: application/json' \
--data-raw '{
"credit_debit_note": [
{
"tenant_code": "string",
"location_code": "string",
"document_type": 1,
"document_no": "string",
"document_date": "2019-08-24T14:15:22Z",
"business_partner_code": "string",
"document_amount": 0,
"posting_date_time": "2019-08-24T14:15:22Z",
"currency_code": "string",
"remarks": "string",
"original_document_no": "string",
"void_indicator": 0,
"credit_debit_note_detail": [
{
"tenant_code": "string",
"location_code": "string",
"document_no": "string",
"sequence_number": 0,
"item_code": "string",
"units_of_measure": "string",
"item_total_promotion": 0,
"item_excise_tax": 0,
"line_net_amount": 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
}
]
}
]
}'
Responses
š¢200Success
application/json
Body
status
integerĀ <int32>
optional
message
stringĀ Ā |Ā nullĀ
optional
transaction_id
stringĀ <uuid>
optional
record_count
integerĀ <int32>
optional
Example
{
"status": 0,
"message": "string",
"transaction_id": "0fec1e58-b197-4052-99cf-2218496c5482",
"record_count": 0
}
Modified atĀ 2023-12-04 09:32:08