Update beneficial owner
Relevant webhooks
For this endpoint be sure you have registered for this webhook:
API reference
Update the beneficial owner details, including the owner title and the percentage owned. See also Add beneficial owner.
Endpoint: /core/v1/cm/customers/{customerId}/beneficial-owners/{id}
PUT
https://sandbox.crbcos.com/core/v1/cm/customers/{customerId}/beneficial-owners/{id}
package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://sandbox.crbcos.com/core/v1/cm/customers/b73cf966-7886-40a0-88c5-af5b0138fc8c/beneficial-owners/7c6c3667-ad62-4a7f-992e-b3ae00bbf93c"
method := "PUT"
payload := strings.NewReader(`{`+"
"+`
"ownerTitle": "CEO",`+"
"+`
"ownershipPercentage": 90`+"
"+`
}`)
client := &http.Client {
}
req, err := http.NewRequest(method, url, payload)
if err != nil {
fmt.Println(err)
return
}
res, err := client.Do(req)
if err != nil {
fmt.Println(err)
return
}
defer res.Body.Close()
body, err := io.ReadAll(res.Body)
if err != nil {
fmt.Println(err)
return
}
fmt.Println(string(body))
}