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 toProcessingStatus.PendingApprovaland waits for an approver to act via/auth-workflows/steps. - Edit of a released document (
Updating→ publish): the document transitions toProcessingStatus.PendingUpdateand 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 |