# SyncteraRubySdk::KYCKYBVerificationsApi All URIs are relative to *https://api.synctera.com/v0* | Method | HTTP request | Description | | ------ | ------------ | ----------- | | [**create_verification**](KYCKYBVerificationsApi.md#create_verification) | **POST** /verifications | Create a verification | | [**get_verification1**](KYCKYBVerificationsApi.md#get_verification1) | **GET** /verifications/{verification_id} | Get verification | | [**list_verifications1**](KYCKYBVerificationsApi.md#list_verifications1) | **GET** /verifications | List verifications | | [**verify**](KYCKYBVerificationsApi.md#verify) | **POST** /verifications/verify | Verify a customer's identity | | [**verify_ad_hoc**](KYCKYBVerificationsApi.md#verify_ad_hoc) | **POST** /verifications/adhoc | Check if an individual is on any watchlists | ## create_verification > create_verification(verification, opts) Create a verification Upload evidence of an externally performed KYC/KYB. You may use your own KYC/KYB provider and upload evidence of that result to Synctera instead of using Synctera's providers. ### Examples ```ruby require 'time' require 'synctera_ruby_sdk' # setup authorization SyncteraRubySdk.configure do |config| # Configure Bearer authorization (api_key): bearerAuth config.access_token = 'YOUR_BEARER_TOKEN' end api_instance = SyncteraRubySdk::KYCKYBVerificationsApi.new verification = SyncteraRubySdk::Verification.new({result: SyncteraRubySdk::VerificationResult::UNVERIFIED, verification_time: Time.now, verification_type: SyncteraRubySdk::VerificationType1::IDENTITY}) # Verification | Verification result to create. opts = { idempotency_key: '7d943c51-e4ff-4e57-9558-08cab6b963c7' # String | An idempotency key is an arbitrary unique value generated by client to detect subsequent retries of the same request. It is recommended that a UUID or a similar random identifier be used as an idempotency key. A different key must be used for each request, unless it is a retry. } begin # Create a verification result = api_instance.create_verification(verification, opts) p result rescue SyncteraRubySdk::ApiError => e puts "Error when calling KYCKYBVerificationsApi->create_verification: #{e}" end ``` #### Using the create_verification_with_http_info variant This returns an Array which contains the response data, status code and headers. > , Integer, Hash)> create_verification_with_http_info(verification, opts) ```ruby begin # Create a verification data, status_code, headers = api_instance.create_verification_with_http_info(verification, opts) p status_code # => 2xx p headers # => { ... } p data # => rescue SyncteraRubySdk::ApiError => e puts "Error when calling KYCKYBVerificationsApi->create_verification_with_http_info: #{e}" end ``` ### Parameters | Name | Type | Description | Notes | | ---- | ---- | ----------- | ----- | | **verification** | [**Verification**](Verification.md) | Verification result to create. | | | **idempotency_key** | **String** | An idempotency key is an arbitrary unique value generated by client to detect subsequent retries of the same request. It is recommended that a UUID or a similar random identifier be used as an idempotency key. A different key must be used for each request, unless it is a retry. | [optional] | ### Return type [**Verification**](Verification.md) ### Authorization [bearerAuth](../README.md#bearerAuth) ### HTTP request headers - **Content-Type**: application/json - **Accept**: application/json, application/problem+json ## get_verification1 > get_verification1(verification_id) Get verification Get customer verification result. ### Examples ```ruby require 'time' require 'synctera_ruby_sdk' # setup authorization SyncteraRubySdk.configure do |config| # Configure Bearer authorization (api_key): bearerAuth config.access_token = 'YOUR_BEARER_TOKEN' end api_instance = SyncteraRubySdk::KYCKYBVerificationsApi.new verification_id = '7d943c51-e4ff-4e57-9558-08cab6b963c7' # String | Verification's unique identifier. begin # Get verification result = api_instance.get_verification1(verification_id) p result rescue SyncteraRubySdk::ApiError => e puts "Error when calling KYCKYBVerificationsApi->get_verification1: #{e}" end ``` #### Using the get_verification1_with_http_info variant This returns an Array which contains the response data, status code and headers. > , Integer, Hash)> get_verification1_with_http_info(verification_id) ```ruby begin # Get verification data, status_code, headers = api_instance.get_verification1_with_http_info(verification_id) p status_code # => 2xx p headers # => { ... } p data # => rescue SyncteraRubySdk::ApiError => e puts "Error when calling KYCKYBVerificationsApi->get_verification1_with_http_info: #{e}" end ``` ### Parameters | Name | Type | Description | Notes | | ---- | ---- | ----------- | ----- | | **verification_id** | **String** | Verification's unique identifier. | | ### Return type [**Verification**](Verification.md) ### Authorization [bearerAuth](../README.md#bearerAuth) ### HTTP request headers - **Content-Type**: Not defined - **Accept**: application/json, application/problem+json ## list_verifications1 > list_verifications1(opts) List verifications List customer verification results. ### Examples ```ruby require 'time' require 'synctera_ruby_sdk' # setup authorization SyncteraRubySdk.configure do |config| # Configure Bearer authorization (api_key): bearerAuth config.access_token = 'YOUR_BEARER_TOKEN' end api_instance = SyncteraRubySdk::KYCKYBVerificationsApi.new opts = { id: ['inner_example'], # Array | Unique identifier for the resource. Multiple IDs can be provided as a comma-separated list. person_id: ['inner_example'], # Array | Unique identifier for the person. Multiple IDs can be provided as a comma-separated list. business_id: ['inner_example'], # Array | Unique identifier for the business. Multiple IDs can be provided as a comma-separated list. verification_type: [SyncteraRubySdk::VerificationType1::IDENTITY], # Array | The type of verification run. Multiple values can be provided as a comma-separated list. result: [SyncteraRubySdk::VerificationResult::UNVERIFIED], # Array | The result of the verification that was run on the party. Multiple values can be provided as a comma-separated list. include_history: true, # Boolean | If true, include old (inactive) records as well. limit: 100, # Integer | page_token: 'a8937a0d' # String | } begin # List verifications result = api_instance.list_verifications1(opts) p result rescue SyncteraRubySdk::ApiError => e puts "Error when calling KYCKYBVerificationsApi->list_verifications1: #{e}" end ``` #### Using the list_verifications1_with_http_info variant This returns an Array which contains the response data, status code and headers. > , Integer, Hash)> list_verifications1_with_http_info(opts) ```ruby begin # List verifications data, status_code, headers = api_instance.list_verifications1_with_http_info(opts) p status_code # => 2xx p headers # => { ... } p data # => rescue SyncteraRubySdk::ApiError => e puts "Error when calling KYCKYBVerificationsApi->list_verifications1_with_http_info: #{e}" end ``` ### Parameters | Name | Type | Description | Notes | | ---- | ---- | ----------- | ----- | | **id** | [**Array<String>**](String.md) | Unique identifier for the resource. Multiple IDs can be provided as a comma-separated list. | [optional] | | **person_id** | [**Array<String>**](String.md) | Unique identifier for the person. Multiple IDs can be provided as a comma-separated list. | [optional] | | **business_id** | [**Array<String>**](String.md) | Unique identifier for the business. Multiple IDs can be provided as a comma-separated list. | [optional] | | **verification_type** | [**Array<VerificationType1>**](VerificationType1.md) | The type of verification run. Multiple values can be provided as a comma-separated list. | [optional] | | **result** | [**Array<VerificationResult>**](VerificationResult.md) | The result of the verification that was run on the party. Multiple values can be provided as a comma-separated list. | [optional] | | **include_history** | **Boolean** | If true, include old (inactive) records as well. | [optional][default to false] | | **limit** | **Integer** | | [optional][default to 100] | | **page_token** | **String** | | [optional] | ### Return type [**VerificationList**](VerificationList.md) ### Authorization [bearerAuth](../README.md#bearerAuth) ### HTTP request headers - **Content-Type**: Not defined - **Accept**: application/json, application/problem+json ## verify > verify(verification_request, opts) Verify a customer's identity Initiate identity verification and run the specified identity checks. Verifying a personal customer requires that the following fields already be set: * `first_name` * `last_name` * `dob` * `email` * `phone_number` * `legal_address` * `ssn` Verifying a business customer requires that the following fields already be set: * `entity_name` * `legal_address` ### Examples ```ruby require 'time' require 'synctera_ruby_sdk' # setup authorization SyncteraRubySdk.configure do |config| # Configure Bearer authorization (api_key): bearerAuth config.access_token = 'YOUR_BEARER_TOKEN' end api_instance = SyncteraRubySdk::KYCKYBVerificationsApi.new verification_request = SyncteraRubySdk::VerificationRequest.new({customer_consent: false}) # VerificationRequest | opts = { idempotency_key: '7d943c51-e4ff-4e57-9558-08cab6b963c7' # String | An idempotency key is an arbitrary unique value generated by client to detect subsequent retries of the same request. It is recommended that a UUID or a similar random identifier be used as an idempotency key. A different key must be used for each request, unless it is a retry. } begin # Verify a customer's identity result = api_instance.verify(verification_request, opts) p result rescue SyncteraRubySdk::ApiError => e puts "Error when calling KYCKYBVerificationsApi->verify: #{e}" end ``` #### Using the verify_with_http_info variant This returns an Array which contains the response data, status code and headers. > , Integer, Hash)> verify_with_http_info(verification_request, opts) ```ruby begin # Verify a customer's identity data, status_code, headers = api_instance.verify_with_http_info(verification_request, opts) p status_code # => 2xx p headers # => { ... } p data # => rescue SyncteraRubySdk::ApiError => e puts "Error when calling KYCKYBVerificationsApi->verify_with_http_info: #{e}" end ``` ### Parameters | Name | Type | Description | Notes | | ---- | ---- | ----------- | ----- | | **verification_request** | [**VerificationRequest**](VerificationRequest.md) | | | | **idempotency_key** | **String** | An idempotency key is an arbitrary unique value generated by client to detect subsequent retries of the same request. It is recommended that a UUID or a similar random identifier be used as an idempotency key. A different key must be used for each request, unless it is a retry. | [optional] | ### Return type [**VerifyResponse**](VerifyResponse.md) ### Authorization [bearerAuth](../README.md#bearerAuth) ### HTTP request headers - **Content-Type**: application/json - **Accept**: application/json, application/problem+json ## verify_ad_hoc > verify_ad_hoc(adhoc_verification_request, opts) Check if an individual is on any watchlists ### Examples ```ruby require 'time' require 'synctera_ruby_sdk' # setup authorization SyncteraRubySdk.configure do |config| # Configure Bearer authorization (api_key): bearerAuth config.access_token = 'YOUR_BEARER_TOKEN' end api_instance = SyncteraRubySdk::KYCKYBVerificationsApi.new adhoc_verification_request = SyncteraRubySdk::AdhocVerificationRequest.new({payee_id: 'payee_id_example', payer_id: 'payer_id_example'}) # AdhocVerificationRequest | opts = { idempotency_key: '7d943c51-e4ff-4e57-9558-08cab6b963c7' # String | An idempotency key is an arbitrary unique value generated by client to detect subsequent retries of the same request. It is recommended that a UUID or a similar random identifier be used as an idempotency key. A different key must be used for each request, unless it is a retry. } begin # Check if an individual is on any watchlists result = api_instance.verify_ad_hoc(adhoc_verification_request, opts) p result rescue SyncteraRubySdk::ApiError => e puts "Error when calling KYCKYBVerificationsApi->verify_ad_hoc: #{e}" end ``` #### Using the verify_ad_hoc_with_http_info variant This returns an Array which contains the response data, status code and headers. > , Integer, Hash)> verify_ad_hoc_with_http_info(adhoc_verification_request, opts) ```ruby begin # Check if an individual is on any watchlists data, status_code, headers = api_instance.verify_ad_hoc_with_http_info(adhoc_verification_request, opts) p status_code # => 2xx p headers # => { ... } p data # => rescue SyncteraRubySdk::ApiError => e puts "Error when calling KYCKYBVerificationsApi->verify_ad_hoc_with_http_info: #{e}" end ``` ### Parameters | Name | Type | Description | Notes | | ---- | ---- | ----------- | ----- | | **adhoc_verification_request** | [**AdhocVerificationRequest**](AdhocVerificationRequest.md) | | | | **idempotency_key** | **String** | An idempotency key is an arbitrary unique value generated by client to detect subsequent retries of the same request. It is recommended that a UUID or a similar random identifier be used as an idempotency key. A different key must be used for each request, unless it is a retry. | [optional] | ### Return type [**AdhocVerificationResponse**](AdhocVerificationResponse.md) ### Authorization [bearerAuth](../README.md#bearerAuth) ### HTTP request headers - **Content-Type**: application/json - **Accept**: application/json, application/problem+json