POST api/loans/{accountNumber}/payments/revert

Request Information

URI Parameters

NameDescriptionTypeAdditional information
accountNumber

integer

Required

Body Parameters

PaymentReversalRequestSubModel
NameDescriptionTypeAdditional information
PaymentId

integer

None.

Reason

string

None.

ChargeAmount

decimal number

None.

AccountNumber

integer

None.

Type

string

None.

PaymentType

string

None.

NewEffectiveDate

date

None.

Request Formats

application/json, text/json

Sample:
{
  "PaymentId": 1,
  "Reason": "sample string 2",
  "ChargeAmount": 3.0,
  "AccountNumber": 4,
  "Type": "sample string 5",
  "PaymentType": "sample string 6",
  "NewEffectiveDate": "2025-07-05T07:41:03.8701989+00:00"
}

application/xml, text/xml

Sample:
<PaymentReversalRequestSubModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Automatrix.DMS.Business.Entities.SubModels">
  <AccountNumber>4</AccountNumber>
  <ChargeAmount>3</ChargeAmount>
  <NewEffectiveDate>2025-07-05T07:41:03.8701989+00:00</NewEffectiveDate>
  <PaymentId>1</PaymentId>
  <PaymentType>sample string 6</PaymentType>
  <Reason>sample string 2</Reason>
  <Type>sample string 5</Type>
</PaymentReversalRequestSubModel>

application/x-www-form-urlencoded

Sample:

Failed to generate the sample for media type 'application/x-www-form-urlencoded'. Cannot use formatter 'JQueryMvcFormUrlEncodedFormatter' to write type 'PaymentReversalRequestSubModel'

Response Information

Resource Description

IHttpActionResult

None.

Response Formats

application/json, text/json, application/xml, text/xml

Sample:

Sample not available.