Skip to main content

StartClientVerification

StartClientVerification transitions a client to VERIFICATION_STATUS_PENDING.

Valid only when the client's current status is VERIFICATION_STATUS_NOT_STARTED or VERIFICATION_STATUS_FAILED. Callable by either the verification authority or the client's owning group.

Method Options​

Authorisation specification of the StartClientVerification method.

TypeMETHOD_TYPE_WRITE
Access LevelMETHOD_ACCESS_LEVEL_AUTHORISED
Roles
  • ROLE_COMPLIANCE_ADMIN
  • ROLE_COMPLIANCE_CLIENT_ADMIN

Parameters​

Request and response parameter message overview:

Input: StartClientVerificationRequest Message​

FieldTypeRequiredDescription
Client

string

True

The resource name of the client to start verification for. Format: "compliance/clients/{client_id}"

Returns: Client Message​

Code Examples​

Select supported SDK in the language of your choice for a full example of how to invoke the this method:

package main

import (
"context"
"log"

clientv1 "github.com/meshtrade/api/go/compliance/client/v1"
)

func main() {
ctx := context.Background()

// Default configuration is used and credentials come from MESH_API_CREDENTIALS
// environment variable or default discovery methods. Zero config required
// unless you want custom configuration.
service, err := clientv1.NewClientService()
if err != nil {
log.Fatalf("Failed to create service: %v", err)
}
defer service.Close()

// Start verification for a client
request := &clientv1.StartClientVerificationRequest{
Client: "compliance/clients/01HQZXYZ9ABCDEFGHIJKLMNPQR",
}

// Call the StartClientVerification method
client, err := service.StartClientVerification(ctx, request)
if err != nil {
log.Fatalf("StartClientVerification failed: %v", err)
}

log.Printf("Verification started, status: %s", client.VerificationStatus)
}

Advanced Configuration​

For advanced client configuration options (custom endpoints, TLS settings, timeouts), see the SDK Configuration Guide.

Other Methods​