POST api/PurchaseOrder/CreateOrders

Request Information

URI Parameters

None.

Body Parameters

Collection of PurchaseOrderModel
NameDescriptionTypeAdditional information
purchaseOrderId

integer

None.

purchaseOrderNo

string

None.

purchaseOrderDate

date

None.

createdBy

integer

None.

creationDate

date

None.

lastUpdatedOn

date

None.

mobile

string

None.

shippingAddress

string

None.

shippingType

string

None.

status

string

None.

taxableAmount

decimal number

None.

discountAmount

decimal number

None.

taxAmount

decimal number

None.

totalAmount

decimal number

None.

paymentMode

string

None.

deliveryPerson

string

None.

deliveryPersonPhone

string

None.

PurchaseOD

Collection of PurchaseOrderDetailsModel

None.

suggestion

string

None.

masterCustomerId

integer

None.

masterCustomerName

string

None.

Request Formats

application/json, text/json

Sample:
[
  {
    "purchaseOrderId": 1,
    "purchaseOrderNo": "sample string 2",
    "purchaseOrderDate": "2026-05-20T11:45:13.8702705+05:30",
    "createdBy": 1,
    "creationDate": "2026-05-20T11:45:13.8712186+05:30",
    "lastUpdatedOn": "2026-05-20T11:45:13.8712186+05:30",
    "mobile": "sample string 3",
    "shippingAddress": "sample string 4",
    "shippingType": "sample string 5",
    "status": "sample string 6",
    "taxableAmount": 1.1,
    "discountAmount": 1.1,
    "taxAmount": 1.1,
    "totalAmount": 1.1,
    "paymentMode": "sample string 7",
    "deliveryPerson": "sample string 8",
    "deliveryPersonPhone": "sample string 9",
    "PurchaseOD": [
      {
        "purchaseOrderDetailsId": 1,
        "purchaseOrderId": 1,
        "masterItemId": 1,
        "salePrice": 1.1,
        "quantity": 1.1,
        "taxRate": 1.1,
        "taxAmount": 1.1,
        "discountRate": 1.1,
        "discountAmount": 1.1,
        "productTotal": 1.1,
        "taxableAmount": 1.1,
        "packageQuantity": 1.1,
        "orderedQuantity": 1,
        "displayName": "sample string 2",
        "itemName": "sample string 3",
        "imagesPath": "sample string 4"
      },
      {
        "purchaseOrderDetailsId": 1,
        "purchaseOrderId": 1,
        "masterItemId": 1,
        "salePrice": 1.1,
        "quantity": 1.1,
        "taxRate": 1.1,
        "taxAmount": 1.1,
        "discountRate": 1.1,
        "discountAmount": 1.1,
        "productTotal": 1.1,
        "taxableAmount": 1.1,
        "packageQuantity": 1.1,
        "orderedQuantity": 1,
        "displayName": "sample string 2",
        "itemName": "sample string 3",
        "imagesPath": "sample string 4"
      }
    ],
    "suggestion": "sample string 10",
    "masterCustomerId": 1,
    "masterCustomerName": "sample string 11"
  },
  {
    "purchaseOrderId": 1,
    "purchaseOrderNo": "sample string 2",
    "purchaseOrderDate": "2026-05-20T11:45:13.8702705+05:30",
    "createdBy": 1,
    "creationDate": "2026-05-20T11:45:13.8712186+05:30",
    "lastUpdatedOn": "2026-05-20T11:45:13.8712186+05:30",
    "mobile": "sample string 3",
    "shippingAddress": "sample string 4",
    "shippingType": "sample string 5",
    "status": "sample string 6",
    "taxableAmount": 1.1,
    "discountAmount": 1.1,
    "taxAmount": 1.1,
    "totalAmount": 1.1,
    "paymentMode": "sample string 7",
    "deliveryPerson": "sample string 8",
    "deliveryPersonPhone": "sample string 9",
    "PurchaseOD": [
      {
        "purchaseOrderDetailsId": 1,
        "purchaseOrderId": 1,
        "masterItemId": 1,
        "salePrice": 1.1,
        "quantity": 1.1,
        "taxRate": 1.1,
        "taxAmount": 1.1,
        "discountRate": 1.1,
        "discountAmount": 1.1,
        "productTotal": 1.1,
        "taxableAmount": 1.1,
        "packageQuantity": 1.1,
        "orderedQuantity": 1,
        "displayName": "sample string 2",
        "itemName": "sample string 3",
        "imagesPath": "sample string 4"
      },
      {
        "purchaseOrderDetailsId": 1,
        "purchaseOrderId": 1,
        "masterItemId": 1,
        "salePrice": 1.1,
        "quantity": 1.1,
        "taxRate": 1.1,
        "taxAmount": 1.1,
        "discountRate": 1.1,
        "discountAmount": 1.1,
        "productTotal": 1.1,
        "taxableAmount": 1.1,
        "packageQuantity": 1.1,
        "orderedQuantity": 1,
        "displayName": "sample string 2",
        "itemName": "sample string 3",
        "imagesPath": "sample string 4"
      }
    ],
    "suggestion": "sample string 10",
    "masterCustomerId": 1,
    "masterCustomerName": "sample string 11"
  }
]

