{
"order_control": [
{
"tenant_code": "string",
"location_code": "string",
"document_prefix": "string",
"document_number": "string",
"route_code": "string",
"customer_code": "string",
"division_code": "string",
"order_date": "2025-12-01T12:11:29.299Z",
"order_delivery_date": "2025-12-01T12:11:29.299Z",
"document_amount": 0,
"payment_type": 0,
"header_tax_amount": 0,
"discount_amount": 0,
"document_status": 0,
"promo_recalculate": 0,
"document_source": 0,
"so_document_number": "string",
"order_details": [
{
"tenant_code": "string",
"location_code": "string",
"document_prefix": "string",
"document_number": "string",
"sequence_number": 0,
"transaction_type": 0,
"item_code": "string",
"units_of_measure": "string",
"order_quantity": 0,
"delivered_quantity": 0,
"item_price": 0,
"promotion_amount": 0,
"item_excise_tax": 0,
"is_free_good": 0,
"item_tax_amount_1": 0
}
],
"order_promo_details": [
{
"tenant_code": "string",
"location_code": "string",
"document_prefix": "string",
"document_number": "string",
"item_transaction_type": "string",
"item_code": "string",
"promotion_quantity": 0,
"promotion_amount": 0,
"promotion_code": "string",
"promotion_type_code": "string",
"promotion_indicator": "string",
"promotion_chg_indicator": 0
}
],
"order_tax_details": [
{
"tenant_code": "string",
"location_code": "string",
"document_prefix": "string",
"document_number": "string",
"item_code": "string",
"tax_code": "string",
"taxable_amount": 0,
"tax_amount": 0
}
]
}
]
}curl --location --request POST 'https://testapi.com/api/xd/1.0/set_order_control' \
--header 'Content-Type: application/json' \
--data-raw '{
"order_control": [
{
"tenant_code": "string",
"location_code": "string",
"document_prefix": "string",
"document_number": "string",
"route_code": "string",
"customer_code": "string",
"division_code": "string",
"order_date": "2025-12-01T12:11:29.299Z",
"order_delivery_date": "2025-12-01T12:11:29.299Z",
"document_amount": 0,
"payment_type": 0,
"header_tax_amount": 0,
"discount_amount": 0,
"document_status": 0,
"promo_recalculate": 0,
"document_source": 0,
"so_document_number": "string",
"order_details": [
{
"tenant_code": "string",
"location_code": "string",
"document_prefix": "string",
"document_number": "string",
"sequence_number": 0,
"transaction_type": 0,
"item_code": "string",
"units_of_measure": "string",
"order_quantity": 0,
"delivered_quantity": 0,
"item_price": 0,
"promotion_amount": 0,
"item_excise_tax": 0,
"is_free_good": 0,
"item_tax_amount_1": 0
}
],
"order_promo_details": [
{
"tenant_code": "string",
"location_code": "string",
"document_prefix": "string",
"document_number": "string",
"item_transaction_type": "string",
"item_code": "string",
"promotion_quantity": 0,
"promotion_amount": 0,
"promotion_code": "string",
"promotion_type_code": "string",
"promotion_indicator": "string",
"promotion_chg_indicator": 0
}
],
"order_tax_details": [
{
"tenant_code": "string",
"location_code": "string",
"document_prefix": "string",
"document_number": "string",
"item_code": "string",
"tax_code": "string",
"taxable_amount": 0,
"tax_amount": 0
}
]
}
]
}'{
"status": 0,
"message": "string",
"transaction_id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
"record_count": 0
}