putCustomerCallback

suspend fun putCustomerCallback(request: PutCustomerCallbackRequest): HttpResponse

Registers a callback URL to receive KYC status updates.

Allows clients to receive webhook notifications when customer KYC status changes. The anchor will POST updates to the provided URL.

Return

HttpResponse - 200 OK on successful registration

Parameters

request

PutCustomerCallbackRequest with callback URL and customer identification

Throws

If JWT token is invalid (401)

For other errors

Example:

val request = PutCustomerCallbackRequest(
jwt = authToken,
url = "https://myapp.com/webhooks/kyc-status",
account = userAccountId
)
kycService.putCustomerCallback(request)