POST api/purchase/po
Request Information
URI Parameters
None.
Body Parameters
m_purchase_order_insert| Name | Description | Type | Additional information |
|---|---|---|---|
| buyer | string |
Required |
|
| dpm_id | integer |
Required |
|
| address_id | integer |
Required |
|
| pay_id | integer |
Required |
|
| location_id | integer |
Required |
|
| remark | string |
None. |
|
| load_date | date |
Required |
|
| discount_type | string |
Required |
|
| discount_amount | decimal number |
Required Matching regular expression pattern: ^[+]?([0-9]+(?:[\.][0-9]*)?|\.[0-9]+)$ |
|
| list_PR_Material | Collection of m_PR_Material |
Required |
|
| delivery_term | string |
None. |
|
| checkAddress | boolean |
None. |
|
| currency | string |
None. |
|
| language | string |
None. |
|
| exchangeRate | date |
None. |
|
| vatTypeName | string |
None. |
Request Formats
application/json, text/json
Sample:
{
"buyer": "sample string 1",
"dpm_id": 2,
"address_id": 3,
"pay_id": 4,
"location_id": 5,
"remark": "sample string 6",
"load_date": "2026-04-07T18:04:46.4490462+07:00",
"discount_type": "sample string 8",
"discount_amount": 9.1,
"list_PR_Material": [
{
"pr_mat_id": 1,
"sup_pro_id": 2,
"po_amount": 3.0,
"checkImage": true,
"mat_date": "sample string 5",
"note_remark": "sample string 6"
},
{
"pr_mat_id": 1,
"sup_pro_id": 2,
"po_amount": 3.0,
"checkImage": true,
"mat_date": "sample string 5",
"note_remark": "sample string 6"
}
],
"delivery_term": "sample string 10",
"checkAddress": true,
"currency": "sample string 12",
"language": "sample string 13",
"exchangeRate": "2026-04-07T18:04:46.4490462+07:00",
"vatTypeName": "sample string 14"
}
application/xml, text/xml
Sample:
<m_purchase_order_insert xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/MRP.Domain.Models.Purchase">
<address_id>3</address_id>
<buyer>sample string 1</buyer>
<checkAddress>true</checkAddress>
<currency>sample string 12</currency>
<delivery_term>sample string 10</delivery_term>
<discount_amount>9.1</discount_amount>
<discount_type>sample string 8</discount_type>
<dpm_id>2</dpm_id>
<exchangeRate>2026-04-07T18:04:46.4490462+07:00</exchangeRate>
<language>sample string 13</language>
<list_PR_Material>
<m_PR_Material>
<checkImage>true</checkImage>
<mat_date>sample string 5</mat_date>
<note_remark>sample string 6</note_remark>
<po_amount>3</po_amount>
<pr_mat_id>1</pr_mat_id>
<sup_pro_id>2</sup_pro_id>
</m_PR_Material>
<m_PR_Material>
<checkImage>true</checkImage>
<mat_date>sample string 5</mat_date>
<note_remark>sample string 6</note_remark>
<po_amount>3</po_amount>
<pr_mat_id>1</pr_mat_id>
<sup_pro_id>2</sup_pro_id>
</m_PR_Material>
</list_PR_Material>
<load_date>2026-04-07T18:04:46.4490462+07:00</load_date>
<location_id>5</location_id>
<pay_id>4</pay_id>
<remark>sample string 6</remark>
<vatTypeName>sample string 14</vatTypeName>
</m_purchase_order_insert>
application/x-www-form-urlencoded
Sample:
Response Information
Resource Description
IHttpActionResultNone.
Response Formats
application/json, text/json, application/xml, text/xml
Sample:
Sample not available.