mbtrust.execute

Initiate MBTrust account provisioning operations for onboarding or document synchronization.

POST http://api.kompliant.com/mbtrust.execute (OpenAPI specification)

Usage Info

Use this method to initiate the MBTrust account provisioning operations. This method should only be called after mbtrust.canExecute confirms all requirements are met. The operation type (onboarding or document sync) is determined automatically based on the entity's current state and the merchant's onboarding status.

Operations are processed asynchronously. Use mbtrust.get to check execution status and results.

Request

Authentication: KSig1-HMAC-SHA256

Parameters

FieldTypeRequiredDescription
mbtrust_idstringYesThe MBTrust provisioning entity ID (format: ape_XXXXX...). Obtained from mbtrust.create response.
documentsobjectNoOptional document selection for DOCUMENT_SYNC operations. When omitted, all eligible documents are synced.

Documents parameters

FieldTypeRequiredDescription
uploaded_documentsarrayYesArray of document IDs (format: d_XXXXX...) to include in the document sync operation.

Example

To sync only specific documents, provide their IDs in the documents.uploaded_documents array:

{
  "mbtrust_id": "ape_4kz3kXp8dL2Xnj97xzFMuG",
  "documents": {
    "uploaded_documents": [
      "d_21lpM4CECgfdKyfGQ338u",
      "d_7KmN3pR8xL2Yj5qW9vB4Tc"
    ]
  }
}

Response

Data

ParameterTypeDescription
mbtrustobjectThe mbtrust parameter is defined in the table below.

MBTrust Parameters

FieldTypeDescription
mbtrust_idstringThe identifier for the MBTrust provisioning entity.
queued_operationsarrayAccount provisioning operations that have been queued for processing. Each operation is one of ACCOUNT_PROVISIONING_OPERATIONS .

Example

{
  "meta": {
    "status": "SUCCESS",
    "version": "2025-03-24"
  },
  "data": {
    "mbtrust": {
      "mbtrust_id": "ape_4kz3kXp8dL2Xnj97xzFMuG",
      "queued_operations": ["ONBOARDING", "DOCUMENT_SYNC"]
    }
  }
}

Errors

Error CodeHTTP CodePossible Cause
BAD_REQUEST400Required parameters not provided.
ENTITY_NOT_FOUND400The mbtrust_id provided does not exist.
SYSTEM_RULE_VIOLATION400System rule violations are described below.
ACCOUNT_CONFIGURATION_VIOLATION400Account configuration 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
WorkflowWORKFLOW_NOT_STARTEDThe workflow must be in STARTED state before executing provisioning operations.
AccountProvisioningPRECHECK_FAILEDPrecheck validation failed. Use mbtrust.canExecute to identify missing requirements before calling execute.
AccountProvisioningBUSINESS_NOT_FOUNDNo business found for the subject record associated with this entity.

Account Configuration Violations

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

Entity TypeSub-codeDescription
AccountProvisioningACCOUNT_PROVISIONING_DISABLEDThe account provisioning feature is disabled for this account.
AccountProvisioningPROVISIONER_DISABLEDThe MBTrust provisioner is disabled for this account.