POST api/order/insertPayment
Request Information
URI Parameters
None.
Body Parameters
PaymentModel| Name | Description | Type | Additional information |
|---|---|---|---|
| PaymentId | integer |
None. |
|
| LedgerId | integer |
None. |
|
| Amount | decimal number |
None. |
|
| PaymentType | string |
None. |
|
| Date | date |
None. |
|
| Narration | string |
None. |
|
| BankId | integer |
None. |
Request Formats
application/json, text/json
Sample:
{
"PaymentId": 1,
"LedgerId": 2,
"Amount": 3.0,
"PaymentType": "sample string 4",
"Date": "2026-07-08T19:11:16.841624+05:30",
"Narration": "sample string 6",
"BankId": 7
}
application/xml, text/xml
Sample:
<PaymentModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/MasAuto.Models"> <Amount>3</Amount> <BankId>7</BankId> <Date>2026-07-08T19:11:16.841624+05:30</Date> <LedgerId>2</LedgerId> <Narration>sample string 6</Narration> <PaymentId>1</PaymentId> <PaymentType>sample string 4</PaymentType> </PaymentModel>
application/x-www-form-urlencoded
Sample:
Sample not available.
Response Information
Resource Description
ResponseWrapper| Name | Description | Type | Additional information |
|---|---|---|---|
| ResponseCode | integer |
None. |
|
| Message | string |
None. |
|
| Response | Object |
None. |
Response Formats
application/json, text/json
Sample:
{
"ResponseCode": 1,
"Message": "sample string 2",
"Response": {}
}
application/xml, text/xml
Sample:
<ResponseWrapper xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/MasAuto.Models"> <Message>sample string 2</Message> <Response /> <ResponseCode>1</ResponseCode> </ResponseWrapper>