POST api/Customer/AddCustomerPayment
Request Information
URI Parameters
None.
Body Parameters
AddCustomerPaymentRequestName | Description | Type | Additional information |
---|---|---|---|
CashRegisterHistoryID | integer |
Required |
|
CustomerID | integer |
Required |
|
PaymentModeID | integer |
None. |
|
CreatedByUserID | integer |
None. |
|
AllUpdateCustomerPaymentList | Collection of UpdateCustomerPaymentModel |
None. |
Request Formats
application/json, text/json
Sample:
{ "CashRegisterHistoryID": 1, "CustomerID": 2, "PaymentModeID": 3, "CreatedByUserID": 4, "AllUpdateCustomerPaymentList": [ { "SalePaymentID": 1, "dPaidAmount": 1.0 }, { "SalePaymentID": 1, "dPaidAmount": 1.0 } ] }
application/xml, text/xml
Sample:
<AddCustomerPaymentRequest xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/POS.DTO.Request"> <AllUpdateCustomerPaymentList xmlns:d2p1="http://schemas.datacontract.org/2004/07/POS.DTO.DataModel"> <d2p1:UpdateCustomerPaymentModel> <d2p1:SalePaymentID>1</d2p1:SalePaymentID> <d2p1:dPaidAmount>1</d2p1:dPaidAmount> </d2p1:UpdateCustomerPaymentModel> <d2p1:UpdateCustomerPaymentModel> <d2p1:SalePaymentID>1</d2p1:SalePaymentID> <d2p1:dPaidAmount>1</d2p1:dPaidAmount> </d2p1:UpdateCustomerPaymentModel> </AllUpdateCustomerPaymentList> <CashRegisterHistoryID>1</CashRegisterHistoryID> <CreatedByUserID>4</CreatedByUserID> <CustomerID>2</CustomerID> <PaymentModeID>3</PaymentModeID> </AddCustomerPaymentRequest>
application/x-www-form-urlencoded
Sample:
Sample not available.
Response Information
Resource Description
ResponseDetailName | Description | Type | Additional information |
---|---|---|---|
ResponseCode | integer |
None. |
|
ResponseText | string |
None. |
Response Formats
application/json, text/json
Sample:
{ "ResponseCode": 1, "ResponseText": "sample string 2" }
application/xml, text/xml
Sample:
<ResponseDetail xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/POS.DTO.DataModel"> <ResponseCode>1</ResponseCode> <ResponseText>sample string 2</ResponseText> </ResponseDetail>