POST api/purchase/purchaseadd

Request Information

URI Parameters

None.

Body Parameters

Purchase
NameDescriptionTypeAdditional information
PurchaseId

integer

None.

PartyId

integer

None.

PurchaseDate

date

None.

AssignEmployeeId

integer

None.

InsertDateTime

date

None.

OldSoftwareInvoiceNo

string

None.

Note

string

None.

MainHeading

string

None.

Priority

string

None.

Request Formats

application/json, text/json

Sample:
{
  "PurchaseId": 1,
  "PartyId": 1,
  "PurchaseDate": "2025-12-06T09:58:53.3463859+05:30",
  "AssignEmployeeId": 1,
  "InsertDateTime": "2025-12-06T09:58:53.3463859+05:30",
  "OldSoftwareInvoiceNo": "sample string 2",
  "Note": "sample string 3",
  "MainHeading": "sample string 4",
  "Priority": "sample string 5"
}

application/xml, text/xml

Sample:
<Purchase xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/SolarDichachi">
  <AssignEmployeeId>1</AssignEmployeeId>
  <InsertDateTime>2025-12-06T09:58:53.3463859+05:30</InsertDateTime>
  <MainHeading>sample string 4</MainHeading>
  <Note>sample string 3</Note>
  <OldSoftwareInvoiceNo>sample string 2</OldSoftwareInvoiceNo>
  <PartyId>1</PartyId>
  <Priority>sample string 5</Priority>
  <PurchaseDate>2025-12-06T09:58:53.3463859+05:30</PurchaseDate>
  <PurchaseId>1</PurchaseId>
</Purchase>

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

Resource Description

Dictionary of string [key] and Object [value]

Response Formats

application/json, text/json

Sample:
{
  "sample string 1": {},
  "sample string 3": {}
}

application/xml, text/xml

Sample:
<ArrayOfKeyValueOfstringanyType xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
  <KeyValueOfstringanyType>
    <Key>sample string 1</Key>
    <Value />
  </KeyValueOfstringanyType>
  <KeyValueOfstringanyType>
    <Key>sample string 3</Key>
    <Value />
  </KeyValueOfstringanyType>
</ArrayOfKeyValueOfstringanyType>