{
"sales_order": [
{
"principle_code": "string",
"tenant_code": "string",
"location_code": "string",
"document_number": "string",
"document_date": "2024-05-20T06:52:11.794Z",
"scheduled_delivery_date": "2024-05-20T06:52:11.794Z",
"journey_date": "2024-05-20T06:52:11.794Z",
"fiscal_date": "2024-05-20T06:52:11.794Z",
"customer_code": "string",
"division_code": "string",
"salesman_code": "string",
"route_code": "string",
"net_off_amount": 0,
"document_amount": 0,
"currency_code": "string",
"sales_description": "string",
"beat_code": "string",
"bill_to_customer": "string",
"po_number": "string",
"order_status": 0,
"source_of_data": 0,
"coupon_source": "string",
"coupon_code": "string",
"coupon_amount": 0,
"coupon_type": 0,
"calculation_method": 0,
"coupon_min_buy": 0,
"order_type": 0,
"payment_terms": "string",
"delivery_instructions": "string",
"source_tag": "string",
"so_creation_sr_code": "string",
"so_creation_sr_name": "string",
"sales_order_detail": [
{
"tenant_code": "string",
"location_code": "string",
"document_number": "string",
"sequence_number": 0,
"item_code": "string",
"item_quantity": 0,
"item_quantity_1": 0,
"item_quantity_2": 0,
"item_price": 0,
"item_excise_tax": 0,
"net_unit_price": 0,
"item_total_promotion": 0,
"line_net_amount": 0,
"is_free_good": 0,
"confirmed_order_quantity": 0,
"mrp": 0,
"coupon_code": "string",
"coupon_type": 0,
"coupon_amount": 0,
"promo_coupon_indicator": "string"
}
],
"sales_order_promo_detail": [
{
"item_code": "string",
"promotion_code": "string",
"promotion_quantity": 0,
"promotion_amount": 0,
"promotion_amount_with_tax": 0,
"promotion_indicator": "string",
"condition_type": "string",
"promo_coupon_indicator": "string"
}
]
}
]
}
curl --location --request POST 'https://testapi.com/api/xd/1.0/set_sales_order' \
--header 'Content-Type: application/json' \
--data-raw '{
"sales_order": [
{
"principle_code": "string",
"tenant_code": "string",
"location_code": "string",
"document_number": "string",
"document_date": "2024-05-20T06:52:11.794Z",
"scheduled_delivery_date": "2024-05-20T06:52:11.794Z",
"journey_date": "2024-05-20T06:52:11.794Z",
"fiscal_date": "2024-05-20T06:52:11.794Z",
"customer_code": "string",
"division_code": "string",
"salesman_code": "string",
"route_code": "string",
"net_off_amount": 0,
"document_amount": 0,
"currency_code": "string",
"sales_description": "string",
"beat_code": "string",
"bill_to_customer": "string",
"po_number": "string",
"order_status": 0,
"source_of_data": 0,
"coupon_source": "string",
"coupon_code": "string",
"coupon_amount": 0,
"coupon_type": 0,
"calculation_method": 0,
"coupon_min_buy": 0,
"order_type": 0,
"payment_terms": "string",
"delivery_instructions": "string",
"source_tag": "string",
"so_creation_sr_code": "string",
"so_creation_sr_name": "string",
"sales_order_detail": [
{
"tenant_code": "string",
"location_code": "string",
"document_number": "string",
"sequence_number": 0,
"item_code": "string",
"item_quantity": 0,
"item_quantity_1": 0,
"item_quantity_2": 0,
"item_price": 0,
"item_excise_tax": 0,
"net_unit_price": 0,
"item_total_promotion": 0,
"line_net_amount": 0,
"is_free_good": 0,
"confirmed_order_quantity": 0,
"mrp": 0,
"coupon_code": "string",
"coupon_type": 0,
"coupon_amount": 0,
"promo_coupon_indicator": "string"
}
],
"sales_order_promo_detail": [
{
"item_code": "string",
"promotion_code": "string",
"promotion_quantity": 0,
"promotion_amount": 0,
"promotion_amount_with_tax": 0,
"promotion_indicator": "string",
"condition_type": "string",
"promo_coupon_indicator": "string"
}
]
}
]
}'
{
"status": 0,
"message": "string",
"transaction_id": "0fec1e58-b197-4052-99cf-2218496c5482",
"record_count": 0
}