Skip to content

/AWS1/IF_PTT=>GETVERIFICATION()

About GetVerification

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.

Method Signature

METHODS /AWS1/IF_PTT~GETVERIFICATION
  IMPORTING
    !IV_VERIFICATIONTYPE TYPE /AWS1/PTTVERIFICATIONTYPE OPTIONAL
  RETURNING
    VALUE(OO_OUTPUT) TYPE REF TO /aws1/cl_pttgetverifresponse
  RAISING
    /AWS1/CX_PTTACCESSDENIEDEX
    /AWS1/CX_PTTINTERNALSERVEREX
    /AWS1/CX_PTTRESOURCENOTFOUNDEX
    /AWS1/CX_PTTTHROTTLINGEX
    /AWS1/CX_PTTVLDTNEXCEPTION
    /AWS1/CX_PTTCLIENTEXC
    /AWS1/CX_PTTSERVEREXC
    /AWS1/CX_RT_TECHNICAL_GENERIC
    /AWS1/CX_RT_SERVICE_GENERIC.

IMPORTING

Required arguments:

iv_verificationtype TYPE /AWS1/PTTVERIFICATIONTYPE /AWS1/PTTVERIFICATIONTYPE

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

RETURNING

oo_output TYPE REF TO /aws1/cl_pttgetverifresponse /AWS1/CL_PTTGETVERIFRESPONSE

Domain /AWS1/RT_ACCOUNT_ID
Primitive Type NUMC

Examples

Syntax Example

This is an example of the syntax for calling the method. It includes every possible argument and initializes every possible value. The data provided is not necessarily semantically accurate (for example the value "string" may be provided for something that is intended to be an instance ID, or in some cases two arguments may be mutually exclusive). The syntax shows the ABAP syntax for creating the various data structures.

DATA(lo_result) = lo_client->getverification( |string| ).

This is an example of reading all possible response values

lo_result = lo_result.
IF lo_result IS NOT INITIAL.
  lv_verificationtype = lo_result->get_verificationtype( ).
  lv_verificationstatus = lo_result->get_verificationstatus( ).
  lv_verificationstatusreaso = lo_result->get_verificationstatusreason( ).
  lo_verificationresponsedet = lo_result->get_verifresponsedetails( ).
  IF lo_verificationresponsedet IS NOT INITIAL.
    lo_businessverificationres = lo_verificationresponsedet->get_businessverifresponse( ).
    IF lo_businessverificationres IS NOT INITIAL.
      lo_businessverificationdet = lo_businessverificationres->get_businessverifdetails( ).
      IF lo_businessverificationdet IS NOT INITIAL.
        lv_legalname = lo_businessverificationdet->get_legalname( ).
        lv_registrationid = lo_businessverificationdet->get_registrationid( ).
        lv_countrycode = lo_businessverificationdet->get_countrycode( ).
        lv_jurisdictioncode = lo_businessverificationdet->get_jurisdictionofincorpor00( ).
      ENDIF.
    ENDIF.
    lo_registrantverificationr = lo_verificationresponsedet->get_registrantverifresponse( ).
    IF lo_registrantverificationr IS NOT INITIAL.
      lv_completionurl = lo_registrantverificationr->get_completionurl( ).
      lv_datetime = lo_registrantverificationr->get_completionurlexpiresat( ).
    ENDIF.
  ENDIF.
  lv_datetime = lo_result->get_startedat( ).
  lv_datetime = lo_result->get_completedat( ).
ENDIF.