POST api/savePayment
Request Information
URI Parameters
None.
Body Parameters
PaymentRequest| Name | Description | Type | Additional information |
|---|---|---|---|
| Payment | SavePaymentHeaderRequest |
None. |
|
| FinancialDocList | Collection of DocFinancialRequest |
None. |
Request Formats
application/json, text/json
Sample:
{
"payment": {
"orderHId": 1,
"bankCode": "sample string 2",
"dayOfMonth": 1,
"isActive": "sample string 3",
"paymentEndDate": "2026-01-13T18:26:22.5058753+07:00",
"paymentStartDate": "2026-01-13T18:26:22.5058753+07:00",
"paymentStatus": "sample string 4",
"paymentTotalTerm": 1,
"remark": "sample string 5",
"channelProduct": "sample string 6",
"totalProduct": 7.0,
"totalDeposit": 1.0,
"totalDiscount": 1.0,
"channelDeposit": "sample string 8",
"totalPayment": 9.0,
"paymentId": 10,
"paymentType": "sample string 11",
"createBy": "sample string 12",
"updateBy": "sample string 13",
"clientCode": "sample string 14"
},
"financialDocList": [
{
"crmCode": "sample string 1",
"docFinancialId": 2,
"docFinancialRemark": "sample string 3",
"docFinancialType": "sample string 4",
"docFinancialUrl": "sample string 5",
"isActive": "sample string 6",
"orderHeaderId": 9
},
{
"crmCode": "sample string 1",
"docFinancialId": 2,
"docFinancialRemark": "sample string 3",
"docFinancialType": "sample string 4",
"docFinancialUrl": "sample string 5",
"isActive": "sample string 6",
"orderHeaderId": 9
}
]
}
application/xml, text/xml
Sample:
<PaymentRequest xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/VentilatorAPI.HTTP.Request">
<FinancialDocList>
<DocFinancialRequest>
<createBy>sample string 7</createBy>
<crmCode>sample string 1</crmCode>
<docFinancialId>2</docFinancialId>
<docFinancialRemark>sample string 3</docFinancialRemark>
<docFinancialType>sample string 4</docFinancialType>
<docFinancialUrl>sample string 5</docFinancialUrl>
<isActive>sample string 6</isActive>
<orderHeaderId>9</orderHeaderId>
<updateBy>sample string 8</updateBy>
</DocFinancialRequest>
<DocFinancialRequest>
<createBy>sample string 7</createBy>
<crmCode>sample string 1</crmCode>
<docFinancialId>2</docFinancialId>
<docFinancialRemark>sample string 3</docFinancialRemark>
<docFinancialType>sample string 4</docFinancialType>
<docFinancialUrl>sample string 5</docFinancialUrl>
<isActive>sample string 6</isActive>
<orderHeaderId>9</orderHeaderId>
<updateBy>sample string 8</updateBy>
</DocFinancialRequest>
</FinancialDocList>
<Payment>
<bankCode>sample string 2</bankCode>
<channelDeposit>sample string 8</channelDeposit>
<channelProduct>sample string 6</channelProduct>
<clientCode>sample string 14</clientCode>
<createBy>sample string 12</createBy>
<dayOfMonth>1</dayOfMonth>
<isActive>sample string 3</isActive>
<orderHId>1</orderHId>
<paymentEndDate>2026-01-13T18:26:22.5058753+07:00</paymentEndDate>
<paymentId>10</paymentId>
<paymentStartDate>2026-01-13T18:26:22.5058753+07:00</paymentStartDate>
<paymentStatus>sample string 4</paymentStatus>
<paymentTotalTerm>1</paymentTotalTerm>
<paymentType>sample string 11</paymentType>
<remark>sample string 5</remark>
<totalDeposit>1</totalDeposit>
<totalDiscount>1</totalDiscount>
<totalPayment>9</totalPayment>
<totalProduct>7</totalProduct>
<updateBy>sample string 13</updateBy>
</Payment>
</PaymentRequest>
application/x-www-form-urlencoded
Sample:
Sample not available.
Response Information
Resource Description
IHttpActionResultNone.
Response Formats
application/json, text/json, application/xml, text/xml
Sample:
Sample not available.