Skip to main content

Contract signing with OPT-IN

Request

ENDPOINT
/debt/DEBT-KEY/signed
METHOD
POST
Request Body
{
"type": "data_signature",
"signatures": [
{
"signed_object": {
"raw_text": "Lorem ipsum dolor sit amet, consectetur a...."
},
"authenticity": {
"timestamp": "1970-01-01 00:00:01",
"ip_address": "179.104.42.245",
"session_id": "ddb1d063-4fdf-4330-af9c-3316e9142ff3"
},
"signer": {
"name": "IVANILDO DE SENA LIMA",
"email": "ivanlima2604@gmail.com",
"phone": {
"country_code": "055",
"area_code": "11",
"number": "999999999"
},
"document_number": "61766976204"
},
"authentication_type": "opt-in"
}
]
}

Path Params

FieldTypeDescriptionCharacters
debt_key *stringDebt key returned at the moment of credit operation creation.-

Body Params

FieldTypeDescriptionCharacters
type *stringType of signature to be sent.-
signatures *array of objectsList containing signature proof objects - must be sent in case of signature "type": "data-signature".Objects signatures

Object signatures

FieldTypeDescriptionCharacters
signed_objectobjectObject containing the document being signed.Objects signed_object
authenticityobjectObject with authentication data.Objects authenticity
signerobjectObject with the signatory's data.Object signer
authentication_type *stringType of signature.-

Object signed_object

FieldTypeDescriptionCharacters
raw_text *stringPlain text with the contract data to be signed.-

Object authenticity

FieldTypeDescriptionCharacters
timestamp *stringSignature date.-
ip_addressstringMandatory field for the "opt-in" authentication_type indicating the IP address where the acceptance was collected.-
session_idstringSession identification ID of the client at the time of signing - it must be queryable and the session evidence must be stored for a minimum period of 5 years (Mandatory for the "opt-in" authentication_type).-
geolocationobjectOptional geolocation field.-

Object signer

FieldTypeDescriptionCharacters
name *stringSignatory's name.-
email *stringSignatory's email.-
phonestringObject containing the signatory's phone numberObject phone
document_number *stringSignatory's document number.-

Object phone

FieldTypeDescriptionCharacters
country_code *stringPhone DDI code (https://ddi.guiamais.com.br/)3
area_code *stringPhone area code (DDD) (https://ddd.guiamais.com.br/)2
number *stringPhone number (numbers only)10

Response

STATUS
200
Response Body
{
"data": {},
"event_datetime": "2022-11-07 15:24:47",
"key": "\<DEBT-KEY\>",
"status": "signature_received",
"webhook_type": "debt"
}

STATUS
400
Response Body
{
"data": "{\"title\": \"Bad Request\", \"description\": \"Invalid request body.\", \"translation\": \"Corpo da requisição inválido.\", \"extra_fields\": {}, \"code\": \"LEG000069\"}"
}