---
title: "Credit Customer"
method: POST
path: "/lending-service/api/v1/loans/{loanId}/fund"
---

# Credit Customer

`POST /lending-service/api/v1/loans/{loanId}/fund`

## Request

- Base URL: `https://sandbox.interswitchng.com`
- URL: `https://sandbox.interswitchng.com/lending-service/api/v1/loans/{loanId}/fund`
- Auth: none required

This endpoint is provisioned for providers to use when they want to credit the user’s account for the loan amount. 
The Service will fire a fund transfer advice request to Quickteller with the configured details of the Provider.

## Path parameters

- `loanId` string, required

## Headers

- `Authorization` string, required

## Request body

- object
  - `customerId` string, required: The Email or Mobile Number of the User to the credited. Max Length: 50
  - `loanId` string, required: The Id of the loan for which this credit request is made. Max length: 50
  - `amount` integer, required: The Amount to be credited to the user’s account. (This is in lower denomination KOBO)
  - `providerCode` string, required: The Code of the provider from which this request is coming from.
  - `currencyCode` string, required: ISO 4217 standard currency code. Default to 566
  - `transactionId` string, required: The Identifier for this transaction that can be used for Requery in later time.
  - `qtTerminalId` string: The quickteller terminalId to be used.
  - `loanReferenceId` string: A unique identifier assigned to the loan from the Lending Service. It should be the same loan reference id that was sent to the provider in the AcceptOffer request body.. Max length: 50.

## Response `200`

200

- object
  - `responseCode` string
  - `responseMessage` string
  - `transactionRef` string
  - `transactionId` string

## Other responses

- `400`: 400

---

[API](https://skmtc.dev/interswitchgroup/apis/ipg.md) - [All operations](https://skmtc.dev/interswitchgroup/apis/ipg/llms.txt) - [OpenAPI document](https://skmtc.dev/interswitchgroup/apis/ipg/revisions/98dead048190?raw)
