Skip to main content
Version: 86.14.0

publishPurchaseDocHeader

POST 

/purchase-docs/headers/:headerId/publish

Publishes a purchase document header draft.

If an approval workflow is configured for the document type, the resulting processing status depends on the draft origin:

  • New creation (Draft → publish): the document transitions to ProcessingStatus.PendingApproval and waits for an approver to act via /auth-workflows/steps.
  • Edit of a released document (Updating → publish): the document transitions to ProcessingStatus.PendingUpdate and waits for an approver to act via /auth-workflows/steps.

If no approval workflow is configured, the document transitions directly to ProcessingStatus.Released.

Use GET /auth-workflows/steps (filtering by masterEntityId and masterEntityName) to retrieve the pending workflow steps and POST /auth-workflows/steps to perform approve or reject actions.

To access the service you need at least one of the following permissions:

Permission (one of)
createPurchaseOrder
updatePurchaseOrder

Request

Responses