The ApplicationRequest data structure has undergone major changes between v1 and v3. The primary change is the introduction of customer type distinctions, moving from supporting only natural persons to supporting three distinct types: Natural Persons (PERSON), Self-employed persons (ENTREPRENEUR), and Legal entities (LEGAL_ENTITY).
Key structural changes include:
- Customer Object: Now requires a
type field. Data is nested within type-specific objects (person, entrepreneur, or legalEntity) rather than being flat. - Financed Subject: Order details have been moved into a
financedSubject object, which supports both STANDARD and BROKERED order types. - Origination Context: Redirect URLs and notification endpoints have been moved from
merchantUrls to originationContext.channel.online.
{
"customer": {
"type": "PERSON|ENTREPRENEUR|LEGAL_ENTITY",
"person": {
"firstName": "string",
"lastName": "string",
"contacts": [
{
"type": "EMAIL|MOBILE|PHONE",
"email": { "value": "string" }
}
],
"addresses": [
{
"city": "string",
"flags": ["PERMANENT|CONTACT"]
}
]
},
"entrepreneur": {
"businessName": "string",
"businessIdentificationNumber": "string"
},
"legalEntity": {
"businessName": "string",
"businessIdentificationNumber": "string"
}
},
"financedSubject": {
"type": "ORDER",
"order": {
"type": "STANDARD|BROKERED",
"totalPrice": { "value": 100, "currency": "USD" },
"financings": [
{
"type": "INSTALLMENT",
"installment": { "preferredMonths": 12 }
}
]
}
},
"originationContext": {
"channel": {
"type": "ONLINE",
"online": {
"approvedRedirect": "string",
"rejectedRedirect": "string",
"notificationEndpoint": "string"
}
}
}
}