Document Validation

Check if an ID is valid. Use this service before sending a request in order to avoid transaction rejection due to data mismatch.

Document Validation

POST https://api.stage.localpayment.com/api/validation/document

Request Body

Name
Type
Description

country*

String

Required. Country of the document to be validated. Country ISOCode3 format

document*

Object

Required. Valid (e.g. government issued) identity document.

document.id*

String

Required. Identity document id. Usually a number.

document.type*

String

Required. Identity document type. Please take a look at our recognized document types per country list.


    {
        "code": "200",
        "description": "Valid id and type document"
    }

Document Validation: Example request

{
    "document": {
        "id" :"52993635000130",
        "type" :"CNPJ"
    },
    "country" : "BRA"
}

Validation Error Codes

Check the CountryISO Code3 in the following section:

Country Codes

In the following section, check the valid ID Types in every country that LP works with:

Document Validations

Last updated