Enroll Customer
Loans
Enroll Customer
Enroll an existing customer for lending. Idempotent — returns the existing enrollment if already enrolled.
POST
Enroll Customer
Overview
Registers an existing customer with the Carbon lending engine. The customer must already exist (created viaPOST /v1/customers) and must have a BVN and an active wallet account.
This call is idempotent — sending the same customer_id twice returns the existing enrollment with 200 OK instead of creating a duplicate.
Request
Method:POSTURL:
/v1/loans/customers/enroll
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
x-carbon-key | Header | string | Yes | API key for authentication. |
Request Body
| Field | Type | Required | Description |
|---|---|---|---|
customer_id | string | Yes | UUID of the customer from POST /v1/customers |
Response
201 — New Enrollment
200 — Already Enrolled
| Field | Type | Description |
|---|---|---|
customer_id | string | The customer UUID |
account_identifier | string | Lending engine identifier. Present only on repeat calls. |
customer_type | string | INDIVIDUAL or BUSINESS |
kyc_status | string | Initial status is always PENDING |
enrolled_at | string | UTC ISO-8601 timestamp |
Error Responses
| Status | Message | Cause |
|---|---|---|
| 400 | customer_id is required | Field missing from request body |
| 400 | Customer not found | customer_id not found under this merchant |
| 422 | Customer must have a BVN to enroll for lending | Customer record has no BVN |
| 422 | Customer must have an account before enrolling for lending | Customer has no active wallet/account |
Authorizations
Provide your API key in the 'apikey' header.
Headers
Body
application/json
Provide the required values for the request body.
UUID of the customer to enroll
Example:
"1732ca47-42b2-4990-a65d-c369e934eed3"
Response
200 - application/json
Successful response
The response is of type object.