POST api/Cargo/EditPayment
Request Information
URI Parameters
None.
Body Parameters
PaymentModelName | Description | Type | Additional information |
---|---|---|---|
PaymentID | integer |
None. |
|
VoucherNo | integer |
None. |
|
VoucherDate | string |
None. |
|
Amount | decimal number |
None. |
|
CurrencyId | integer |
None. |
|
CurrencyRate | decimal number |
None. |
|
PaymentDetails | string |
None. |
|
IsActive | boolean |
None. |
|
CustomerID | integer |
None. |
|
CompanyID | integer |
None. |
|
Cash_Amount | decimal number |
None. |
|
Bank_Amount | decimal number |
None. |
|
Goods_Price | boolean |
None. |
|
User_Name | string |
None. |
|
Edit_User_Name | string |
None. |
|
LateAmount | decimal number |
None. |
|
PayLateAmount | boolean |
None. |
|
Parent_Payment_ID | integer |
None. |
Request Formats
application/json, text/json
Sample:
{ "PaymentID": 1, "VoucherNo": 2, "VoucherDate": "sample string 3", "Amount": 4.1, "CurrencyId": 5, "CurrencyRate": 6.1, "PaymentDetails": "sample string 7", "IsActive": true, "CustomerID": 9, "CompanyID": 10, "Cash_Amount": 11.1, "Bank_Amount": 12.1, "Goods_Price": true, "User_Name": "sample string 14", "Edit_User_Name": "sample string 15", "LateAmount": 16.1, "PayLateAmount": true, "Parent_Payment_ID": 18 }
application/xml, text/xml
Sample:
<PaymentModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Layan_Cargo_API.Models"> <Amount>4.1</Amount> <Bank_Amount>12.1</Bank_Amount> <Cash_Amount>11.1</Cash_Amount> <CompanyID>10</CompanyID> <CurrencyId>5</CurrencyId> <CurrencyRate>6.1</CurrencyRate> <CustomerID>9</CustomerID> <Edit_User_Name>sample string 15</Edit_User_Name> <Goods_Price>true</Goods_Price> <IsActive>true</IsActive> <LateAmount>16.1</LateAmount> <Parent_Payment_ID>18</Parent_Payment_ID> <PayLateAmount>true</PayLateAmount> <PaymentDetails>sample string 7</PaymentDetails> <PaymentID>1</PaymentID> <User_Name>sample string 14</User_Name> <VoucherDate>sample string 3</VoucherDate> <VoucherNo>2</VoucherNo> </PaymentModel>
application/x-www-form-urlencoded
Sample:
Response Information
Resource Description
ResultModelName | Description | Type | Additional information |
---|---|---|---|
Success | string |
None. |
|
ErrorText | string |
None. |
|
Data | Object |
None. |
Response Formats
application/json, text/json
Sample:
{ "Success": "sample string 1", "ErrorText": "sample string 2", "Data": {} }
application/xml, text/xml
Sample:
<ResultModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Layan_Cargo_API.Models"> <Data /> <ErrorText>sample string 2</ErrorText> <Success>sample string 1</Success> </ResultModel>