POST api/eeb/po
Request Information
URI Parameters
None.
Body Parameters
PurchaseHeaderCreateDTO| Name | Description | Type | Additional 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. |
|
| poremarks | string |
None. |
|
| payterms | string |
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 PurchaseDetailCreateDTO |
None. |
|
| EmailNotif | boolean |
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:29:39.8850418+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",
"poremarks": "sample string 10",
"payterms": "sample string 11",
"discount": 12.0,
"poamount": 13.0,
"vat": "sample string 14",
"currency": "sample string 15",
"exchange": 16.0,
"pototalamount": 17.0,
"pototalpesoamount": 1.0,
"details": [
{
"prid": 1,
"prnumber": "sample string 2",
"costaccountid": 3,
"costdesc": "sample string 4",
"costaccount": "sample string 5",
"item": "sample string 6",
"unitprice": 1.0,
"quantity": 1.0,
"totalprice": 1.0,
"itemspecs": "sample string 7",
"unitid": 1,
"unit": "sample string 8",
"sourceid": 1,
"source": "sample string 9",
"brand": "sample string 10"
},
{
"prid": 1,
"prnumber": "sample string 2",
"costaccountid": 3,
"costdesc": "sample string 4",
"costaccount": "sample string 5",
"item": "sample string 6",
"unitprice": 1.0,
"quantity": 1.0,
"totalprice": 1.0,
"itemspecs": "sample string 7",
"unitid": 1,
"unit": "sample string 8",
"sourceid": 1,
"source": "sample string 9",
"brand": "sample string 10"
}
],
"EmailNotif": true
}
application/xml, text/xml
Sample:
<PurchaseHeaderCreateDTO xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/EEB_API.Models.DTO">
<EmailNotif>true</EmailNotif>
<approvedby>1</approvedby>
<contactperson>sample string 3</contactperson>
<currency>sample string 15</currency>
<deliveryinstruction>sample string 8</deliveryinstruction>
<details>
<PurchaseDetailCreateDTO>
<brand>sample string 10</brand>
<costaccount>sample string 5</costaccount>
<costaccountid>3</costaccountid>
<costdesc>sample string 4</costdesc>
<item>sample string 6</item>
<itemspecs>sample string 7</itemspecs>
<prid>1</prid>
<prnumber>sample string 2</prnumber>
<quantity>1</quantity>
<source>sample string 9</source>
<sourceid>1</sourceid>
<totalprice>1</totalprice>
<unit>sample string 8</unit>
<unitid>1</unitid>
<unitprice>1</unitprice>
</PurchaseDetailCreateDTO>
<PurchaseDetailCreateDTO>
<brand>sample string 10</brand>
<costaccount>sample string 5</costaccount>
<costaccountid>3</costaccountid>
<costdesc>sample string 4</costdesc>
<item>sample string 6</item>
<itemspecs>sample string 7</itemspecs>
<prid>1</prid>
<prnumber>sample string 2</prnumber>
<quantity>1</quantity>
<source>sample string 9</source>
<sourceid>1</sourceid>
<totalprice>1</totalprice>
<unit>sample string 8</unit>
<unitid>1</unitid>
<unitprice>1</unitprice>
</PurchaseDetailCreateDTO>
</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>
<payterms>sample string 11</payterms>
<poamount>13</poamount>
<poremarks>sample string 10</poremarks>
<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:29:39.8850418+08:00</trandate>
<vat>sample string 14</vat>
</PurchaseHeaderCreateDTO>
application/x-www-form-urlencoded
Sample:
Sample not available.
Response Information
Resource Description
IHttpActionResultNone.
Response Formats
application/json, text/json, application/xml, text/xml
Sample:
Sample not available.