Update PO Status

View as Markdown
## Update Purchase Order Status This endpoint allows users to update the status of a purchase order (PO) in the system. ### Request - **Method**: `POST` - **Endpoint**: `{{host}}/apis/external/po/updatePoStatus` - **Content-Type**: `application/json` #### Request Body Parameters | Key | Type | Description | | --- | --- | --- | | orderId | string | The unique identifier for the purchase order to be updated. | | status | string | The new status to set for the purchase order. Possible values include statuses like "APPROVAL". | ### Response - **Status Code**: `200 OK` - **Content-Type**: `application/json` #### Response Body The response will contain the following fields: | Key | Type | Description | | --- | --- | --- | | success | boolean | Indicates whether the operation was successful. | | isAvailablePlugin | integer | Indicates the availability of the related plugin (0 if not available). | ### Example **Request:** ``` json { "orderId": "PO-INDIAN-00014", "status": "APPROVAL" } ``` **Response:** ``` json { "success": true, "isAvailablePlugin": 0 } ``` This endpoint is essential for managing the workflow of purchase orders by allowing updates to their statuses.

Response

OK