POST api/purchase/pr
Request Information
URI Parameters
None.
Body Parameters
m_purchase_requestion| Name | Description | Type | Additional information |
|---|---|---|---|
| buyer | string |
Required |
|
| dpm_id | integer |
Required |
|
| remark | string |
None. |
|
| pr_date | date |
Required |
|
| material | Collection of pr_meterial |
Required |
Request Formats
application/json, text/json
Sample:
{
"buyer": "sample string 1",
"dpm_id": 2,
"remark": "sample string 3",
"pr_date": "2026-04-07T18:04:19.1671444+07:00",
"material": [
{
"mat_id": 1,
"pr_amount": 2.0,
"pr_date": "2026-04-07T18:04:19.1671444+07:00",
"pr_remark": "sample string 3"
},
{
"mat_id": 1,
"pr_amount": 2.0,
"pr_date": "2026-04-07T18:04:19.1671444+07:00",
"pr_remark": "sample string 3"
}
]
}
application/xml, text/xml
Sample:
<m_purchase_requestion xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/MRP.Domain.Models.Purchase">
<buyer>sample string 1</buyer>
<dpm_id>2</dpm_id>
<material>
<pr_meterial>
<mat_id>1</mat_id>
<pr_amount>2</pr_amount>
<pr_date>2026-04-07T18:04:19.1671444+07:00</pr_date>
<pr_remark>sample string 3</pr_remark>
</pr_meterial>
<pr_meterial>
<mat_id>1</mat_id>
<pr_amount>2</pr_amount>
<pr_date>2026-04-07T18:04:19.1671444+07:00</pr_date>
<pr_remark>sample string 3</pr_remark>
</pr_meterial>
</material>
<pr_date>2026-04-07T18:04:19.1671444+07:00</pr_date>
<remark>sample string 3</remark>
</m_purchase_requestion>
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.