mbtrust.get

Retrieve comprehensive information about an MBTrust account provisioning entity and its execution history.

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

Usage Info

This method returns detailed information about an MBTrust account provisioning entity, including its associated workflow, subject record, timestamps, and the complete execution history of all provisioning operations. Use this method to monitor operation progress, track status changes, and verify successful completion of onboarding or document sync operations.

Request

Authentication: KSig1-HMAC-SHA256

Parameters

FieldTypeRequiredDescription
mbtrust_idstringYesThe identifier for the MBTrust provisioning entity.

Example

{
  "mbtrust_id": "ape_4kz3kXp8dL2Xnj97xzFMuG"
}

Response

Data

ParameterTypeDescription
mbtrustobjectThe mbtrust parameter is defined in the tables below.

MbTrust Parameters

FieldTypeDescription
mbtrust_idstringUnique identifier for the provisioning entity (format: ape_XXXXX...)
provisioning_typestringThe type of provisioning. Must be one of the ACCOUNT_PROVISIONING_TYPES.
provisioning_sponsorstringThe sponsor for provisioning. Must be one of the ACCOUNT_PROVISIONING_SPONSORS.
statusstringThe current status of the provisioning entity. Must be one of the ACCOUNT_PROVISIONING_ENTITY_STATUSES.
workflow_idstringThe Account Provisioning workflow ID (format: w_XXXXX...)
subject_record_idstringThe Subject Record ID associated with this provisioning (format: sr_XXXXX...)
created_atstringISO 8601 timestamp when the entity was created
updated_atstringISO 8601 timestamp when the entity was last updated
execution_resultsarrayArray of operation execution records (see below)

Execution Results Parameters

Each item in the execution_results array represents a single provisioning operation:

FieldTypeDescription
operation_idstringUnique identifier for this operation execution (format: ap_XXXXX...)
operation_typestringType of the operation processed. One of ACCOUNT_PROVISIONING_OPERATIONS .
statusstringCurrent status of the account provisioning operation. One of ACCOUNT_PROVISIONING_OPERATION_STATUSES .
started_atstringISO 8601 timestamp when the operation started
finished_atstringISO 8601 timestamp when the operation completed. Only present when status is terminal.
errorsarrayArray of error objects. Empty for successful operations.
provider_responseobjectRaw response data from the MBTrust provider (varies by operation type)
documentsarray(DOCUMENT_SYNC only) List of document IDs that were successfully uploaded. Only present when there were partial failures.
external_reference_idstring(Conditional) The Merchant ID assigned by MBTrust. Only present when provider_response is empty.

Error parameters

When operations fail, the errors array contains error objects:

FieldTypeDescription
codestringError code identifying the type of error
messagestringHuman-readable error description
detailsstringerror details

Details parameters

Example

{
  "meta": {
    "status": "SUCCESS",
    "version": "2025-03-24"
  },
  "data": {
    "mbtrust": {
      "mbtrust_id": "ape_4kz3kXp8dL2Xnj97xzFMuG",
      "provisioning_type": "MBTRUST",
      "provisioning_sponsor": "MERRICK",
      "status": "COMPLETED",
      "workflow_id": "w_7kR9mNp2dQ5Zxj73zAFMtH",
      "subject_record_id": "sr_163Gh1ONk6BCHF9iYVDHcv",
      "created_at": "2026-01-18T07:29:18.472Z",
      "updated_at": "2026-01-18T07:32:45.891Z",
      "execution_results": [
        {
          "operation_id": "ap_5kL8xPq2mN3rY9zW1vH4Tb",
          "operation_type": "ONBOARDING",
          "status": "SUCCESS",
          "started_at": "2026-01-18T07:30:22.156Z",
          "finished_at": "2026-01-18T07:32:45.891Z",
          "errors": [],
          "provider_response": {
            "merchant_id": "123456789012345",
            "status": "active"
          }
        },
        {
          "operation_id": "ap_7nM9aRs4pQ6tZ2xV3wJ5Ud",
          "operation_type": "DOCUMENT_SYNC",
          "status": "SUCCESS",
          "started_at": "2026-01-18T07:32:50.234Z",
          "finished_at": "2026-01-18T07:33:15.567Z",
          "errors": [],
          "provider_response": {}
        }
      ]
    }
  }
}

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.

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
AccountACCOUNT_PROVISIONING_DISABLEDThe account provisioning feature is disabled for this account.
AccountPROVISIONER_DISABLEDThe MBTrust provisioner is disabled for this account.