POST fruitsapi/saveorupdatewebsales?preFix={preFix}

Request Information

URI Parameters

NameDescriptionTypeAdditional information
preFix

string

Required

Body Parameters

Collection of WebSales
NameDescriptionTypeAdditional information
BillNo

integer

None.

CompanyId

integer

None.

BranchId

integer

None.

PartyId

string

None.

SalmanId

string

None.

Tagno

string

None.

ProdId

integer

None.

UserId

integer

None.

Qty

decimal number

None.

Weight

decimal number

None.

NetWeight

decimal number

None.

SelRate

decimal number

None.

Mrp

decimal number

None.

RecAmt

decimal number

None.

CashDiscount

decimal number

None.

Vat

decimal number

None.

VatVal

decimal number

None.

Discper

decimal number

None.

DiscCash

decimal number

None.

Amount

decimal number

None.

Cancel

string

None.

ImgPath

string

None.

HsnCode

string

None.

EntrefNo

integer

None.

CounterId

integer

None.

SystemId

integer

None.

Request Formats

application/json, text/json

Sample:
[
  {
    "BillNo": 1,
    "CompanyId": 2,
    "BranchId": 3,
    "PartyId": "sample string 4",
    "SalmanId": "sample string 5",
    "Tagno": "sample string 6",
    "ProdId": 7,
    "UserId": 8,
    "Qty": 9.0,
    "Weight": 10.0,
    "NetWeight": 11.0,
    "SelRate": 12.0,
    "Mrp": 13.0,
    "RecAmt": 14.0,
    "CashDiscount": 15.0,
    "Vat": 16.0,
    "VatVal": 17.0,
    "Discper": 18.0,
    "DiscCash": 19.0,
    "Amount": 20.0,
    "Cancel": "sample string 21",
    "ImgPath": "sample string 22",
    "HsnCode": "sample string 23",
    "EntrefNo": 24,
    "CounterId": 25,
    "SystemId": 26
  },
  {
    "BillNo": 1,
    "CompanyId": 2,
    "BranchId": 3,
    "PartyId": "sample string 4",
    "SalmanId": "sample string 5",
    "Tagno": "sample string 6",
    "ProdId": 7,
    "UserId": 8,
    "Qty": 9.0,
    "Weight": 10.0,
    "NetWeight": 11.0,
    "SelRate": 12.0,
    "Mrp": 13.0,
    "RecAmt": 14.0,
    "CashDiscount": 15.0,
    "Vat": 16.0,
    "VatVal": 17.0,
    "Discper": 18.0,
    "DiscCash": 19.0,
    "Amount": 20.0,
    "Cancel": "sample string 21",
    "ImgPath": "sample string 22",
    "HsnCode": "sample string 23",
    "EntrefNo": 24,
    "CounterId": 25,
    "SystemId": 26
  }
]

text/html

Sample:
[{"BillNo":1,"CompanyId":2,"BranchId":3,"PartyId":"sample string 4","SalmanId":"sample string 5","Tagno":"sample string 6","ProdId":7,"UserId":8,"Qty":9.0,"Weight":10.0,"NetWeight":11.0,"SelRate":12.0,"Mrp":13.0,"RecAmt":14.0,"CashDiscount":15.0,"Vat":16.0,"VatVal":17.0,"Discper":18.0,"DiscCash":19.0,"Amount":20.0,"Cancel":"sample string 21","ImgPath":"sample string 22","HsnCode":"sample string 23","EntrefNo":24,"CounterId":25,"SystemId":26},{"BillNo":1,"CompanyId":2,"BranchId":3,"PartyId":"sample string 4","SalmanId":"sample string 5","Tagno":"sample string 6","ProdId":7,"UserId":8,"Qty":9.0,"Weight":10.0,"NetWeight":11.0,"SelRate":12.0,"Mrp":13.0,"RecAmt":14.0,"CashDiscount":15.0,"Vat":16.0,"VatVal":17.0,"Discper":18.0,"DiscCash":19.0,"Amount":20.0,"Cancel":"sample string 21","ImgPath":"sample string 22","HsnCode":"sample string 23","EntrefNo":24,"CounterId":25,"SystemId":26}]

application/xml, text/xml

Sample:
<ArrayOfWebSales xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/FruitsApi.Models">
  <WebSales>
    <Amount>20</Amount>
    <BillNo>1</BillNo>
    <BranchId>3</BranchId>
    <Cancel>sample string 21</Cancel>
    <CashDiscount>15</CashDiscount>
    <CompanyId>2</CompanyId>
    <CounterId>25</CounterId>
    <DiscCash>19</DiscCash>
    <Discper>18</Discper>
    <EntrefNo>24</EntrefNo>
    <HsnCode>sample string 23</HsnCode>
    <ImgPath>sample string 22</ImgPath>
    <Mrp>13</Mrp>
    <NetWeight>11</NetWeight>
    <PartyId>sample string 4</PartyId>
    <ProdId>7</ProdId>
    <Qty>9</Qty>
    <RecAmt>14</RecAmt>
    <SalmanId>sample string 5</SalmanId>
    <SelRate>12</SelRate>
    <SystemId>26</SystemId>
    <Tagno>sample string 6</Tagno>
    <UserId>8</UserId>
    <Vat>16</Vat>
    <VatVal>17</VatVal>
    <Weight>10</Weight>
  </WebSales>
  <WebSales>
    <Amount>20</Amount>
    <BillNo>1</BillNo>
    <BranchId>3</BranchId>
    <Cancel>sample string 21</Cancel>
    <CashDiscount>15</CashDiscount>
    <CompanyId>2</CompanyId>
    <CounterId>25</CounterId>
    <DiscCash>19</DiscCash>
    <Discper>18</Discper>
    <EntrefNo>24</EntrefNo>
    <HsnCode>sample string 23</HsnCode>
    <ImgPath>sample string 22</ImgPath>
    <Mrp>13</Mrp>
    <NetWeight>11</NetWeight>
    <PartyId>sample string 4</PartyId>
    <ProdId>7</ProdId>
    <Qty>9</Qty>
    <RecAmt>14</RecAmt>
    <SalmanId>sample string 5</SalmanId>
    <SelRate>12</SelRate>
    <SystemId>26</SystemId>
    <Tagno>sample string 6</Tagno>
    <UserId>8</UserId>
    <Vat>16</Vat>
    <VatVal>17</VatVal>
    <Weight>10</Weight>
  </WebSales>
</ArrayOfWebSales>

application/x-www-form-urlencoded

Sample:

Failed to generate the sample for media type 'application/x-www-form-urlencoded'. Cannot use formatter 'JQueryMvcFormUrlEncodedFormatter' to write type 'List`1'.

Response Information

Resource Description

IHttpActionResult

None.

Response Formats

application/json, text/json, text/html, application/xml, text/xml

Sample:

Sample not available.