workflow.complete

Update a Workflow state to ENDED triggering any processes related to this specific state.

POST http://api.kompliant.com/workflow.complete (OpenAPI specification)

Usage Info

Complete a workflow by updating its state to ENDED, triggering final processing tasks based on the workflow type.

This method is only supported for Workflows of type BUSINESS_APPLICATION.

The triggered tasks depends on the account configuration.

Request

Authentication: KSig1-HMAC-SHA256

Parameters

ParameterTypeRequiredDescription
workflow_idstringYesThe identifier for the Workflow.

Example

{
  "workflow_id": "w_7h1EpxerrZQyLnRC1EQ9Ck",
}

Response

Response

Data

An empty data object is returned when the completion is successful.

Example

{
  "meta": {
    "status": "SUCCESS",
    "trace_id": "trc_6zNzQZHSf26V83BO3uW6dS",
    "version": "2025-03-24"
  },
  "data": {}
}

Errors

Error CodeHTTP CodePossible Cause
BAD_REQUEST400Required parameters not provided.
ENTITY_NOT_FOUND400The workflow_id provided does not exist.
MISSING_REQUIREMENTS400The Workflow has missing requirements. For more details on the content of this error response refer to workflow.canComplete's Missing Requirements Parameters.
SYSTEM_RULE_VIOLATION400System rule violations are described below.

System Rule Violations

When a SYSTEM_RULE_VIOLATION error occurs, the response will include additional entity_type and sub_code fields to provide more specific information:

Entity TypeSub-codeDescription
WorkflowINVALID_WORKFLOW_TYPEThe method is not supported for the current Workflow type.
WorkflowWORKFLOW_ENDEDThe Workflow is in an ENDED state and cannot completed.