Skip to navigation

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

KeyTypeDescription
orderIdstringThe unique identifier for the purchase order to be updated.
statusstringThe 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:

KeyTypeDescription
successbooleanIndicates whether the operation was successful.
isAvailablePluginintegerIndicates the availability of the related plugin (0 if not available).

Example

Request:

{
"orderId": "PO-INDIAN-00014",
"status": "APPROVAL"
}

Response:

{
"success": true,
"isAvailablePlugin": 0
}

This endpoint is essential for managing the workflow of purchase orders by allowing updates to their statuses.

Response

OK