list_stock_batch_invoice_change_status
POST /list_stock_batch_invoice_change_status
To change the status of one or more stock batch invoice
{
"api_credentials": {
"token": "XXXX"
},
"list_stock_batch_invoice": [
{
"batch_invoice_number_365": "9991001B10",
"line_id_365": "",
"item_department_code_365":"",
"status_code_365":"REJECTED",
"time_to_complete":0
}
]
}
To change the status of one or more detail of stock batch invoice
{
"api_credentials": {
"token": "XXXX"
},
"list_stock_batch_invoice": [
{
"batch_invoice_number_365": "9991001B10",
"line_id_365": "9991001B10L2",
"item_department_code_365":"",
"status_code_365":"INPROC",
"time_to_complete":0
}
]
}
To change the status of one or more stock batch invoice per items departments
{
"api_credentials": {
"token": "XXXX"
},
"list_stock_batch_invoice": [
{
"batch_invoice_number_365": "9991001B10",
"line_id_365": "",
"item_department_code_365":"KITCHEN",
"status_code_365":"ACCEPTED",
"time_to_complete":30
}
]
}
| field |
type |
description |
| api_credentials
|
| token |
string |
Credentials provided by Powersoft that allow access to the API |
| list_stock_batch_invoice
|
| batch_invoice_number_365 |
string |
The 365 stock batch invoice number |
| line_id_365 |
string |
The 365 stock batch line id. Required if you want to change the status per line. It has the priority zero. If a value is provided always the status is applied per line. |
| item_department_code_365 |
string |
The 365 item department code. Required if you want to change the status per department. |
| status_code_365 |
string |
The 365 stock batch status code |
| time_to_complete |
string |
Time necessary to complete the batch. It is applied only if the status change is per department |
Returns
All list sucessfully processed
{
"api_response": {
"response_code": "1",
"response_msg": "OK",
"response_id": ""
},
"list_stock_batch_invoice_failed": null
}
At least one line failed
{
"api_response": {
"response_code": "1",
"response_msg": "OK",
"response_id": ""
},
"list_stock_batch_invoice_failed": [
{
"batch_invoice_number_365": "9991001B10A",
"line_id_365": "",
"status_code_365": "ACCEPTED",
"response_message": "Batch Invoice not found"
}
]
}