PUT api/eeb/po/{id}

Request Information

URI Parameters

NameDescriptionTypeAdditional information
id

integer

Required

Body Parameters

PurchaseHeaderUpdateDTO
NameDescriptionTypeAdditional information
supplierid

integer

None.

telephoneno

string

None.

faxno

string

None.

contactperson

string

None.

trandate

date

None.

approvedby

integer

None.

recapproved

integer

None.

requestedby

integer

None.

supervisingpe

integer

None.

jobid

integer

None.

projectname

string

None.

jobno

string

None.

deliveryinstruction

string

None.

otherinstruction

string

None.

postatusid

integer

None.

delstatusid

integer

None.

poremarks

string

None.

payterms

string

None.

paystatusid

integer

None.

discount

decimal number

None.

poamount

decimal number

None.

vat

string

None.

currency

string

None.

exchange

decimal number

None.

pototalamount

decimal number

None.

pototalpesoamount

decimal number

None.

details

Collection of PurchaseDetailUpdateDTO

None.

Request Formats

application/json, text/json

Sample:
{
  "supplierid": 1,
  "telephoneno": "sample string 1",
  "faxno": "sample string 2",
  "contactperson": "sample string 3",
  "trandate": "2025-12-11T02:28:58.4005136+08:00",
  "approvedby": 1,
  "recapproved": 1,
  "requestedby": 1,
  "supervisingpe": 1,
  "jobid": 5,
  "projectname": "sample string 6",
  "jobno": "sample string 7",
  "deliveryinstruction": "sample string 8",
  "otherinstruction": "sample string 9",
  "postatusid": 1,
  "delstatusid": 1,
  "poremarks": "sample string 10",
  "payterms": "sample string 11",
  "paystatusid": 1,
  "discount": 12.0,
  "poamount": 13.0,
  "vat": "sample string 14",
  "currency": "sample string 15",
  "exchange": 16.0,
  "pototalamount": 17.0,
  "pototalpesoamount": 1.0,
  "details": [
    {
      "id": 1,
      "prid": 2,
      "prnumber": "sample string 3",
      "costaccountid": 4,
      "costdesc": "sample string 5",
      "costaccount": "sample string 6",
      "item": "sample string 7",
      "unitprice": 1.0,
      "quantity": 1.0,
      "totalprice": 1.0,
      "itemspecs": "sample string 8",
      "unitid": 1,
      "unit": "sample string 9",
      "sourceid": 1,
      "source": "sample string 10",
      "brand": "sample string 11"
    },
    {
      "id": 1,
      "prid": 2,
      "prnumber": "sample string 3",
      "costaccountid": 4,
      "costdesc": "sample string 5",
      "costaccount": "sample string 6",
      "item": "sample string 7",
      "unitprice": 1.0,
      "quantity": 1.0,
      "totalprice": 1.0,
      "itemspecs": "sample string 8",
      "unitid": 1,
      "unit": "sample string 9",
      "sourceid": 1,
      "source": "sample string 10",
      "brand": "sample string 11"
    }
  ]
}

application/xml, text/xml

Sample:
<PurchaseHeaderUpdateDTO xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/EEB_API.Models.DTO">
  <approvedby>1</approvedby>
  <contactperson>sample string 3</contactperson>
  <currency>sample string 15</currency>
  <deliveryinstruction>sample string 8</deliveryinstruction>
  <delstatusid>1</delstatusid>
  <details>
    <PurchaseDetailUpdateDTO>
      <brand>sample string 11</brand>
      <costaccount>sample string 6</costaccount>
      <costaccountid>4</costaccountid>
      <costdesc>sample string 5</costdesc>
      <id>1</id>
      <item>sample string 7</item>
      <itemspecs>sample string 8</itemspecs>
      <prid>2</prid>
      <prnumber>sample string 3</prnumber>
      <quantity>1</quantity>
      <source>sample string 10</source>
      <sourceid>1</sourceid>
      <totalprice>1</totalprice>
      <unit>sample string 9</unit>
      <unitid>1</unitid>
      <unitprice>1</unitprice>
    </PurchaseDetailUpdateDTO>
    <PurchaseDetailUpdateDTO>
      <brand>sample string 11</brand>
      <costaccount>sample string 6</costaccount>
      <costaccountid>4</costaccountid>
      <costdesc>sample string 5</costdesc>
      <id>1</id>
      <item>sample string 7</item>
      <itemspecs>sample string 8</itemspecs>
      <prid>2</prid>
      <prnumber>sample string 3</prnumber>
      <quantity>1</quantity>
      <source>sample string 10</source>
      <sourceid>1</sourceid>
      <totalprice>1</totalprice>
      <unit>sample string 9</unit>
      <unitid>1</unitid>
      <unitprice>1</unitprice>
    </PurchaseDetailUpdateDTO>
  </details>
  <discount>12</discount>
  <exchange>16</exchange>
  <faxno>sample string 2</faxno>
  <jobid>5</jobid>
  <jobno>sample string 7</jobno>
  <otherinstruction>sample string 9</otherinstruction>
  <paystatusid>1</paystatusid>
  <payterms>sample string 11</payterms>
  <poamount>13</poamount>
  <poremarks>sample string 10</poremarks>
  <postatusid>1</postatusid>
  <pototalamount>17</pototalamount>
  <pototalpesoamount>1</pototalpesoamount>
  <projectname>sample string 6</projectname>
  <recapproved>1</recapproved>
  <requestedby>1</requestedby>
  <supervisingpe>1</supervisingpe>
  <supplierid>1</supplierid>
  <telephoneno>sample string 1</telephoneno>
  <trandate>2025-12-11T02:28:58.4005136+08:00</trandate>
  <vat>sample string 14</vat>
</PurchaseHeaderUpdateDTO>

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.