POST api/Payment/pay
Request Information
URI Parameters
None.
Body Parameters
PayRequest| Name | Description | Type | Additional information |
|---|---|---|---|
| Products | Collection of ProductModel |
None. |
|
| id | string |
None. |
|
| Total | string |
None. |
|
| SubTotal | string |
None. |
|
| IsVoucher | string |
None. |
|
| UsedVoucher | integer |
None. |
|
| Amount | integer |
None. |
Request Formats
application/json, text/json
Sample:
{
"Products": [
{
"ID": 1,
"Name": "sample string 2",
"DiseaseName": "sample string 3",
"ImagePath": "sample string 4",
"DocumentPath": "sample string 5",
"Cost": 6.1,
"Charges": 7.1,
"MOQ": 8,
"ProdQty": 9,
"TotalAmt": 10.1,
"DepoStock": 11.1,
"GST": 12.1,
"GSTAmount": 13.1
},
{
"ID": 1,
"Name": "sample string 2",
"DiseaseName": "sample string 3",
"ImagePath": "sample string 4",
"DocumentPath": "sample string 5",
"Cost": 6.1,
"Charges": 7.1,
"MOQ": 8,
"ProdQty": 9,
"TotalAmt": 10.1,
"DepoStock": 11.1,
"GST": 12.1,
"GSTAmount": 13.1
}
],
"id": "sample string 1",
"Total": "sample string 2",
"SubTotal": "sample string 3",
"IsVoucher": "sample string 4",
"UsedVoucher": 5,
"Amount": 6
}
application/xml, text/xml
Sample:
<PayRequest xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/AssociateAPI.Models">
<Amount>6</Amount>
<IsVoucher>sample string 4</IsVoucher>
<Products>
<ProductModel>
<Charges>7.1</Charges>
<Cost>6.1</Cost>
<DepoStock>11.1</DepoStock>
<DiseaseName>sample string 3</DiseaseName>
<DocumentPath>sample string 5</DocumentPath>
<GST>12.1</GST>
<GSTAmount>13.1</GSTAmount>
<ID>1</ID>
<ImagePath>sample string 4</ImagePath>
<MOQ>8</MOQ>
<Name>sample string 2</Name>
<ProdQty>9</ProdQty>
<TotalAmt>10.1</TotalAmt>
</ProductModel>
<ProductModel>
<Charges>7.1</Charges>
<Cost>6.1</Cost>
<DepoStock>11.1</DepoStock>
<DiseaseName>sample string 3</DiseaseName>
<DocumentPath>sample string 5</DocumentPath>
<GST>12.1</GST>
<GSTAmount>13.1</GSTAmount>
<ID>1</ID>
<ImagePath>sample string 4</ImagePath>
<MOQ>8</MOQ>
<Name>sample string 2</Name>
<ProdQty>9</ProdQty>
<TotalAmt>10.1</TotalAmt>
</ProductModel>
</Products>
<SubTotal>sample string 3</SubTotal>
<Total>sample string 2</Total>
<UsedVoucher>5</UsedVoucher>
<id>sample string 1</id>
</PayRequest>
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.