POST api/InvoiceHeader

Request Information

URI Parameters

None.

Body Parameters

UserInvoiceHeader
NameDescriptionTypeAdditional information
InvoiceNo

integer

None.

InvoiceDate

date

None.

AccountId

integer

None.

SalesmanId

integer

None.

PoRef

decimal number

None.

PoDate

decimal number

None.

SubTotal

decimal number

None.

Discount

decimal number

None.

RoundOff

decimal number

None.

Total

decimal number

None.

InvoiceType

string

None.

Id

integer

None.

Active

boolean

None.

CreatedBy

string

None.

Request Formats

application/json, text/json

Sample:
{
  "InvoiceNo": 1,
  "InvoiceDate": "2025-12-15T21:35:38.8238121+05:30",
  "AccountId": 3,
  "SalesmanId": 4,
  "PoRef": 1.0,
  "PoDate": 1.0,
  "SubTotal": 5.0,
  "Discount": 6.0,
  "RoundOff": 7.0,
  "Total": 8.0,
  "InvoiceType": "sample string 9",
  "Id": 10,
  "Active": true,
  "CreatedBy": "sample string 12"
}

application/xml, text/xml

Sample:
<UserInvoiceHeader xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/PEAPI.Model">
  <Active>true</Active>
  <CreatedBy>sample string 12</CreatedBy>
  <Id>10</Id>
  <AccountId>3</AccountId>
  <Discount>6</Discount>
  <InvoiceDate>2025-12-15T21:35:38.8238121+05:30</InvoiceDate>
  <InvoiceNo>1</InvoiceNo>
  <InvoiceType>sample string 9</InvoiceType>
  <PoDate>1</PoDate>
  <PoRef>1</PoRef>
  <RoundOff>7</RoundOff>
  <SalesmanId>4</SalesmanId>
  <SubTotal>5</SubTotal>
  <Total>8</Total>
</UserInvoiceHeader>

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

Resource Description

HttpResponseMessage
NameDescriptionTypeAdditional information
Version

Version

None.

Content

HttpContent

None.

StatusCode

HttpStatusCode

None.

ReasonPhrase

string

None.

Headers

Collection of Object

None.

RequestMessage

HttpRequestMessage

None.

IsSuccessStatusCode

boolean

None.