Skip to main content

GetClient

GetClient retrieves a single client's compliance profile by its unique resource name.

This allows for fetching the complete compliance details of a specific client, including all associated information like identification documents, tax residencies, and company structures.

Method Options​

Authorisation specification of the GetClient method.

TypeMETHOD_TYPE_READ
Access LevelMETHOD_ACCESS_LEVEL_AUTHORISED
Roles
  • ROLE_COMPLIANCE_ADMIN
  • ROLE_COMPLIANCE_VIEWER
  • ROLE_COMPLIANCE_CLIENT_ADMIN
  • ROLE_COMPLIANCE_CLIENT_VIEWER

Parameters​

Request and response parameter message overview:

Input: GetClientRequest Message​

FieldTypeRequiredDescription
Name

string

True

The unique resource name of the client to be retrieved. The name serves as the primary identifier for the client resource. 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()

// Create request with service-specific parameters
request := &clientv1.GetClientRequest{
// FIXME: Populate service-specific request fields
}

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

// FIXME: Add relevant response object usage
log.Printf("GetClient successful: %+v", client)
}

Advanced Configuration​

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

Other Methods​