POST api/Payments/Create
Request Information
URI Parameters
None.
Body Parameters
PaymentModel| Name | Description | Type | Additional information |
|---|---|---|---|
| JobNo | string |
None. |
|
| PaymentType | integer |
None. |
|
| ChequeNo | string |
None. |
|
| Date | date |
None. |
|
| BankName | string |
None. |
|
| BranchName | string |
None. |
|
| Amount | decimal number |
None. |
Request Formats
application/json, text/json
Sample:
{
"JobNo": "sample string 1",
"PaymentType": 2,
"ChequeNo": "sample string 3",
"Date": "2025-11-09T14:08:28.245621+07:00",
"BankName": "sample string 4",
"BranchName": "sample string 5",
"Amount": 6.1
}
application/xml, text/xml
Sample:
<PaymentModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Android_API.Models.Mobile"> <Amount>6.1</Amount> <BankName>sample string 4</BankName> <BranchName>sample string 5</BranchName> <ChequeNo>sample string 3</ChequeNo> <Date>2025-11-09T14:08:28.245621+07:00</Date> <JobNo>sample string 1</JobNo> <PaymentType>2</PaymentType> </PaymentModel>
application/x-www-form-urlencoded
Sample:
Sample not available.
Response Information
Resource Description
ResultWithModel| Name | Description | Type | Additional information |
|---|---|---|---|
| success | boolean |
None. |
|
| message | string |
None. |
|
| refcode | string |
None. |
|
| total | integer |
None. |
|
| datas | Object |
None. |
Response Formats
application/json, text/json
Sample:
{
"success": true,
"message": "sample string 2",
"refcode": "sample string 3",
"total": 4,
"datas": {}
}
application/xml, text/xml
Sample:
<ResultWithModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Android_API.Models"> <datas /> <message>sample string 2</message> <refcode>sample string 3</refcode> <success>true</success> <total>4</total> </ResultWithModel>