POST api/Invoice/InsertUpdateInvoiceWithDiscount

Request Information

URI Parameters

None.

Body Parameters

DiscountInvoiceModel
NameDescriptionTypeAdditional information
InvoiceId

integer

None.

InvoiceNumber

string

None.

CustomerId

integer

None.

EmployeeId

integer

None.

CompanyId

integer

None.

Percentage

decimal number

None.

CashDiscount

decimal number

None.

TotalDiscount

decimal number

None.

AdminId

integer

None.

DispatcherId

integer

None.

UserId

integer

None.

NoOfDispatch

integer

None.

DispatchDate

date

None.

InvoiceNumberList

Collection of SalesInvoiceModels

None.

DispatchInvoiceId

integer

None.

DispatchId

integer

None.

Priority

string

None.

SalesmanId

integer

None.

CustomerNotes

string

None.

ShippingAddressId

integer

None.

InterestCharges

decimal number

None.

DispatchInvoiceDetailId

integer

None.

PrintWithInvoices

boolean

None.

CustDispatch

string

None.

IsDefaultAddress

boolean

None.

GetDataByDeliveryType

boolean

None.

TerritoryId

string

None.

PageSize

integer

None.

PageNumber

integer

None.

SortBy

string

None.

SortType

string

None.

FromDate

date

None.

ToDate

date

None.

DataFilters

Collection of Filters

None.

DataSort

Collection of Sort

None.

Logic

string

None.

FilterType

string

None.

Request Formats

application/json

Sample:

An exception has occurred while using the formatter 'JsonMediaTypeFormatter' to generate sample for media type 'application/json'. Exception message: Self referencing loop detected with type 'OMSWebApi.Models.SalesInvoiceModels'. Path 'InvoiceNumberList[0].salesInvoiceIdList'.

text/json

Sample:

An exception has occurred while using the formatter 'JsonMediaTypeFormatter' to generate sample for media type 'text/json'. Exception message: Self referencing loop detected with type 'OMSWebApi.Models.SalesInvoiceModels'. Path 'InvoiceNumberList[0].salesInvoiceIdList'.

application/xml

Sample:

An exception has occurred while using the formatter 'XmlMediaTypeFormatter' to generate sample for media type 'application/xml'. Exception message: Object graph for type 'System.Collections.Generic.List`1[[OMSWebApi.Models.SalesInvoiceModels, OMSWebApi, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null]]' contains cycles and cannot be serialized if reference tracking is disabled.

text/xml

Sample:

An exception has occurred while using the formatter 'XmlMediaTypeFormatter' to generate sample for media type 'text/xml'. Exception message: Object graph for type 'System.Collections.Generic.List`1[[OMSWebApi.Models.SalesInvoiceModels, OMSWebApi, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null]]' contains cycles and cannot be serialized if reference tracking is disabled.

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

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.