Skip to content

get_verification async

get_verification(
    verification_type: VerificationType,
    *,
    config_overrides: Optional[AsyncPartnerCentralAccountClientConfig] = None,
) -> GetVerificationResponse

Retrieves the current status and details of a verification process for a partner account. This operation allows partners to check the progress and results of business or registrant verification processes.

Parameters:

  • verification_type (VerificationType) –

    The type of verification to retrieve information for. Valid values include business verification for company registration details and registrant verification for individual identity confirmation.

Raises:

  • AccessDeniedException –

    The request was denied due to insufficient permissions. The caller does not have the required permissions to perform this operation.

  • InternalServerException –

    An internal server error occurred while processing the request. This is typically a temporary condition and the request may be retried.

  • ResourceNotFoundException –

    The specified resource could not be found. This may occur when referencing a resource that does not exist or has been deleted.

  • ThrottlingException –

    The request was throttled due to too many requests being sent in a short period of time. The client should implement exponential backoff and retry the request.

  • ValidationException –

    The request failed validation. One or more input parameters are invalid, missing, or do not meet the required format or constraints.

  • UnknownServiceError –

    The service returned an error code this client does not model.

Source code in docs_src/capo_partnercentral_account/_services/async_partner_central_account.py
async def get_verification(
    self,
    verification_type: "capo_partnercentral_account.types.verification_type.VerificationType",
    *,
    config_overrides: Optional[AsyncPartnerCentralAccountClientConfig] = None,
) -> "capo_partnercentral_account.types.get_verification_response.GetVerificationResponse":
    """<p>Retrieves the current status and details of a verification process for a partner account. This operation allows partners to check the progress and results of business or registrant verification processes.</p>

    Args:
        verification_type: <p>The type of verification to retrieve information for. Valid values include business verification for company registration details and registrant verification for individual identity confirmation.</p>

    Raises:
        capo_partnercentral_account.errors.access_denied_exception.AccessDeniedException: <p>The request was denied due to insufficient permissions. The caller does not have the required permissions to perform this operation.</p>
        capo_partnercentral_account.errors.internal_server_exception.InternalServerException: <p>An internal server error occurred while processing the request. This is typically a temporary condition and the request may be retried.</p>
        capo_partnercentral_account.errors.resource_not_found_exception.ResourceNotFoundException: <p>The specified resource could not be found. This may occur when referencing a resource that does not exist or has been deleted.</p>
        capo_partnercentral_account.errors.throttling_exception.ThrottlingException: <p>The request was throttled due to too many requests being sent in a short period of time. The client should implement exponential backoff and retry the request.</p>
        capo_partnercentral_account.errors.validation_exception.ValidationException: <p>The request failed validation. One or more input parameters are invalid, missing, or do not meet the required format or constraints.</p>
        capo_partnercentral_account.errors.UnknownServiceError: The service returned an error code this client does not model.
    """

    async def _handler(
        req: "AsyncOperationRequest[capo_partnercentral_account.types.get_verification_request.GetVerificationRequest]",
    ) -> AsyncOperationResponse[
        "capo_partnercentral_account.types.get_verification_response.GetVerificationResponse"
    ]:
        import capo_partnercentral_account._operations.partner_central_account.get_verification

        (
            output,
            http_response,
        ) = await capo_partnercentral_account._operations.partner_central_account.get_verification.async_get_verification(
            req.options, req.input
        )
        return AsyncOperationResponse(output=output, response=http_response)

    def _redact_output(
        output: "capo_partnercentral_account.types.get_verification_response.GetVerificationResponse",
    ) -> dict[str, Any]:
        import capo_partnercentral_account.types.get_verification_response

        return capo_partnercentral_account.types.get_verification_response.redact_sensitive(
            output
        )

    interceptors_, options_ = self.operation_options(
        config_overrides,
        OperationLogging("GetVerification", redact_output=_redact_output),
    )
    input_: capo_partnercentral_account.types.get_verification_request.GetVerificationRequest = {
        "verification_type": verification_type
    }

    response = await aexecute_pipeline(
        AsyncOperationRequest(input=input_, options=options_),
        handler=_handler,
        interceptors=list(interceptors_),
    )
    await response.response.aclose()
    return response.output