POST api/Supplier/AddSupplierPayment
Request Information
URI Parameters
None.
Body Parameters
AddSupplierPaymentRequest| Name | Description | Type | Additional information |
|---|---|---|---|
| SupplierID | integer |
Required |
|
| PaymentModeID | integer |
None. |
|
| CreatedByUserID | integer |
None. |
|
| AllUpdatePurchasePaymentList | Collection of UpdatePurchasePaymentModel |
None. |
Request Formats
application/json, text/json
Sample:
{
"SupplierID": 1,
"PaymentModeID": 2,
"CreatedByUserID": 3,
"AllUpdatePurchasePaymentList": [
{
"PurchasePaymentID": 1,
"dPaidAmount": 1.0
},
{
"PurchasePaymentID": 1,
"dPaidAmount": 1.0
}
]
}
application/xml, text/xml
Sample:
<AddSupplierPaymentRequest xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/POS.DTO.Request">
<AllUpdatePurchasePaymentList xmlns:d2p1="http://schemas.datacontract.org/2004/07/POS.DTO.DataModel">
<d2p1:UpdatePurchasePaymentModel>
<d2p1:PurchasePaymentID>1</d2p1:PurchasePaymentID>
<d2p1:dPaidAmount>1</d2p1:dPaidAmount>
</d2p1:UpdatePurchasePaymentModel>
<d2p1:UpdatePurchasePaymentModel>
<d2p1:PurchasePaymentID>1</d2p1:PurchasePaymentID>
<d2p1:dPaidAmount>1</d2p1:dPaidAmount>
</d2p1:UpdatePurchasePaymentModel>
</AllUpdatePurchasePaymentList>
<CreatedByUserID>3</CreatedByUserID>
<PaymentModeID>2</PaymentModeID>
<SupplierID>1</SupplierID>
</AddSupplierPaymentRequest>
application/x-www-form-urlencoded
Sample:
Sample not available.
Response Information
Resource Description
ResponseDetail| Name | 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>