POST api/Masters/SaveBill

Request Information

URI Parameters

None.

Body Parameters

BillMasterModel
NameDescriptionTypeAdditional information
Id

integer

None.

BillNo

integer

None.

PartyName

string

None.

BillDate

date

None.

BillTime

string

None.

TotalFine

decimal number

None.

OldBalance

decimal number

None.

TotalNetFine

decimal number

None.

Items

Collection of BillItemModel

None.

Request Formats

application/json, text/json

Sample:
{
  "Id": 1,
  "BillNo": 2,
  "PartyName": "sample string 3",
  "BillDate": "2026-05-18T04:37:34.8570584+05:30",
  "BillTime": "sample string 5",
  "TotalFine": 6.0,
  "OldBalance": 7.0,
  "TotalNetFine": 8.0,
  "Items": [
    {
      "Id": 1,
      "ItemName": "sample string 2",
      "Weight": 3.0,
      "LessWt": 4.0,
      "NetWt": 5.0,
      "Fine": 6.0,
      "Tunch": 7.0,
      "Labour": 8.0
    },
    {
      "Id": 1,
      "ItemName": "sample string 2",
      "Weight": 3.0,
      "LessWt": 4.0,
      "NetWt": 5.0,
      "Fine": 6.0,
      "Tunch": 7.0,
      "Labour": 8.0
    }
  ]
}

application/xml, text/xml

Sample:
<BillMasterModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/akwiecommApi.Models">
  <BillDate>2026-05-18T04:37:34.8570584+05:30</BillDate>
  <BillNo>2</BillNo>
  <BillTime>sample string 5</BillTime>
  <Id>1</Id>
  <Items>
    <BillItemModel>
      <Fine>6</Fine>
      <Id>1</Id>
      <ItemName>sample string 2</ItemName>
      <Labour>8</Labour>
      <LessWt>4</LessWt>
      <NetWt>5</NetWt>
      <Tunch>7</Tunch>
      <Weight>3</Weight>
    </BillItemModel>
    <BillItemModel>
      <Fine>6</Fine>
      <Id>1</Id>
      <ItemName>sample string 2</ItemName>
      <Labour>8</Labour>
      <LessWt>4</LessWt>
      <NetWt>5</NetWt>
      <Tunch>7</Tunch>
      <Weight>3</Weight>
    </BillItemModel>
  </Items>
  <OldBalance>7</OldBalance>
  <PartyName>sample string 3</PartyName>
  <TotalFine>6</TotalFine>
  <TotalNetFine>8</TotalNetFine>
</BillMasterModel>

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 'BillMasterModel'.

Response Information

Resource Description

Response
NameDescriptionTypeAdditional information
Message

string

None.

status

integer

None.

Isupoad

boolean

None.

imageurl

string

None.

Data

Object

None.

IsSuccess

boolean

None.

StatusCode

integer

None.

Response Formats

application/json, text/json

Sample:
{
  "Message": "sample string 1",
  "status": 2,
  "Isupoad": true,
  "imageurl": "sample string 4",
  "Data": {},
  "IsSuccess": true,
  "StatusCode": 7
}

application/xml, text/xml

Sample:
<Response xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/akwiecommApi.Models">
  <Data />
  <IsSuccess>true</IsSuccess>
  <Isupoad>true</Isupoad>
  <Message>sample string 1</Message>
  <StatusCode>7</StatusCode>
  <imageurl>sample string 4</imageurl>
  <status>2</status>
</Response>