Documentation V3
Ask or search…
K

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.
post
https://api.stage.localpayment.com/
api/validation/document
Document Validation

Document Validation: Example request

JSON format
cURL format
{
"document": {
"id" :"52993635000130",
"type" :"CNPJ"
},
"country" : "BRA"
}
curl --location --request POST 'https://api.stage.localpayment.com/api/validation/document' \
--header 'Authorization: Bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ0b2tlbl90eXBlIjoiYWNjZXNzIiwiZXhwIjoxNjQ2NjgzNDk1LCJqdGkiOiIwNzkwZDhkYmJkNmI0ZGYwYWQxZDNkMjE3Y2I2NzVlMSIsInVzZXJfaWQiOjMwLCJzdXBlcnVzZXIiOnRydWUsImlzX3N0YWZmIjpmYWxzZSwicm9sZXMiOlsiQUxMIl0sImNvdW50cmllcyI6WyJBTEwiXSwiY29tcGFueSI6IjAwMDEiLCJjbGllbnRfY29kZSI6IjAwMDEifQ.bSaaZAHvLnxU-tfP2LsloZVUqTYuObRrKhB6VLzWyiY' \
--header 'Content-Type: application/json' \
--data-raw '{
"document": {
"id" :"52993635000130",
"type" :"CNPJ"
},
"country" : "BRA"
}'

Check the CountryISO Code3 in the following section:

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