Product
This domain serves for requests regarding products.
Update Product Status
POSTThis API call updates the status of a product associated with a job and quote in the database.It handles the insertion or updating of status in the `product_eta_dates` and `attachment_eta_dates` tables,and updates the last updated date of the quote if the status is 'APPROVED'.
Request Paramters
stringdomain |
Value should be product |
Required |
stringaction |
Value should be update_product_status |
Required |
objectdata |
Contains input parameters. | Required |
stringjob_no |
The job number. | Required |
stringquote_no |
The quote number. | Required |
stringcalc_code |
The calculation code. | Optional |
stringattachment_id |
The attachment ID. | Optional |
stringstatus |
The status of the product. | Required |
Sample Request Body
{
status: "success",
data: {
status: "success",
message: "Product Status Updated",
data: 1
}
}
Response Paramters
stringstatus |
This indicate the status of the response. success is the expected value. |
stringmessage |
This explains the reson for status. |
intdata |
Always returns 1 upon successful execution.. |
Sample Response
{
status: "success",
data: {
status: "success",
message: "Product Status Updated",
data: 1
}
}