Credit API
The Credit API lets you onboard customers, request credit decisions powered by Colend's AI engine, and optionally trigger disbursement — all via two simple endpoints.
POST
/v1/credit/onboard
Onboard a customer
Register a new customer in the Colend system and initiate KYC verification. Returns a customer_id that you'll use for all subsequent credit operations. This step needs to happen once per customer.
KYC verification runs asynchronously. You'll receive a customer.verified webhook when complete — typically under 30 seconds. You can also poll
/v1/customer/{id} for status.
Request body parameters
full_name
string
Customer's full legal name as it appears on official ID.
curp
string
18-character CURP. Used for identity verification and bureau lookup.
rfc
string
RFC with homoclave. Strongly recommended — improves decisioning accuracy.
phone
string
Mexican mobile number in E.164 format, e.g.
+5215512345678.email
string
Customer email. Used for communication and fraud scoring.
address
object
Customer address with fields:
street, colonia, municipio, estado, cp.partner_customer_id
string
Your internal ID for this customer. Stored for reconciliation. Max 64 chars.
metadata
object
Arbitrary key-value pairs. Stored and returned in all subsequent responses.
Response fields
customer_id
string
Colend's unique identifier for this customer. Format:
cust_XXXXXXXXXX.kyc_status
string
One of
pending, verified, failed. Initially always pending.created_at
timestamp
ISO 8601 timestamp of customer creation.
201 Customer created
400 Invalid parameters
409 Customer already exists
422 CURP validation failed
POST
/v1/credit/evaluate
Request a credit decision
Submit a credit request for a verified customer. Colend's AI engine evaluates the customer's risk profile using 100+ signals and returns a decision — typically in under 3 minutes.
The customer must have
kyc_status: "verified" before calling this endpoint. If KYC is still pending, you'll receive a 422 error.
Request body parameters
customer_id
string
Colend customer ID returned from
/v1/credit/onboard.amount
integer
Requested amount in MXN pesos, as an integer. Minimum:
500. Maximum: 200000.currency
string
Always
MXN in the current version.purpose
string
Intended use:
purchase, working_capital, payroll, equipment, other.capital_source
string
Who provides the capital:
colend (Colend funds it) or partner (you fund it).context
object
Additional signals to improve accuracy:
purchase_history, avg_ticket, customer_since. See Context object →Response fields
credit_id
string
Unique ID for this credit request. Format:
crd_XXXXXXXXXX.decision
string
Credit decision:
APPROVED, REJECTED, or PENDING (still evaluating).approved_amount
integer
Approved amount in MXN. May differ from requested. Only present on
APPROVED.rate
float
Weekly interest rate as a decimal (e.g.
0.032 = 3.2% weekly). Present on APPROVED.term_weeks
integer
Loan term in weeks. Present on
APPROVED.rejection_reason
string
Machine-readable reason code. Present on
REJECTED only. See rejection codes →evaluated_at
timestamp
ISO 8601 timestamp when the decision was made.
200 Decision returned
202 Evaluation in progress
422 KYC not verified
404 Customer not found