Skip to content

Origin integration

For: Origins (integration team)

An Origin is the app your users already use every day — a mobile carrier, a digital wallet, a payments app — where you originate interest in a loan and route it to Prosperas. If you haven’t placed this role within the B2B2C model yet, start there: it has the shared vocabulary (Origin, Consumer, Lender) the rest of this guide uses.

This page describes the only supported integration for Origins: three calls, in an order designed so your user sees the Prosperas experience right away.

Why? Because without that data the user has to type again what your app already knows about them, and nobody can reconcile the journey with your customer. With the data, the form arrives pre-filled and every application is linked to your customer.

Responsibility Owner
Create the session from your backend You (the Origin)
Open the Prosperas experience in a WebView You (the Origin)
Send the customer’s data, including your own customer ID You (the Origin)
Choose the utm_id for each entry point and share it with Prosperas You (the Origin)
The Consumer’s credit experience (full UI) Prosperas
Lender matching and application delivery Prosperas
Deliver your base domains, credentials and org_name Prosperas
Dashboard with your customers’ credit status Prosperas

In other words: you don’t build or maintain any screen of the credit experience. You create a session, open a WebView and hand Prosperas what you already know about your customer.

In this guide, endpoints are shown as paths only (for example POST /client_app/sessions/). The base domains — the API domain and the Prosperas web experience domain — are delivered separately by Prosperas during onboarding, one per environment.

Every API call is authenticated with the X-API-KEY header, using the credential Prosperas provisions for you. The process to get it is in Partner onboarding.

  1. Your backend creates the session with POST /client_app/sessions/ and receives a reference_number.
  2. Your app opens the WebView immediately at /?sessionid={reference_number} — the user is already looking at the Prosperas experience.
  3. In parallel, your backend sends the customer’s data with PUT /client_app/user/sessions/{reference_number}/user, within the first few seconds.
  4. Prosperas pre-fills the form, matches the customer with Lenders, and you follow your customers’ credit status in the dashboard.
Your backend Prosperas Your app (WebView)
| | |
|-- 1. POST /client_app/sessions/ --> |
|<-- 201 { reference_number } -| |
|-- reference_number -----------------------------------------> |
| |<-- 2. opens /?sessionid=... ----|
|-- 3. PUT .../{reference_number}/user --> |
|<-- 200 OK -------------------| |
| |-- pre-filled form ------------> |

Order matters: you open the WebView before sending the data so the user doesn’t wait, and you send the data right away so it arrives before the user reaches the form.

POST /client_app/sessions/
X-API-KEY: <credential provided by Prosperas>
Content-Type: application/json
// Origin → Prosperas (illustrative body)
{
"org_name": "your-org",
"utm_id": "home-banner-loans",
"utm_source": "app",
"utm_medium": "banner",
"utm_campaign": "loans-nov",
"utm_content": "home-hero",
"utm_term": "personal-loan",
"document_type": "CC",
"document_number": "1234567890"
}
Field Type Required Notes
org_name string Yes The organization name Prosperas assigns to you. It must match the organization of your X-API-KEY.
document_type string Yes (business rule) The customer’s document type (for example CC).
document_number string Yes (business rule) The customer’s document number. It is also technically required: without it the session has no associated user and step 3 returns 404 User not found.
utm_id string Optional You choose it. It is the key Prosperas uses to link the traffic to a campaign/flow — share the utm_id you choose with Prosperas.
utm_source, utm_medium, utm_campaign, utm_content, utm_term string Optional Campaign attribution, if you track it.

Response (201 Created):

// Prosperas → Origin (illustrative response)
{
"reference_number": "3f1c9a52-6d21-4b8f-9e77-1a2b3c4d5e6f",
"redirect": null,
"otp_required": false,
"preapproved_modal": false,
"preapproved_program_open": true,
"preapproved_notice": null,
"preapproved_notice_lender": null,
"preapproved_notice_copy": null
}

The only thing you need is reference_number. The other fields are used internally by the Prosperas experience — you can ignore them.

With the reference_number in hand, open the experience on the Prosperas web experience domain we give you:

/?sessionid=3f1c9a52-6d21-4b8f-9e77-1a2b3c4d5e6f

In the background, as soon as you’ve opened the WebView, send the data you already have about the customer:

PUT /client_app/user/sessions/{reference_number}/user
X-API-KEY: <credential provided by Prosperas>
Content-Type: application/json
// Origin → Prosperas (illustrative body)
{
"name": "Juan Pérez",
"firstname": "Juan",
"fathers_name": "Pérez",
"email": "juan.perez@example.com",
"phone": "+573001234567",
"document_type": "CC",
"document_number": "1234567890",
"date_of_birth": "1990-05-14",
"monthly_income": 3500000,
"address_city": "Bogotá",
"sdk_data": {
"origin_user_id": "abc123"
}
}

Accepted fields. The body accepts only these fields; anything else is silently ignored:

Group Fields
Identity name, firstname, second_name, fathers_name, mothers_name, document_type, document_number, gender, date_of_birth
Contact email, phone
Financial profile income_source, monthly_income, bank_choose
Address residence_status, street, address_city, address_region
Your identifier sdk_data

Your own customer identifier is mandatory and goes inside sdk_data — a free-form JSON object, for example "sdk_data": {"origin_user_id": "abc123"}. It is what links each journey to your customer.

sdk_data is merged with what already exists (a shallow, top-level merge): keys you don’t send in a later write are kept; if you send the same key again, its value is replaced. Always use the same key name for your ID.

  • null or empty values are ignored — they never erase existing data.
  • Send the data within the first few seconds. The user’s form is pre-filled with whatever has arrived by the time the user reaches that step. Data that arrives later is not pre-filled, and non-empty values you send later overwrite what the user typed.

Response: 200 OK, normally with an empty body.

Code Message Meaning
400 Org '<name>' not found The org_name in step 1 doesn’t exist. Check the value Prosperas gave you.
403 Cannot create sessions for a different organization The org_name doesn’t match the organization of your X-API-KEY.
404 Session not found The reference_number in step 3 doesn’t exist or doesn’t belong to your organization.
404 User not found The session was created without document_number in step 1, so it has no associated user.

You follow your customers’ credit status in the Prosperas dashboard, scoped to your organization: sessions, leads and their status (approved, rejected, disbursed), with date and UTM filters. There are no status notifications (postbacks) to the Origin.

Requirement Detail
Minimum engine Chrome / Android WebView 88+, Safari / iOS WKWebView 14+
JavaScript, cookies and local storage Enabled
Camera / file upload Enable them if you can — some Lenders may request document capture.
External links Allow Lender sites to open.
Back/close navigation The experience sends no “return to app” signal. The back/close button is your WebView’s responsibility.
  • The utm_id values you chose for each entry point.
  • Which customer data you will send, and the sdk_data key you use for your customer ID.
  • The market(s) you will operate in.
  • A technical contact and a business contact.
  • Your org_name and your X-API-KEY credential per environment, delivered securely out of band.
  • The base domains for the API and for the Prosperas web experience, per environment.
  • Access to the Prosperas dashboard for your team.

Last verified: 2026-11-25 · v2.0