0% found this document useful (0 votes)
4 views5 pages

Sales Order and STO Response JSONs

The document outlines various JSON responses for sales orders and stock transfer orders (STO), detailing their statuses, delivery numbers, and any errors encountered. Successful responses indicate the total deliveries received and processed, while failed responses specify the reasons for failure, such as already invoiced deliveries. Each response includes a flow type, consignment ID, and relevant details about the sales orders or STOs.

Uploaded by

Ajit Mhatre
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
4 views5 pages

Sales Order and STO Response JSONs

The document outlines various JSON responses for sales orders and stock transfer orders (STO), detailing their statuses, delivery numbers, and any errors encountered. Successful responses indicate the total deliveries received and processed, while failed responses specify the reasons for failure, such as already invoiced deliveries. Each response includes a flow type, consignment ID, and relevant details about the sales orders or STOs.

Uploaded by

Ajit Mhatre
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as TXT, PDF, TXT or read online on Scribd

Request JSON

"flowType": "Sales Order", // other value is STO


"timestamp": "2025-12-04T12:05:00Z",
"sourceWarehouseId": "WMS",
"consignmentId": "CONSSO0000001234"
"deliveries": [
{
"deliveryNo": "80010001"
},
{
"deliveryNo": "80010002"
},
{
"deliveryNo": "80010003"
},
{
"deliveryNo": "80020005"
}
]
}

Response JSON (Success- Sales Order)

{
"flowType": "Sales Order", // other value is STO
"consignmentId": "CONSSO0000001234"
"TOT_DEL_RECEIVED": 5,
"TOT_SETS_PRO": 2,
"SUCCESS_SET": 2,
"FAILED_SET": 0,
"STATUS_CODE": 200,
"STATUS": "Success",
"REMARKS": ""
"RESULT": [
{
"SALES_ORDER": "1011005986",
"DELIVERIES": [
{
"DEL_NO": "2012013471"
},
{
"DEL_NO": "2012013473"
},
{
"DEL_NO": "2012013475"
}
],
"STATUS": "Sucess",
"INVOICE_NO": "8018119743",
"INVOICE_VALUE": 16814.22,
"ERRORS": []
},
{
"SALES_ORDER": "1011006027",
"DELIVERIES": [
{
"DEL_NO": "2012013553"
},
{
"DEL_NO": "2012013554"
}
],
"STATUS": "Sucess",
"INVOICE_NO": "8018119744",
"INVOICE_VALUE": 11941.85,
"ERRORS": []
}
]

********************
Response JSON (Failed- Sales Order)

**************************

{
"flowType": "Sales Order", // other value is STO
"consignmentId": "CONSSO0000001234"
"TOT_DEL_RECEIVED": 5,
"TOT_SETS_PRO": 2,
"SUCCESS_SET": 0,
"FAILED_SET": 2,
"STATUS_CODE": 400,
"STATUS": "Failed",
"REMARKS": ""
"RESULT": [
{
"SALES_ORDER": "1011005986",
"DELIVERIES": [
{
"DEL_NO": "2012013471"
},
{
"DEL_NO": "2012013473"
},
{
"DEL_NO": "2012013475"
}
],
"STATUS": "Failed",
"INVOICE_NO": "",
"INVOICE_VALUE": 0,
"ERRORS": [
{
"ERROR": "OBD is already invoiced"
}
]
},
{
"SALES_ORDER": "1011006027",
"DELIVERIES": [
{
"DEL_NO": "2012013553"
},
{
"DEL_NO": "2012013554"
}
],
"STATUS": "Failed",
"INVOICE_NO": "",
"INVOICE_VALUE": 0,
"ERRORS": [
{
"ERROR": "OBD is already invoiced"
}
]
}
]

********************
Response JSON (Failed- STO but passed Sales Order OBD)

**************************
{
"FLOWTYPE": "STO",
"CONSIGNMENT_ID": "123",
"TOT_DEL_RECEIVED": 0,
"TOT_SETS_PRO": 0,
"SUCCESS_SET": 0,
"FAILED_SET": 0,
"STATUS_CODE": 400,
"STATUS": "Failed",
"REMARKS": "Invalid OBD Type 2012013473 2012013475",
"RESULT": []
}

************************
Response JSON (Success- STO)
**********************

{
"flowType": "Sales Order", // other value is STO
"consignmentId": "CONSSO0000001234"
"TOT_DEL_RECEIVED": 2,
"TOT_SETS_PRO": 2,
"SUCCESS_SET": 2,
"FAILED_SET": 0,
"STATUS_CODE": 200,
"STATUS": "Success",
"REMARKS": ""
"RESULT": [
{
"STO": "2000005986",
"DELIVERIES": [
{
"DEL_NO": "2012013471"
}
],
"STATUS": "Sucess",
"INVOICE_NO": "8018119743",
"INVOICE_VALUE": 16814.22,
"ERRORS": []
},
{
"STO": "2000006027",
"DELIVERIES": [
{
"DEL_NO": "2012013553"
}
],
"STATUS": "Sucess",
"INVOICE_NO": "8018119744",
"INVOICE_VALUE": 11941.85,
"ERRORS": []
}
]

********************
Response JSON (Failed- STO)

**************************

{
"flowType": "Sales Order", // other value is STO
"consignmentId": "CONSSO0000001234"
"TOT_DEL_RECEIVED": 2,
"TOT_SETS_PRO": 2,
"SUCCESS_SET": 1,
"FAILED_SET": 1,
"STATUS_CODE": '400'
"STATUS": "Failed",
"REMARKS": ""
"RESULT": [
{
"STO": "2000005986",
"DELIVERIES": [
{
"DEL_NO": "2012013471"
}
],
"STATUS": "Failed",
"INVOICE_NO": "",
"INVOICE_VALUE": 0,
"ERRORS": [
{
"ERROR": "OBD is already invoiced"
}
]
},
{
"STO": "2000006027",
"DELIVERIES": [
{
"DEL_NO": "2012013553"
}
],
"STATUS": "Sucess",
"INVOICE_NO": "",
"INVOICE_VALUE": 0,
"ERRORS": []
}
]

You might also like