POST api/purchase/PurchaseList

Request Information

URI Parameters

None.

Body Parameters

Purchase
NameDescriptionTypeAdditional information
PurchaseId

integer

None.

SupplierId

integer

None.

InvoiceNo

string

None.

InvoiceDate

date

None.

TotalCostAmount

decimal number

None.

TotalBasicAmount

decimal number

None.

TotalDiscountAmount

decimal number

None.

TotalTaxableAmount

decimal number

None.

TotalCGSTAmount

decimal number

None.

TotalSGSTAmount

decimal number

None.

TotalIGSTAmount

decimal number

None.

TotalGrandTotal

decimal number

None.

PaidAmount

decimal number

None.

DuesAmount

decimal number

None.

Status

byte

None.

CreatedOn

date

None.

CreatedBy

integer

None.

UpdatedOn

date

None.

UpdatedBy

integer

None.

Staff

Staff

None.

Staff1

Staff

None.

Supplier

Supplier

None.

PurchaseProducts

Collection of PurchaseProduct

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 for property 'Staff' with type 'Project.Staff'. Path 'Staff.Backups[0]'.

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 for property 'Staff' with type 'Project.Staff'. Path 'Staff.Backups[0]'.

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 'Project.MedicineSellReturnItem' 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 'Purchase'.

Response Information

Resource Description

Collection of Object

None.

Response Formats

application/json, text/json

Sample:
{}

text/xml

Sample:
<ArrayOfKeyValueOfstringanyType xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.microsoft.com/2003/10/Serialization/Arrays" />