POST api/Accounting/EditPayment

Request Information

URI Parameters

None.

Body Parameters

Edit_Payment
NameDescriptionTypeAdditional information
DailyTransId

integer

None.

PaymentId

integer

None.

BrokerId

integer

None.

Amount

decimal number

None.

DiscountAmount

decimal number

None.

CurrencyId

integer

None.

CurrencyRate

decimal number

None.

PaymentDate

string

None.

Details

string

None.

VoucherType

string

None.

User_Name

string

None.

Request Formats

application/json, text/json

Sample:
{
  "DailyTransId": 1,
  "PaymentId": 2,
  "BrokerId": 3,
  "Amount": 4.1,
  "DiscountAmount": 5.1,
  "CurrencyId": 6,
  "CurrencyRate": 7.1,
  "PaymentDate": "sample string 8",
  "Details": "sample string 9",
  "VoucherType": "sample string 10",
  "User_Name": "sample string 11"
}

application/xml, text/xml

Sample:
<Edit_Payment xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Layan_Cargo_API.ViewModels">
  <Amount>4.1</Amount>
  <BrokerId>3</BrokerId>
  <CurrencyId>6</CurrencyId>
  <CurrencyRate>7.1</CurrencyRate>
  <DailyTransId>1</DailyTransId>
  <Details>sample string 9</Details>
  <DiscountAmount>5.1</DiscountAmount>
  <PaymentDate>sample string 8</PaymentDate>
  <PaymentId>2</PaymentId>
  <User_Name>sample string 11</User_Name>
  <VoucherType>sample string 10</VoucherType>
</Edit_Payment>

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 'Edit_Payment'.

Response Information

Resource Description

boolean

Response Formats

application/json, text/json

Sample:
true

application/xml, text/xml

Sample:
<boolean xmlns="http://schemas.microsoft.com/2003/10/Serialization/">true</boolean>