{
"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"
}
]
}
]
}
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"
}
]
}
]
}'
{
"status": 0,
"message": "string",
"transaction_id": "string",
"record_count": 0
}