Customer. Fetch data by Counterparty ID GET

Fetch Customer data by Counterparty ID

# ENDPOINT
/model/customer/getDbByCounterpartyId/{id}
# REQUEST arguments
Variable Value Example Usage Description
X-App-Sig
header
0
DEV-SKIP DEV-SKIP M Dev Authentication
id
path
0
2353181 M Record ID
# RESPONSE
        						
# REQUEST arguments
Variable Name Type Format Usage Description
X-App-Sig X-App-Sig header string M Dev Authentication
Example DEV-SKIP
id id path integer M Record ID
Example 2353181
# POSITIVE RESPONSE

200 - Response successfully when status is OK

Schema: CustomerData
Type: application/json
Variable Name Type Format Description
status status string Request execution status
error_description Error Description string Description of error
error Error Code string Error code
data_type data_type string Type of data
total_records total_records string Total count of records
data data object data of Response
attribute: data
Variable Name Type Format Description
addresses addresses array
clientData clientData object
contacts contacts array
counterpartyData counterpartyData object
services services array
accountReferences accountReferences array
attribute: addresses
Variable Name Type Format Description
action Action string
activation_date Activation Date string DATE Activation date in the system
address_type address_type string The addresses section provides the list of all available addresses a contact has as follows
address_type_description address_type_description string Address type description
apartment apartment string Residence/correspondence number of house
card_code card_code string Card code
city city string Residence/ correspondence address city/town
client_code Client code string Unique client identifier. Issued automatically by the System upon new Customer registration.
client_full_name client_full_name string Customer full name [first_name] and [last_name] for PERSON and [first_name] only for BUSINESS customer types respectively
counterparty_id counterparty_id integer INT64 Counterparty id
country_code country_code string Two-letter ISO 3166-2 code of a given country
country_description country_description string Country of residence or incorporation
create_date Create Date string DATETIME The date entry was created on
create_user Create User string The username of ABS user who has created an entry
expiration_date Expiration Date string DATE Expiration date in the system
form_title form_title string Service field
full_address full_address string Customer full address aggregates [Address Line 1], [Address Line 2], [City], [County], [Post Code] and [Country] fields
house house string Residence/correspondence number of house
house_name house_name string Residence/correspondence name of house
id id integer INT64 Record's sequence number generated in the system.
language language string The language user has specified as the language of service
latitude latitude number decimal A geographic coordinate that specifies the north–south position of a point on the Earth is surface
longitude longitude number decimal A geographic coordinate that specifies the east–west position of a point on the Earth is surface
modify_date Modify Date string DATETIME The date entry was last modified on
modify_user Modify User string The username of ABS user who has made last changes to the entry
place_code place_code string Residence/correspondence place code
post_code post_code string Shows the value of address postal code, zip code or post code, like CR2 9ER
region region string Residence/ correspondence region
region_code region_code string Region code
state state integer INT64 Record state for replication
street street string Residence/ correspondence name of street
sub_street sub_street string Residence/ correspondence name of substreet
uid uid string Unique record identifier which is used to distinguish between existing records
version version integer INT64 Record version for replication
attribute: clientData
Variable Name Type Format Description
action Action string
activation_date Activation Date string DATE Activation date in the system
activation_user Activation User string The username of ABS user who has activated client in the system
bic bic string Bank Identification Code / Swift Code as for the International payment standard
client_code Client code string Unique client identifier. Issued automatically by the System upon new Customer registration.
client_group client_group string Client group
client_status Client Status string Client status
close_date Close Date string DATE Client close date in the system
close_user Close User string The username of ABS user who has closed client in the system
communication_language communication_language string Language for communication
create_date Create Date string DATETIME The date entry was created on
create_external_systems Create external systems boolean
create_user Create User string The username of ABS user who has created an entry
date_of_birth date_of_birth string DATE Customer date of birthday
description description string Description of a given record
division_client_code Division client code string
enableCounterpertyRegistration Clients boolean
entity_type entity_type string Customer type
ext_client_id ext_client_id string External system client id connection
external_number external_number string External client number for client
external_systems external_systems string External systems
first_name first_name string First name of a given customer (user)
form_title form_title string Service field
full_legal_address full_legal_address string Customer full address aggregates [Address Line 1], [Address Line 2], [City], [County], [Post Code] and [Country]
full_name full_name string Customer full name [first_name] and [last_name] for PERSON and [first_name] only for BUSINESS customer types respectively
gender gender string Customer gender
id id integer INT64 Record's sequence number generated in the system.
last_name last_name string Last name of a given customer (user)
modify_date Modify Date string DATETIME The date entry was last modified on
modify_user Modify User string The username of ABS user who has made last changes to the entry
old_client_group old_client_group string
old_client_status Old Client Status string Old client status
place_of_birth place_of_birth string
registration_date Registration Date string DATE The date client was registered in system. It is filled automatically
registration_number registration_number string Registration number of a legal entity or personal code of an individual (user)
registration_user Registration User string The username of ABS user who has registered client in the system.
residence_country residence_country string Country of residence of the client. Two-letter country code (ISO country)
scoring_points scoring_points integer INTEGER Client AML scoring points
scoring_risk_group scoring_risk_group string Client AML scoring group
state state integer INT64 Record state for replication
subscription_code Subscription Code string Subscription code
uid uid string Unique record identifier which is used to distinguish between existing records
version version integer INT64 Record version for replication
attribute: contacts
Variable Name Type Format Description
action Action string
client_code Client code string Unique client identifier. Issued automatically by the System upon new Customer registration.
contact_type contact_type string Type of contact data
contact_value contact_value string Data by type of contact
counterparty_id counterparty_id integer INT64 Counterparty id
country_calling_code country_calling_code string Calling code of country
create_date Create Date string DATETIME The date entry was created on
create_user Create User string The username of ABS user who has created an entry
description description string Description of a given record
form_title form_title string Service field
id id integer INT64 Record's sequence number generated in the system.
modify_date Modify Date string DATETIME The date entry was last modified on
modify_user Modify User string The username of ABS user who has made last changes to the entry
representative_type representative_type string
state state integer INT64 Record state for replication
uid uid string Unique record identifier which is used to distinguish between existing records
use_device_for_login Use device for login BOOLEAN
version version integer INT64 Record version for replication
attribute: counterpartyData
Variable Name Type Format Description
action Action string
client_code Client code string Unique client identifier. Issued automatically by the System upon new Customer registration.
client_group client_group string Client group
communication_language communication_language string Language for communication
counterparty_status counterparty_status string Counterparty status
create_date Create Date string DATETIME The date entry was created on
create_user Create User string The username of ABS user who has created an entry
date_of_birth date_of_birth string DATE Customer date of birthday
description description string Description of a given record
division_client_code Division client code string
entity_type entity_type string Customer type
external_counterparty_id external_counterparty_id string External system client id connection
external_number external_number string External client number for client
first_name first_name string First name of a given customer (user)
form_title form_title string Service field
full_legal_address full_legal_address string Customer full address aggregates [Address Line 1], [Address Line 2], [City], [County], [Post Code] and [Country]
full_name full_name string Customer full name [first_name] and [last_name] for PERSON and [first_name] only for BUSINESS customer types respectively
gender gender string Customer gender
id id integer INT64 Record's sequence number generated in the system.
invitation_token Invitation token string
last_name last_name string Last name of a given customer (user)
modify_date Modify Date string DATETIME The date entry was last modified on
modify_user Modify User string The username of ABS user who has made last changes to the entry
password Password string Client password issued to the client by the external system
place_of_birth place_of_birth string
processing_data processing_data string Data of processing operation
processing_result processing_result string
processing_review Aml system processing status string
processing_status Processing Status string Status of remote client data processing received from the external system
registration_number registration_number string Registration number of a legal entity or personal code of an individual (user)
residence_country residence_country string Country of residence of the client. Two-letter country code (ISO country)
scoring_points scoring_points integer INTEGER Client AML scoring points
scoring_risk_group scoring_risk_group string Client AML scoring group
state state integer INT64 Record state for replication
uid uid string Unique record identifier which is used to distinguish between existing records
version version integer INT64 Record version for replication
attribute: services
Variable Name Type Format Description
client_code Client code string Unique client identifier. Issued automatically by the System upon new Customer registration.
description description string Description of a given record
name name string Description of a given user
attribute: accountReferences
Variable Name Type Format Description
account_number account_number string Account_number
action Action string
bank_address bank_address string bank address
bank_bic_swift bank_bic_swift string bank bic swift
bank_code bank_code string
bank_code_type Bank Code Type string Bank Code Type
bank_country bank_country string bank country
bank_name bank_name string bank name
client_code Client code string Unique client identifier. Issued automatically by the System upon new Customer registration.
client_id Client ID integer
create_date Create Date string DATETIME The date entry was created on
create_user Create User string The username of ABS user who has created an entry
description description string Description of a given record
destination_tag Destination tag STRING
digital_asset_address Digital asset address STRING
digital_asset_url Digital asset url STRING
ewallet ewallet string ewallet
external_client_id external_client_id string external client id
form_title form_title string Service field
full_name full_name string Customer full name [first_name] and [last_name] for PERSON and [first_name] only for BUSINESS customer types respectively
iban iban string A unique account IBAN generated by the System according to IBAN generation rules
id id integer INT64 Record's sequence number generated in the system.
modify_date Modify Date string DATETIME The date entry was last modified on
modify_user Modify User string The username of ABS user who has made last changes to the entry
reference reference string reference
scheme_account Account service scheme string This parameter is used when opening new accounts in the System. The parameter allows selecting the underlying accounting scheme that will be used for linking the account balance to a given payment services provider and its available account management end-points.
scheme_name scheme_name string scheme name
state state integer INT64 Record state for replication
uid uid string Unique record identifier which is used to distinguish between existing records
version version integer INT64 Record version for replication
# RESPONSE POSITIVE EXAMPLE
							{
    "status": "ok",
    "error_description": "",
    "error": {},
    "data_type": "system.rest.customer.customerModel",
    "total_records": 1,
    "data": {
        "clientData": null,
        "counterpartyData": {
            "client_code": "",
            "full_name": "111 223",
            "first_name": "111",
            "last_name": "223",
            "client_group": "CHALLENGER",
            "entity_type": "PERSON",
            "external_number": "",
            "date_of_birth": "2020-10-07",
            "place_of_birth": "",
            "gender": "M",
            "registration_number": "456",
            "counterparty_status": "PENDING",
            "full_legal_address": "",
            "residence_country": "EE",
            "external_counterparty_id": "5f89fce8aee05c5a86845539",
            "scoring_risk_group": "",
            "scoring_points": 0,
            "processing_review": "",
            "processing_status": "CHECKING",
            "processing_data": "{\n  \"applicantId\" : \"5f89fce8aee05c5a86845539\",\n  \"inspectionId\" : \"5f89fce8aee05c5a8684553a\",\n  \"applicantType\" : \"individual\",\n  \"correlationId\" : \"req-1634a8fd-dff8-4070-927a-38b027b53179\",\n  \"externalUserId\" : \"f9a8aa28-0bfc-749e-7214-efe9f047bdaf\",\n  \"type\" : \"applicantCreated\",\n  \"reviewStatus\" : \"init\",\n  \"createdAt\" : \"2020-10-16 20:04:56+0000\"\n}",
            "processing_result": "",
            "communication_language": "",
            "description": "111 223",
            "uid": "f9a8aa28-0bfc-749e-7214-efe9f047bdaf",
            "id": 2353181,
            "version": 458081747,
            "state": 0,
            "create_user": "root",
            "create_date": "2020-10-16T23:04:55.762",
            "modify_user": "root",
            "modify_date": "2020-11-02T20:41:37.175"
        },
        "addresses": [
            {
                "client_code": "",
                "counterparty_id": 2353181,
                "card_code": "",
                "client_full_name": "",
                "address_type": "LEGAL",
                "address_type_description": "",
                "language": "en",
                "city": "",
                "street": "",
                "sub_street": "",
                "region_code": "",
                "region": "",
                "house": "",
                "house_name": "",
                "apartment": "",
                "place_code": "",
                "post_code": "",
                "country_code": "EE",
                "latitude": 0.0,
                "longitude": 0.0,
                "activation_date": null,
                "expiration_date": null,
                "country_description": "Estonia",
                "full_address": "Estonia",
                "uid": "cfba2b7a-326c-b693-7214-efe91087a7b1",
                "id": 32316,
                "version": 458081748,
                "state": 0,
                "create_user": "root",
                "create_date": "2020-10-16T23:04:55.920",
                "modify_user": "root",
                "modify_date": "2020-11-02T20:41:37.188"
            }
        ],
        "accountReferences": [],
        "contacts": [
            {
                "client_code": "",
                "counterparty_id": 2353181,
                "contact_type": "Email",
                "representative_type": "",
                "contact_value": "7457@qsawf.lk",
                "country_calling_code": "",
                "description": "",
                "use_device_for_login": false,
                "uid": "a317f196-47da-628d-7214-efe9680d54b3",
                "id": 983,
                "version": 458081749,
                "state": 0,
                "create_user": "root",
                "create_date": "2020-10-16T23:04:56.061",
                "modify_user": "root",
                "modify_date": "2020-11-02T20:41:37.226"
            },
            {
                "client_code": "",
                "counterparty_id": 2353181,
                "contact_type": "Phone",
                "representative_type": "",
                "contact_value": "+37157656568",
                "country_calling_code": "+371",
                "description": "",
                "use_device_for_login": false,
                "uid": "d9b7e3ee-0cd6-5688-7214-efe9b08942b5",
                "id": 984,
                "version": 458081750,
                "state": 0,
                "create_user": "root",
                "create_date": "2020-10-16T23:04:56.223",
                "modify_user": "root",
                "modify_date": "2020-11-02T20:41:37.244"
            }
        ],
        "services": [],
        "uid": "",
        "id": 0,
        "version": 0,
        "state": 0,
        "create_user": "",
        "create_date": null,
        "modify_user": "",
        "modify_date": null
    }
}						
# NEGATIVE RESPONSE

200 - Response with error when status is ERROR

Schema: HeaderResponseStatusError
Type: application/json
Variable Name Type Format Description
status status string Request execution status
error_description Error Description string Description of error
error Error Code string Error code
data_type data_type string Type of data
total_records total_records string Total count of records
data data object Empty object
# RESPONSE NEGATIVE EXAMPLE
							{
    "status": "error",
    "error_description": "[RECORD-NOT-FOUND : Object counterpartyModel cannot find record counterparty.id with value 1]",
    "error": {},
    "data_type": "system.rest.customer.customerModel",
    "total_records": 1,
    "data": {}
}