m2pfintech

Direct Repayment

Creates a direct repayment transaction from a bank or external source to a credit account. Processes the repayment and updates the credit balance.

POST
/credit-line-management/txn-manager/create

Header Parameters

TENANT*string

Tenant identifier for multi-tenant routing

Request Body

application/json

amount*number

Repayment amount

Formatdouble
businessEntityId*string

Business entity ID associated with the repayment

fromEntityId*string

Source entity ID making the repayment

businessType?string

Type of business for this repayment

description?string

Description or narration for the repayment

toEntityId*string

Target/destination entity ID receiving the repayment

productId?string

Product ID associated with the credit account

fromProductId?string

Product ID of the source account

transactionOrigin?string

Origin of the transaction (e.g. BANK, API)

externalTransactionId?string

External/third-party transaction reference ID

transactionType?string

Type of transaction (e.g. REPAYMENT)

kitNo?string

Card kit number if repayment is card-specific

transactionDate?string

Date of the transaction

Response Body

application/json

application/json

application/json

application/json

curl -X POST "https://api.m2pfintech.com/credit-line-management/txn-manager/create" \  -H "TENANT: string" \  -H "Content-Type: application/json" \  -d '{    "amount": 5000,    "businessEntityId": "BIZ001",    "fromEntityId": "BANK20260617001",    "toEntityId": "CUST20260617001",    "description": "Credit card bill repayment",    "productId": "RETAIL_CREDIT",    "transactionOrigin": "BANK",    "externalTransactionId": "TXN20260622001",    "transactionType": "REPAYMENT"  }'
{
  "result": true,
  "exception": null,
  "pagination": null
}
{
  "result": null,
  "exception": {
    "errorCode": "ERR_400",
    "shortMessage": "Bad Request",
    "detailMessage": "Invalid or missing required fields in the request payload."
  },
  "pagination": null
}
{
  "result": null,
  "exception": {
    "errorCode": "ERR_401",
    "shortMessage": "Unauthorized",
    "detailMessage": "Missing or invalid TENANT header."
  },
  "pagination": null
}
{
  "result": null,
  "exception": {
    "errorCode": "ERR_500",
    "shortMessage": "Internal Server Error",
    "detailMessage": "An unexpected error occurred. Please try again later."
  },
  "pagination": null
}