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
string domain |
Value should be product |
Required |
string action |
Value should be update_product_status |
Required |
object data |
Contains input parameters. | Required |
string job_no |
The job number. | Required |
string quote_no |
The quote number. | Required |
string calc_code |
The calculation code. | Optional |
string attachment_id |
The attachment ID. | Optional |
string status |
The status of the product. | Required |
Sample Request Body
{
status: "success",
data: {
status: "success",
message: "Product Status Updated",
data: 1
}
}
Response Paramters
string status |
This indicate the status of the response. success is the expected value. |
string message |
This explains the reson for status. |
int data |
Always returns 1 upon successful execution.. |
Sample Response
{
status: "success",
data: {
status: "success",
message: "Product Status Updated",
data: 1
}
}