POST api/Receipt/InsertCustomerReceipt
Request Information
URI Parameters
None.
Body Parameters
PaymentRequestModel| Name | Description | Type | Additional information |
|---|---|---|---|
| ReceiptHeader | ReceiptHeaderModel |
None. |
|
| Invoices | Collection of InvoiceModel |
None. |
|
| PaymentReceipts | Collection of PaymentReceiptModel |
None. |
Request Formats
application/json, text/json
Sample:
{
"ReceiptHeader": {
"ReceiptDate": "2026-03-29T16:10:17.2138563-07:00",
"CustomerCode": "sample string 2",
"InsertUser": "sample string 3"
},
"Invoices": [
{
"InvoiceNo": "sample string 1",
"InvoiceAmount": 2.0
},
{
"InvoiceNo": "sample string 1",
"InvoiceAmount": 2.0
}
],
"PaymentReceipts": [
{
"PaidAmount": 1.0,
"PaymentMethod": "sample string 2",
"ChequeNo": "sample string 3",
"ChequeDate": "2026-03-29T16:10:17.2294769-07:00",
"Bank": "sample string 4"
},
{
"PaidAmount": 1.0,
"PaymentMethod": "sample string 2",
"ChequeNo": "sample string 3",
"ChequeDate": "2026-03-29T16:10:17.2294769-07:00",
"Bank": "sample string 4"
}
]
}
application/xml, text/xml
Sample:
<PaymentRequestModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/DataSynchronization.Models">
<Invoices>
<InvoiceModel>
<InvoiceAmount>2</InvoiceAmount>
<InvoiceNo>sample string 1</InvoiceNo>
</InvoiceModel>
<InvoiceModel>
<InvoiceAmount>2</InvoiceAmount>
<InvoiceNo>sample string 1</InvoiceNo>
</InvoiceModel>
</Invoices>
<PaymentReceipts>
<PaymentReceiptModel>
<Bank>sample string 4</Bank>
<ChequeDate>2026-03-29T16:10:17.2294769-07:00</ChequeDate>
<ChequeNo>sample string 3</ChequeNo>
<PaidAmount>1</PaidAmount>
<PaymentMethod>sample string 2</PaymentMethod>
</PaymentReceiptModel>
<PaymentReceiptModel>
<Bank>sample string 4</Bank>
<ChequeDate>2026-03-29T16:10:17.2294769-07:00</ChequeDate>
<ChequeNo>sample string 3</ChequeNo>
<PaidAmount>1</PaidAmount>
<PaymentMethod>sample string 2</PaymentMethod>
</PaymentReceiptModel>
</PaymentReceipts>
<ReceiptHeader>
<CustomerCode>sample string 2</CustomerCode>
<InsertUser>sample string 3</InsertUser>
<ReceiptDate>2026-03-29T16:10:17.2138563-07:00</ReceiptDate>
</ReceiptHeader>
</PaymentRequestModel>
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.