POST api/purchase/po/nopr
Request Information
URI Parameters
None.
Body Parameters
m_purchase_order_insert_no_PR| Name | Description | Type | Additional information |
|---|---|---|---|
| buyer | string |
Required |
|
| dpm_id | integer |
Required |
|
| ref_no | string |
None. |
|
| 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_NOPR_Material |
Required |
|
| delivery_term | string |
None. |
|
| checkAddress | boolean |
None. |
|
| currency | string |
None. |
|
| language | string |
None. |
|
| exchangeRate | date |
None. |
|
| vatTypeName | string |
None. |
|
| checkImage | boolean |
None. |
Request Formats
application/json, text/json
Sample:
{
"buyer": "sample string 1",
"dpm_id": 2,
"ref_no": "sample string 3",
"address_id": 4,
"pay_id": 5,
"location_id": 6,
"remark": "sample string 7",
"load_date": "2026-04-07T18:10:08.267964+07:00",
"discount_type": "sample string 9",
"discount_amount": 10.1,
"list_PR_Material": [
{
"sup_pro_id": 1,
"po_amount": 2.0,
"checkImage": true,
"mat_date": "sample string 4",
"note_remark": "sample string 5"
},
{
"sup_pro_id": 1,
"po_amount": 2.0,
"checkImage": true,
"mat_date": "sample string 4",
"note_remark": "sample string 5"
}
],
"delivery_term": "sample string 11",
"checkAddress": true,
"currency": "sample string 13",
"language": "sample string 14",
"exchangeRate": "2026-04-07T18:10:08.267964+07:00",
"vatTypeName": "sample string 15",
"checkImage": true
}
application/xml, text/xml
Sample:
<m_purchase_order_insert_no_PR xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/MRP.Domain.Models.Purchase">
<address_id>4</address_id>
<buyer>sample string 1</buyer>
<checkAddress>true</checkAddress>
<checkImage>true</checkImage>
<currency>sample string 13</currency>
<delivery_term>sample string 11</delivery_term>
<discount_amount>10.1</discount_amount>
<discount_type>sample string 9</discount_type>
<dpm_id>2</dpm_id>
<exchangeRate>2026-04-07T18:10:08.267964+07:00</exchangeRate>
<language>sample string 14</language>
<list_PR_Material>
<m_NOPR_Material>
<checkImage>true</checkImage>
<mat_date>sample string 4</mat_date>
<note_remark>sample string 5</note_remark>
<po_amount>2</po_amount>
<sup_pro_id>1</sup_pro_id>
</m_NOPR_Material>
<m_NOPR_Material>
<checkImage>true</checkImage>
<mat_date>sample string 4</mat_date>
<note_remark>sample string 5</note_remark>
<po_amount>2</po_amount>
<sup_pro_id>1</sup_pro_id>
</m_NOPR_Material>
</list_PR_Material>
<load_date>2026-04-07T18:10:08.267964+07:00</load_date>
<location_id>6</location_id>
<pay_id>5</pay_id>
<ref_no>sample string 3</ref_no>
<remark>sample string 7</remark>
<vatTypeName>sample string 15</vatTypeName>
</m_purchase_order_insert_no_PR>
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.