POST api/WOInvoice/SaveInvoiceOffLinePayment
API to save Invoice payment
Request Information
URI Parameters
None.
Body Parameters
OfflineInvoicePaymentRequestModelName | Description | Type | Additional information |
---|---|---|---|
InvoiceID | integer |
None. |
|
PaymentMethodID | integer |
None. |
|
PaymentAmount | decimal number |
None. |
|
PayRefNo | string |
None. |
|
AddedBy | integer |
None. |
|
PaymentDate | date |
None. |
|
CheckNo | string |
None. |
|
CardHolderName | string |
None. |
|
LastFourDigit | string |
None. |
|
IsReconcile | boolean |
None. |
|
APIKey | string |
None. |
Request Formats
application/json, text/json, text/plain, text/html
Sample:
{ "invoiceID": 1, "paymentMethodID": 2, "paymentAmount": 3.0, "payRefNo": "sample string 4", "addedBy": 5, "paymentDate": "2025-07-17T04:40:44.590972+00:00", "checkNo": "sample string 6", "cardHolderName": "sample string 7", "lastFourDigit": "sample string 8", "isReconcile": true, "apiKey": "sample string 10" }
application/xml, text/xml
Sample:
<OfflineInvoicePaymentRequestModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/ATMP.Core.RequestModel"> <APIKey>sample string 10</APIKey> <AddedBy>5</AddedBy> <CardHolderName>sample string 7</CardHolderName> <CheckNo>sample string 6</CheckNo> <InvoiceID>1</InvoiceID> <IsReconcile>true</IsReconcile> <LastFourDigit>sample string 8</LastFourDigit> <PayRefNo>sample string 4</PayRefNo> <PaymentAmount>3</PaymentAmount> <PaymentDate>2025-07-17T04:40:44.590972+00:00</PaymentDate> <PaymentMethodID>2</PaymentMethodID> </OfflineInvoicePaymentRequestModel>
multipart/form-data
Sample:
<OfflineInvoicePaymentRequestModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/ATMP.Core.RequestModel"><APIKey>sample string 10</APIKey><AddedBy>5</AddedBy><CardHolderName>sample string 7</CardHolderName><CheckNo>sample string 6</CheckNo><InvoiceID>1</InvoiceID><IsReconcile>true</IsReconcile><LastFourDigit>sample string 8</LastFourDigit><PayRefNo>sample string 4</PayRefNo><PaymentAmount>3</PaymentAmount><PaymentDate>2025-07-17T04:40:44.590972+00:00</PaymentDate><PaymentMethodID>2</PaymentMethodID></OfflineInvoicePaymentRequestModel>
application/x-www-form-urlencoded
Sample:
Sample not available.
Response Information
Resource Description
CommonResponseDataModelName | Description | Type | Additional information |
---|---|---|---|
ReturnID | integer |
Required |
|
Message | string |
Required |
|
Successful | boolean |
Required |
|
Code | integer |
None. |
|
TotalRecord | integer |
None. |
Response Formats
application/json, text/json, text/plain, text/html
Sample:
{ "returnID": 1, "message": "sample string 2", "successful": true, "code": 4, "totalRecord": 5 }
application/xml, text/xml
Sample:
<CommonResponseDataModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/ATMP.Core.DataModel"> <Code>4</Code> <Message>sample string 2</Message> <ReturnID>1</ReturnID> <Successful>true</Successful> <TotalRecord>5</TotalRecord> </CommonResponseDataModel>
multipart/form-data
Sample:
<CommonResponseDataModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/ATMP.Core.DataModel"><Code>4</Code><Message>sample string 2</Message><ReturnID>1</ReturnID><Successful>true</Successful><TotalRecord>5</TotalRecord></CommonResponseDataModel>