import requests
url = "https://api.diga.io/v1/verification/session"
files = {
"deed.0": ("example-file", open("example-file", "rb")),
"last_payment_receipt.0": ("example-file", open("example-file", "rb"))
}
payload = {
"applicant_type": "spanish_business",
"deed": "<string>",
"last_payment_receipt": "<string>",
"callback_url": "<string>",
"notification_email": "jsmith@example.com"
}
headers = {"Authorization": "Bearer <token>"}
response = requests.post(url, data=payload, files=files, headers=headers)
print(response.text){
"verification_id": "<string>",
"verification_info_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"url": "<string>"
}Start a new verification session.
import requests
url = "https://api.diga.io/v1/verification/session"
files = {
"deed.0": ("example-file", open("example-file", "rb")),
"last_payment_receipt.0": ("example-file", open("example-file", "rb"))
}
payload = {
"applicant_type": "spanish_business",
"deed": "<string>",
"last_payment_receipt": "<string>",
"callback_url": "<string>",
"notification_email": "jsmith@example.com"
}
headers = {"Authorization": "Bearer <token>"}
response = requests.post(url, data=payload, files=files, headers=headers)
print(response.text){
"verification_id": "<string>",
"verification_info_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"url": "<string>"
}Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
The type of applicant requesting the verification.
spanish_business, spanish_autonomo Escritura (PDF)
Último recibo de pago (PDF)
The URL where the verification session page will redirect once the verification is complete.
1 - 2083The email to notify once the verification is complete.