m2pfintech
API LibraryBeneficiary

Delete Beneficiary

Deletes an IMPS beneficiary by account number and IFSC code, with OTP verification.

DELETE
/v1/imps/beneficiary/delete

Authorization

bearerAuth tenantId
AuthorizationBearer <token>

JWT Bearer token from the Authentication API

In: header

X-TENANT-ID<token>

Your unique tenant identifier assigned during onboarding

In: header

Header Parameters

X-TENANT-ID*string

Your unique tenant identifier assigned during partner onboarding

Request Body

application/json

entityId*string

Required. Customer entity ID

Length1 <= length
accountNumber*string

Required. Account number of beneficiary to delete

Length1 <= length
ifscCode*string

Required. IFSC code of beneficiary to delete

Length1 <= length
otpDetails?

OTP verification details

Response Body

application/json

application/json

curl -X DELETE "https://sandbox-api.m2pprepaid.com/prepaid/customer/v1/imps/beneficiary/delete" \  -H "X-TENANT-ID: ACME_CORP" \  -H "Content-Type: application/json" \  -d '{    "entityId": "string",    "accountNumber": "string",    "ifscCode": "string"  }'
{
  "result": {},
  "pagination": {
    "list": true,
    "pageSize": 0,
    "pageNo": 0,
    "totalPages": 0,
    "totalElements": 0
  }
}
{
  "type": "https://www.m2pfintech.com/problem/problem-with-message",
  "title": "Customer does not exist",
  "status": 409,
  "detail": "Customer does not exist for id: 798782647420001622070825",
  "message": "error.http.400",
  "businessCode": "PPCUST_002",
  "cause": {},
  "errorCode": "string",
  "errors": [
    "string"
  ],
  "languageCode": "string",
  "localizedMessage": "string",
  "suppressed": [
    {}
  ]
}