PUT api/loans/{accountNumber}/promisetopay/{promiseToPayId}

Request Information

URI Parameters

NameDescriptionTypeAdditional information
accountNumber

integer

Required

promiseToPayId

integer

Required

Body Parameters

UpdatePromiseToPaySubModel
NameDescriptionTypeAdditional information
Type

string

None.

ReferenceBalanceId

integer

None.

BalanceType

string

None.

DeliveryMethod

string

None.

Note

string

None.

Amount

decimal number

None.

PaymentMethod

string

None.

Date

date

None.

ScheduleAmountDue

decimal number

None.

Request Formats

application/json, text/json

Sample:
{
  "Type": "sample string 1",
  "ReferenceBalanceId": 1,
  "BalanceType": "sample string 2",
  "DeliveryMethod": "sample string 3",
  "Note": "sample string 4",
  "Amount": 5.0,
  "PaymentMethod": "sample string 6",
  "Date": "2025-07-05T08:47:43.4481605+00:00",
  "ScheduleAmountDue": 7.0
}

application/xml, text/xml

Sample:
<UpdatePromiseToPaySubModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Automatrix.DMS.Business.Entities.SubModels">
  <Amount>5</Amount>
  <BalanceType>sample string 2</BalanceType>
  <Date>2025-07-05T08:47:43.4481605+00:00</Date>
  <DeliveryMethod>sample string 3</DeliveryMethod>
  <Note>sample string 4</Note>
  <PaymentMethod>sample string 6</PaymentMethod>
  <ReferenceBalanceId>1</ReferenceBalanceId>
  <ScheduleAmountDue>7</ScheduleAmountDue>
  <Type>sample string 1</Type>
</UpdatePromiseToPaySubModel>

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 'UpdatePromiseToPaySubModel'

Response Information

Resource Description

IHttpActionResult

None.

Response Formats

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

Sample:

Sample not available.