Registers
n of the API is still under development and may change considerably. This page is under development.
Get records
POST
https://www.pepdata.com/api/get_questionnaires
Endpoint to get customer and transaction records.
Headers
Authorization*
string
key [API_KEY]
Request Body
id
string
Id of the register or transaction
search_term
string
Terms of search: Search on name, vatin and id_custom columns
page
integer
page of the registers or transactions Default: 1
id_custom
string
Custom id of the register or transaction
type
String
Type of the registers
Default: customer
Accepted values:
customer
transaction
relationship
Label
id: id of the register.
name: name of the register.
vatin: vat number of the register.
value: information of the register.
entity_type: type of entity (individual, organization or transaction).
main_entity_subtype: subtype of the entity (representative, beneficiary owner, etc.).
relations: relations associated with the register.
added_by: id of the user who added the register.
added_at: date the register was added, in the form of a number of milliseconds since January 1, 1970 00:00:00 UTC.
submitted_at: date the register was submitted, in the form of a number of milliseconds since January 1, 1970 00:00:00 UTC.
submitted_by: id of the user who submitted the register.
approval_state: approval status of the register (0 - awaiting decision, 1 - approved, -1 - rejected).
approval_change_reason: justification for changing the approval status.
risk: risk value of the register.
risk_change_reason: justification for changing the risk category.
saved_at: date the register was last saved, in the form of a number of milliseconds since January 1, 1970 00:00:00 UTC.
assigned_to: id of the person responsible for the register.
id_invited_user: id of the user invited to complete the register.
locked_by: id of the user who has the register open.
locked_at: date the register was last opened, in the form of a number of milliseconds since January 1, 1970 00:00:00 UTC.
invited_submission_by: id of the invited user who accepted the invitation to complete.
invited_submission_at: date on which the invitation to complete was accepted, in the form of a number of milliseconds since January 1, 1970 00:00:00 UTC.
data_treatment_accepted_at: date on which the guest user data processing conditions were accepted, in the form of a number of milliseconds since January 1, 1970 00:00:00 UTC.
needs_attention: boolean that describes whether the register needs attention.
id_organization: id of the organization that created the register.
id_custom: customizable id entered by the user.
invited_at: date on which the invitation to complete was sent, in the form of a number of milliseconds since January 1, 1970 00:00:00 UTC.
invited_by_organization_name: name of the organization that sent the invitation to complete.
language: language in which the invitation to complete was sent.
id_iperson: id of the corresponding identifiable person. null if there was no match.
type: type of the register.
id_questionnaire_data: id of the record where the questionnaire's info is stored.
risk_category: category in which the risk value falls.
Add one record
POST
https://www.pepdata.com/api/add_questionnaire
Endpoint to get customer and transaction records.
Headers
Authorization*
string
key [API_KEY]
Request Body
name*
string
Name of the register or transactions
id_custom
string
Custom id of the register
type*
integer
Type of register Values accepted: individual (Register of an individual person) organization (Register of an organization) transaction (Transaction)
vatin
string
Vat number of the register
questionnaire_data
json
Depending on each type of record, different objects are necessary individual
{
"personal_data": {
"email": "[email protected]",
"birth_date": "2010-10-10",
"nationalities": ["Portugal"],
"birth_place": "Portugal"
},
"entity_proof": {
"identification_metadata": {
"document_number": 123456789,
"is_document_perpetual": false,
"document_validity": "2023-05-20",
"document_issuing_entity": "Test",
"document_issuing_date": "2013-05-20",
"document_issuing_location": "Test"
},
},
"address_data": {
"type": "residence",
** "country":"Portugal",
"cep":"1234-567",
"address_line_1":"Rua X",
"address_line_2":"nº123", "city":"Lisboa",
"district":"Lisboa"
},
"suspicion_data": {
"is_suspect": false,
"reason": "Test"
},
}
**Accepted values:
residence
fiscal_residence
headquarters
organization
{
"company_data": {
"brand_name": "Brand Name",
"object": "test",
"caes": ["01111"],
"country": "Portugal",
"foundation_date": "2005-02-01",
"countries_operations": ["Portugal"]
},
"entity_proof": {
"national_headquarters": true
},
"beneficiary_data": {
"codigo_rcbe": "123456"
},
"address_data": {
"country":"Portugal", "cep":"1234-567", "address_line_1":"Rua X", "address_line_2":"nº 123", "city":"Lisboa", "district":"Lisboa"
},
"suspicion_data": {
"is_suspect": false,
"reason": "Test"
},
}
transaction
{
"buyer": {
"acquisition_purpose": "test purpose",
},
"basic_information": {
"sell_type": "good",
"description": "test description",
"observations": "test observations"
},
"suspicion_data": {
"is_suspect": false,
"reason": "Test"
},
}
Label
id: id of the register or transaction created.
risk: risk value of the new register/transaction.
risk_category: category in which the risk value of the new register/transaction falls.
Edit one record
POST
https://www.pepdata.com/api/edit_questionnaire
Endpoint to edit a register of a customer or transaction.
Headers
Authorization*
string
key [API_KEY]
Request Body
id*
string
Id of the register or transaction
questionnaire_data
json
Label
risk: risk value of the edited register/transaction.
risk_category: category in which the risk value of the edited register/transaction falls.
Delete one record
POST
https://www.pepdata.com/api/delete_questionnaire
Endpoint to delete a register of a customer or transaction.
Headers
Authorization*
string
key [API_KEY]
Request Body
id*
string
Id of the register or transaction
Important: You may get an error when deleting a record if it has dependencies with other records.
Cancel the submission of a record
POST
https://www.pepdata.com/api/unsubmit_questionnaire
Endpoint to cancel the submission of a register of a customer or transaction.
Headers
Authorization*
string
key [API_KEY]
Request Body
id*
string
Id of the register or transaction
Canceling the submission will recalculate the register risk. If you have a manually configured risk category, it will be lost.
Label
risk: recalculated risk from customer or transaction records.
risk_category: category in which the recalculated risk value of the customer registration/transaction falls.
Send an invitation to fill in a record
POST
https://www.pepdata.com/api/send_questionnaire_invite
Endpoint to send an invitation to fill in a register of a customer or transaction.
Headers
Authorization*
string
key [API_KEY]
Request Body
id*
string
Id of the register or transaction
client_email*
string
Email of the invited client
language
string
Language in which the invitation should be sent
Default: pt-PT Accepted values: pt-PT (Portuguese) en (English)
es (Spanish)
Cancel an invitation to fill in a record
POST
https://www.pepdata.com/api/cancel_questionnaire_invite
Endpoint to cancel an invitation to fill in a register of a customer or transaction.
Headers
Authorization*
string
key [API_KEY]
Request Body
id*
string
Id of the register or transaction
client_email*
string
Email of the invited client
Assign a user to a record
POST
https://www.pepdata.com/api/assign_user_to_questionnaire
Endpoint to assign a user to a register of a customer or transaction.
Headers
Authorization*
string
key [API_KEY]
Request Body
id*
string
Id of the register or transaction
id_user*
string
Id of the user
Assign departments to a record
POST
https://www.pepdata.com/api/assign_departments_to_questionnaire
Endpoint to assign departments to a register of a customer or transaction.
Headers
Authorization*
string
key [API_KEY]
Request Body
id*
string
Id of the register or transaction
departments*
json
Array of departments Exemple: ["Financial"]
Edit the state of approval of a record
POST
https://www.pepdata.com/api/edit_questionnaire_approval_state
Endpoint to edit the state of approval of a register of a customer or transaction.
Headers
Authorization*
string
key [API_KEY]
Request Body
id*
string
Id of the register or transaction
approval_state*
string
State of approval Accepted values: -1 (Rejected) 0 (Undecided) 1 (Approved)
approval_change_reason*
string
Justification for changing approval status
Revert the risk of a record
POST
https://www.pepdata.com/api/revert_questionnaire_risk
Endpoint to revert the current risk of a register of a customer or transaction.
Headers
Authorization*
string
key [API_KEY]
Request Body
id*
string
Id of the register or transaction
Label
risk: risk calculated of the register of a customer or transaction.
risk_category: category in which the risk value of the customer registration/transaction falls.
Reset the state
POST
https://www.pepdata.com/api/reset_questionnaire_needs_attention
Endpoint to reset the state "Needs attention" of a register of a customer or transaction.
Headers
Authorization*
string
key [API_KEY]
Request Body
id*
string
Id of the register or transaction
Submit the records
POST
https://www.pepdata.com/api/submit_questionnaires
Endpoint that automatically submits all the unsubmitted records.*
*This action is limited to 8000 records each time.
Headers
Authorization*
string
key [API_KEY]
Request Body
type*
string
Type of the records to submit.
Accepted values: customers transactions
Label
time_to_conclusion: estimated time in seconds for the operation to complete.
Last updated
Was this helpful?