POST api/Accounting/TaxInvoice/CreateVatFromPurchaseOrder

Request Information

URI Parameters

None.

Body Parameters

m_CreateVAT
NameDescriptionTypeAdditional information
cust_id

integer

None.

ord_id

integer

None.

cmi_id

integer

None.

vatTypeName

string

None.

remark

string

String length: inclusive between 0 and 4000

create_from

string

None.

thb

decimal number

None.

date

date

None.

exchangeRate

decimal number

None.

Request Formats

application/json, text/json

Sample:
{
  "cust_id": 1,
  "ord_id": 1,
  "cmi_id": 1,
  "vatTypeName": "sample string 1",
  "remark": "sample string 2",
  "create_from": "sample string 3",
  "thb": 1.0,
  "date": "2026-04-07T18:10:35.9402135+07:00",
  "exchangeRate": 1.0
}

application/xml, text/xml

Sample:
<m_CreateVAT xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/MRP.Domain.Models.Accounting">
  <cmi_id>1</cmi_id>
  <create_from>sample string 3</create_from>
  <cust_id>1</cust_id>
  <date>2026-04-07T18:10:35.9402135+07:00</date>
  <exchangeRate>1</exchangeRate>
  <ord_id>1</ord_id>
  <remark>sample string 2</remark>
  <thb>1</thb>
  <vatTypeName>sample string 1</vatTypeName>
</m_CreateVAT>

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_CreateVAT'.

Response Information

Resource Description

IHttpActionResult

None.

Response Formats

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

Sample:

Sample not available.