application/xml, text/xml

Sample:
<ArrayOfPurchaseOrderModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/SGWebApi.Models">
  <PurchaseOrderModel>
    <PurchaseOD>
      <PurchaseOrderDetailsModel>
        <discountAmount>1.1</discountAmount>
        <discountRate>1.1</discountRate>
        <displayName>sample string 2</displayName>
        <imagesPath>sample string 4</imagesPath>
        <itemName>sample string 3</itemName>
        <masterItemId>1</masterItemId>
        <orderedQuantity>1</orderedQuantity>
        <packageQuantity>1.1</packageQuantity>
        <productTotal>1.1</productTotal>
        <purchaseOrderDetailsId>1</purchaseOrderDetailsId>
        <purchaseOrderId>1</purchaseOrderId>
        <quantity>1.1</quantity>
        <salePrice>1.1</salePrice>
        <taxAmount>1.1</taxAmount>
        <taxRate>1.1</taxRate>
        <taxableAmount>1.1</taxableAmount>
      </PurchaseOrderDetailsModel>
      <PurchaseOrderDetailsModel>
        <discountAmount>1.1</discountAmount>
        <discountRate>1.1</discountRate>
        <displayName>sample string 2</displayName>
        <imagesPath>sample string 4</imagesPath>
        <itemName>sample string 3</itemName>
        <masterItemId>1</masterItemId>
        <orderedQuantity>1</orderedQuantity>
        <packageQuantity>1.1</packageQuantity>
        <productTotal>1.1</productTotal>
        <purchaseOrderDetailsId>1</purchaseOrderDetailsId>
        <purchaseOrderId>1</purchaseOrderId>
        <quantity>1.1</quantity>
        <salePrice>1.1</salePrice>
        <taxAmount>1.1</taxAmount>
        <taxRate>1.1</taxRate>
        <taxableAmount>1.1</taxableAmount>
      </PurchaseOrderDetailsModel>
    </PurchaseOD>
    <createdBy>1</createdBy>
    <creationDate>2026-05-20T11:45:13.8712186+05:30</creationDate>
    <deliveryPerson>sample string 8</deliveryPerson>
    <deliveryPersonPhone>sample string 9</deliveryPersonPhone>
    <discountAmount>1.1</discountAmount>
    <lastUpdatedOn>2026-05-20T11:45:13.8712186+05:30</lastUpdatedOn>
    <masterCustomerId>1</masterCustomerId>
    <masterCustomerName>sample string 11</masterCustomerName>
    <mobile>sample string 3</mobile>
    <paymentMode>sample string 7</paymentMode>
    <purchaseOrderDate>2026-05-20T11:45:13.8702705+05:30</purchaseOrderDate>
    <purchaseOrderId>1</purchaseOrderId>
    <purchaseOrderNo>sample string 2</purchaseOrderNo>
    <shippingAddress>sample string 4</shippingAddress>
    <shippingType>sample string 5</shippingType>
    <status>sample string 6</status>
    <suggestion>sample string 10</suggestion>
    <taxAmount>1.1</taxAmount>
    <taxableAmount>1.1</taxableAmount>
    <totalAmount>1.1</totalAmount>
  </PurchaseOrderModel>
  <PurchaseOrderModel>
    <PurchaseOD>
      <PurchaseOrderDetailsModel>
        <discountAmount>1.1</discountAmount>
        <discountRate>1.1</discountRate>
        <displayName>sample string 2</displayName>
        <imagesPath>sample string 4</imagesPath>
        <itemName>sample string 3</itemName>
        <masterItemId>1</masterItemId>
        <orderedQuantity>1</orderedQuantity>
        <packageQuantity>1.1</packageQuantity>
        <productTotal>1.1</productTotal>
        <purchaseOrderDetailsId>1</purchaseOrderDetailsId>
        <purchaseOrderId>1</purchaseOrderId>
        <quantity>1.1</quantity>
        <salePrice>1.1</salePrice>
        <taxAmount>1.1</taxAmount>
        <taxRate>1.1</taxRate>
        <taxableAmount>1.1</taxableAmount>
      </PurchaseOrderDetailsModel>
      <PurchaseOrderDetailsModel>
        <discountAmount>1.1</discountAmount>
        <discountRate>1.1</discountRate>
        <displayName>sample string 2</displayName>
        <imagesPath>sample string 4</imagesPath>
        <itemName>sample string 3</itemName>
        <masterItemId>1</masterItemId>
        <orderedQuantity>1</orderedQuantity>
        <packageQuantity>1.1</packageQuantity>
        <productTotal>1.1</productTotal>
        <purchaseOrderDetailsId>1</purchaseOrderDetailsId>
        <purchaseOrderId>1</purchaseOrderId>
        <quantity>1.1</quantity>
        <salePrice>1.1</salePrice>
        <taxAmount>1.1</taxAmount>
        <taxRate>1.1</taxRate>
        <taxableAmount>1.1</taxableAmount>
      </PurchaseOrderDetailsModel>
    </PurchaseOD>
    <createdBy>1</createdBy>
    <creationDate>2026-05-20T11:45:13.8712186+05:30</creationDate>
    <deliveryPerson>sample string 8</deliveryPerson>
    <deliveryPersonPhone>sample string 9</deliveryPersonPhone>
    <discountAmount>1.1</discountAmount>
    <lastUpdatedOn>2026-05-20T11:45:13.8712186+05:30</lastUpdatedOn>
    <masterCustomerId>1</masterCustomerId>
    <masterCustomerName>sample string 11</masterCustomerName>
    <mobile>sample string 3</mobile>
    <paymentMode>sample string 7</paymentMode>
    <purchaseOrderDate>2026-05-20T11:45:13.8702705+05:30</purchaseOrderDate>
    <purchaseOrderId>1</purchaseOrderId>
    <purchaseOrderNo>sample string 2</purchaseOrderNo>
    <shippingAddress>sample string 4</shippingAddress>
    <shippingType>sample string 5</shippingType>
    <status>sample string 6</status>
    <suggestion>sample string 10</suggestion>
    <taxAmount>1.1</taxAmount>
    <taxableAmount>1.1</taxableAmount>
    <totalAmount>1.1</totalAmount>
  </PurchaseOrderModel>
</ArrayOfPurchaseOrderModel>

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

Resource Description

IHttpActionResult

None.

Response Formats

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

Sample:

Sample not available.