Skip to main content

MarkClientVerified

MarkClientVerified transitions a client to VERIFICATION_STATUS_VERIFIED.

Valid only when the client's current status is VERIFICATION_STATUS_PENDING. Only callable by the verification authority. Sets verification_date to now and next_verification_date to the provided value. The next_verification_date must be after the existing verification_date and next_verification_date (if set).

Method Options​

Authorisation specification of the MarkClientVerified 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: MarkClientVerifiedRequest Message​

FieldTypeRequiredDescription
Client

string

True

The resource name of the client to mark as verified. Format: "compliance/clients/{client_id}"

NextVerificationDate

google.protobuf.Timestamp

False

The date when the next periodic compliance review is due. Optional. If not provided, defaults to a system-configured value. When provided, must be in the future and after the client's existing verification_date and next_verification_date (if those fields are set).

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"
"time"

clientv1 "github.com/meshtrade/api/go/compliance/client/v1"
"google.golang.org/protobuf/types/known/timestamppb"
)

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()

// Mark client as verified with next review date in one year
request := &clientv1.MarkClientVerifiedRequest{
Client: "compliance/clients/01HQZXYZ9ABCDEFGHIJKLMNPQR",
NextVerificationDate: timestamppb.New(time.Now().AddDate(1, 0, 0)),
}

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

log.Printf("Client verified, next review: %s", client.NextVerificationDate.AsTime())
}

Advanced Configuration​

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

Other Methods​