---
title: "Do Refund"
method: POST
path: "/lending-service/v1/payments/refund"
---

# Do Refund

`POST /lending-service/v1/payments/refund`

## Request

- Base URL: `https://sandbox.interswitchng.com`
- URL: `https://sandbox.interswitchng.com/lending-service/v1/payments/refund`
- Auth: none required

## Headers

- `Authorization` string

## Request body

- object
  - `customerId` string, required: The Email or Mobile Number of the customer to be refunded. Max length: 50
  - `amount` integer, required: The Amount to be refunded to the customer’s account (in kobo). Max length: 50
  - `transactionId` string, required: The unique transaction identifier. This is the reference that will be used to re-query for the transaction status in case of an unresolved state. Max length: 50
  - `loanId` string, required: The loanId of the customer’s loan. Max length: 20
  - `providerCode` string, required: The Code of the provider from which this request is coming from. Max length: 50

## Response `200`

200

- object
  - `responseCode` string
  - `responseMessage` string
  - `transactionRef` 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)
