POST Inventory/create_rn

Request Information

URI Parameters

None.

Body Parameters

Payload
NameDescriptionTypeAdditional information
po_no

integer

None.

type

string

None.

freight_charge

decimal number

None.

prepared_by

string

None.

date

string

None.

items

Collection of GrnExportItem

None.

Request Formats

application/json, text/json

Sample:
{
  "po_no": 1,
  "type": "sample string 2",
  "freight_charge": 1.0,
  "prepared_by": "sample string 3",
  "date": "sample string 4",
  "items": [
    {
      "purchase_order_itemid": 1,
      "received_qty": 2,
      "invoice_no": "sample string 3"
    },
    {
      "purchase_order_itemid": 1,
      "received_qty": 2,
      "invoice_no": "sample string 3"
    }
  ]
}

application/xml, text/xml

Sample:
<Payload xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/AstroVed.Api.DAL.Inventory">
  <date>sample string 4</date>
  <freight_charge>1</freight_charge>
  <items>
    <GrnExportItem>
      <invoice_no>sample string 3</invoice_no>
      <purchase_order_itemid>1</purchase_order_itemid>
      <received_qty>2</received_qty>
    </GrnExportItem>
    <GrnExportItem>
      <invoice_no>sample string 3</invoice_no>
      <purchase_order_itemid>1</purchase_order_itemid>
      <received_qty>2</received_qty>
    </GrnExportItem>
  </items>
  <po_no>1</po_no>
  <prepared_by>sample string 3</prepared_by>
  <type>sample string 2</type>
</Payload>

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

Response Information

Resource Description

Object

None.

Response Formats

application/json, text/json

Sample:
{}

application/xml, text/xml

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