POST api/Values/PURCHASEREQUISIONSAVE

Request Information

URI Parameters

None.

Body Parameters

PRHEADER
NameDescriptionTypeAdditional information
COMPCODE

string

None.

FY

string

None.

SERIES

string

None.

PRDATE

string

None.

DEPARTMENT

integer

None.

REQDATE

string

None.

TOTQTY

decimal number

None.

TOTAMT

decimal number

None.

PRDETAILS

Collection of PRDETAILS

None.

Request Formats

application/json, text/json

Sample:
{
  "COMPCODE": "sample string 1",
  "FY": "sample string 2",
  "SERIES": "sample string 3",
  "PRDATE": "sample string 4",
  "DEPARTMENT": 5,
  "REQDATE": "sample string 6",
  "TOTQTY": 7.1,
  "TOTAMT": 8.1,
  "PRDETAILS": [
    {
      "ITEMCODE": 1,
      "UOM": "sample string 2",
      "QTY": 3.1,
      "PRIZE": 4.1,
      "VALUE": 5.1
    },
    {
      "ITEMCODE": 1,
      "UOM": "sample string 2",
      "QTY": 3.1,
      "PRIZE": 4.1,
      "VALUE": 5.1
    }
  ]
}

text/html

Sample:
{"COMPCODE":"sample string 1","FY":"sample string 2","SERIES":"sample string 3","PRDATE":"sample string 4","DEPARTMENT":5,"REQDATE":"sample string 6","TOTQTY":7.1,"TOTAMT":8.1,"PRDETAILS":[{"ITEMCODE":1,"UOM":"sample string 2","QTY":3.1,"PRIZE":4.1,"VALUE":5.1},{"ITEMCODE":1,"UOM":"sample string 2","QTY":3.1,"PRIZE":4.1,"VALUE":5.1}]}

application/xml, text/xml

Sample:
<PRHEADER xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/ExcellentErp.Models">
  <COMPCODE>sample string 1</COMPCODE>
  <DEPARTMENT>5</DEPARTMENT>
  <FY>sample string 2</FY>
  <PRDATE>sample string 4</PRDATE>
  <PRDETAILS>
    <PRDETAILS>
      <ITEMCODE>1</ITEMCODE>
      <PRIZE>4.1</PRIZE>
      <QTY>3.1</QTY>
      <UOM>sample string 2</UOM>
      <VALUE>5.1</VALUE>
    </PRDETAILS>
    <PRDETAILS>
      <ITEMCODE>1</ITEMCODE>
      <PRIZE>4.1</PRIZE>
      <QTY>3.1</QTY>
      <UOM>sample string 2</UOM>
      <VALUE>5.1</VALUE>
    </PRDETAILS>
  </PRDETAILS>
  <REQDATE>sample string 6</REQDATE>
  <SERIES>sample string 3</SERIES>
  <TOTAMT>8.1</TOTAMT>
  <TOTQTY>7.1</TOTQTY>
</PRHEADER>

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

Resource Description

Object

None.

Response Formats

application/json, text/json, text/html

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/" />