POST api/PurchaseMaster

Request Information

URI Parameters

None.

Body Parameters

PurchaseMaster
NameDescriptionTypeAdditional information
PurchaseId

decimal number

None.

PurchaseDate

date

None.

InvoiceDate

date

None.

ClientName

string

None.

ClientLinkCode

string

None.

WorkshopName

string

None.

InvoiceNumber

string

None.

SupplierPersonName

string

None.

SupplierPersonMobileNo

string

None.

StatusName

string

None.

LedgerPurchaseData

Collection of LedgerPurchase

None.

Request Formats

application/json, text/json

Sample:
{
  "PurchaseId": 1.1,
  "PurchaseDate": "2026-03-07T17:10:04.4234718+00:00",
  "InvoiceDate": "2026-03-07T17:10:04.4234718+00:00",
  "ClientName": "sample string 4",
  "ClientLinkCode": "sample string 5",
  "WorkshopName": "sample string 6",
  "InvoiceNumber": "sample string 7",
  "SupplierPersonName": "sample string 8",
  "SupplierPersonMobileNo": "sample string 9",
  "StatusName": "sample string 10",
  "LedgerPurchaseData": [
    {
      "LedgerId": 1.1,
      "PurchaseId": 2.1,
      "LedgerDate": "2026-03-07T17:10:04.4234718+00:00",
      "InvoiceNumber": "sample string 4",
      "LinkCode": "sample string 5",
      "ClientName": "sample string 6",
      "WorkshopName": "sample string 7",
      "SparePartsCategoryName": "sample string 8",
      "SparePartsSubCategoryName": "sample string 9",
      "SparePartsName": "sample string 10",
      "ItemName": "sample string 11",
      "ItemCode": "sample string 12",
      "TransactionTypeName": "sample string 13",
      "SupplierPersonName": "sample string 14",
      "SupplierMobileNo1": "sample string 15",
      "SupplierMobileNo2": "sample string 16",
      "SupplierAddress": "sample string 17",
      "Qty": 18.1,
      "PurchasePricePerUnit": 19.1,
      "SalesPricePerUnit": 20.1,
      "GSTRate": 21.1,
      "StatusName": "sample string 22",
      "Remarks": "sample string 23"
    },
    {
      "LedgerId": 1.1,
      "PurchaseId": 2.1,
      "LedgerDate": "2026-03-07T17:10:04.4234718+00:00",
      "InvoiceNumber": "sample string 4",
      "LinkCode": "sample string 5",
      "ClientName": "sample string 6",
      "WorkshopName": "sample string 7",
      "SparePartsCategoryName": "sample string 8",
      "SparePartsSubCategoryName": "sample string 9",
      "SparePartsName": "sample string 10",
      "ItemName": "sample string 11",
      "ItemCode": "sample string 12",
      "TransactionTypeName": "sample string 13",
      "SupplierPersonName": "sample string 14",
      "SupplierMobileNo1": "sample string 15",
      "SupplierMobileNo2": "sample string 16",
      "SupplierAddress": "sample string 17",
      "Qty": 18.1,
      "PurchasePricePerUnit": 19.1,
      "SalesPricePerUnit": 20.1,
      "GSTRate": 21.1,
      "StatusName": "sample string 22",
      "Remarks": "sample string 23"
    }
  ]
}

application/xml, text/xml

Sample:
<PurchaseMaster xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/GMSClass.ClientData.Plain">
  <ClientLinkCode>sample string 5</ClientLinkCode>
  <ClientName>sample string 4</ClientName>
  <InvoiceDate>2026-03-07T17:10:04.4234718+00:00</InvoiceDate>
  <InvoiceNumber>sample string 7</InvoiceNumber>
  <LedgerPurchaseData>
    <LedgerPurchase>
      <ClientName>sample string 6</ClientName>
      <GSTRate>21.1</GSTRate>
      <InvoiceNumber>sample string 4</InvoiceNumber>
      <ItemCode>sample string 12</ItemCode>
      <ItemName>sample string 11</ItemName>
      <LedgerDate>2026-03-07T17:10:04.4234718+00:00</LedgerDate>
      <LedgerId>1.1</LedgerId>
      <LinkCode>sample string 5</LinkCode>
      <PurchaseId>2.1</PurchaseId>
      <PurchasePricePerUnit>19.1</PurchasePricePerUnit>
      <Qty>18.1</Qty>
      <Remarks>sample string 23</Remarks>
      <SalesPricePerUnit>20.1</SalesPricePerUnit>
      <SparePartsCategoryName>sample string 8</SparePartsCategoryName>
      <SparePartsName>sample string 10</SparePartsName>
      <SparePartsSubCategoryName>sample string 9</SparePartsSubCategoryName>
      <StatusName>sample string 22</StatusName>
      <SupplierAddress>sample string 17</SupplierAddress>
      <SupplierMobileNo1>sample string 15</SupplierMobileNo1>
      <SupplierMobileNo2>sample string 16</SupplierMobileNo2>
      <SupplierPersonName>sample string 14</SupplierPersonName>
      <TransactionTypeName>sample string 13</TransactionTypeName>
      <WorkshopName>sample string 7</WorkshopName>
    </LedgerPurchase>
    <LedgerPurchase>
      <ClientName>sample string 6</ClientName>
      <GSTRate>21.1</GSTRate>
      <InvoiceNumber>sample string 4</InvoiceNumber>
      <ItemCode>sample string 12</ItemCode>
      <ItemName>sample string 11</ItemName>
      <LedgerDate>2026-03-07T17:10:04.4234718+00:00</LedgerDate>
      <LedgerId>1.1</LedgerId>
      <LinkCode>sample string 5</LinkCode>
      <PurchaseId>2.1</PurchaseId>
      <PurchasePricePerUnit>19.1</PurchasePricePerUnit>
      <Qty>18.1</Qty>
      <Remarks>sample string 23</Remarks>
      <SalesPricePerUnit>20.1</SalesPricePerUnit>
      <SparePartsCategoryName>sample string 8</SparePartsCategoryName>
      <SparePartsName>sample string 10</SparePartsName>
      <SparePartsSubCategoryName>sample string 9</SparePartsSubCategoryName>
      <StatusName>sample string 22</StatusName>
      <SupplierAddress>sample string 17</SupplierAddress>
      <SupplierMobileNo1>sample string 15</SupplierMobileNo1>
      <SupplierMobileNo2>sample string 16</SupplierMobileNo2>
      <SupplierPersonName>sample string 14</SupplierPersonName>
      <TransactionTypeName>sample string 13</TransactionTypeName>
      <WorkshopName>sample string 7</WorkshopName>
    </LedgerPurchase>
  </LedgerPurchaseData>
  <PurchaseDate>2026-03-07T17:10:04.4234718+00:00</PurchaseDate>
  <PurchaseId>1.1</PurchaseId>
  <StatusName>sample string 10</StatusName>
  <SupplierPersonMobileNo>sample string 9</SupplierPersonMobileNo>
  <SupplierPersonName>sample string 8</SupplierPersonName>
  <WorkshopName>sample string 6</WorkshopName>
</PurchaseMaster>

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.