POST InvoiceApi/InvoiceAddv2

Request Information

URI Parameters

None.

Body Parameters

InvoiceAddVM
NameDescriptionTypeAdditional information
ID

integer

None.

PhoneID

integer

None.

InvoiceTypeID

integer

None.

Price

decimal number

None.

PaymentNote

string

None.

HostRefNum

string

None.

IsPhoneInvoice

boolean

None.

OtherInvoiceText

string

None.

InvoiceDate

date

None.

PhoneNumber

string

None.

Request Formats

application/json, text/json

Sample:
{
  "ID": 1,
  "PhoneID": 2,
  "InvoiceTypeID": 3,
  "Price": 4.0,
  "PaymentNote": "sample string 5",
  "HostRefNum": "sample string 6",
  "IsPhoneInvoice": true,
  "OtherInvoiceText": "sample string 8",
  "InvoiceDate": "2025-12-23T18:55:51.7013246+03:00",
  "PhoneNumber": "sample string 10"
}

application/xml, text/xml

Sample:
<InvoiceAddVM xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/RegexPoint.Models.Invoice">
  <HostRefNum>sample string 6</HostRefNum>
  <ID>1</ID>
  <InvoiceDate>2025-12-23T18:55:51.7013246+03:00</InvoiceDate>
  <InvoiceTypeID>3</InvoiceTypeID>
  <IsPhoneInvoice>true</IsPhoneInvoice>
  <OtherInvoiceText>sample string 8</OtherInvoiceText>
  <PaymentNote>sample string 5</PaymentNote>
  <PhoneID>2</PhoneID>
  <PhoneNumber>sample string 10</PhoneNumber>
  <Price>4</Price>
</InvoiceAddVM>

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

Response Information

Resource Description

IHttpActionResult

None.

Response Formats

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

Sample:

Sample not available.