PUT api/purchase/po/{po_no}

Request Information

URI Parameters

NameDescriptionTypeAdditional information
po_no

string

Required

Body Parameters

m_update_po
NameDescriptionTypeAdditional information
buyer

string

Required

dpm_id

integer

Required

address_id

integer

Required

ref_no

string

None.

pay_id

integer

Required

location_id

integer

Required

remark

string

None.

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_po_material

Required

delivery_term

string

None.

checkAddress

boolean

None.

currency

string

None.

language

string

None.

exchangeRate

date

None.

vatTypeName

string

None.

load_date

date

None.

checkImage

boolean

None.

Request Formats

application/json, text/json

Sample:
{
  "buyer": "sample string 1",
  "dpm_id": 2,
  "address_id": 3,
  "ref_no": "sample string 4",
  "pay_id": 5,
  "location_id": 6,
  "remark": "sample string 7",
  "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:10:11.1742496+07:00",
  "vatTypeName": "sample string 14",
  "load_date": "2026-04-07T18:10:11.1742496+07:00",
  "checkImage": true
}

application/xml, text/xml

Sample:
<m_update_po 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>
  <checkImage>true</checkImage>
  <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:10:11.1742496+07:00</exchangeRate>
  <language>sample string 13</language>
  <list_PR_Material>
    <m_po_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_po_material>
    <m_po_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_po_material>
  </list_PR_Material>
  <load_date>2026-04-07T18:10:11.1742496+07:00</load_date>
  <location_id>6</location_id>
  <pay_id>5</pay_id>
  <ref_no>sample string 4</ref_no>
  <remark>sample string 7</remark>
  <vatTypeName>sample string 14</vatTypeName>
</m_update_po>

application/x-www-form-urlencoded

Sample:

Failed to generate the sample for media type 'application/x-www-form-urlencoded'. Cannot use formatter 'JQueryMvcFormUrlEncodedFormatter' to write type 'm_update_po'.

Response Information

Resource Description

IHttpActionResult

None.

Response Formats

application/json, text/json, application/xml, text/xml

Sample:

Sample not available.