POST api/PurchaseHeader
Request Information
URI Parameters
None.
Body Parameters
PurchaseHeaderPojo| Name | Description | Type | Additional information |
|---|---|---|---|
| columnid | integer |
None. |
|
| po_number | integer |
None. |
|
| vendor_code | string |
None. |
|
| pay_terms | string |
None. |
|
| po_date | string |
None. |
|
| po_amount | decimal number |
None. |
|
| gst_amount | decimal number |
None. |
|
| po_total | decimal number |
None. |
|
| contact_person | string |
None. |
|
| conact_number | string |
None. |
|
| transporter_code | string |
None. |
|
| status | string |
None. |
|
| update | string |
None. |
|
| reference | string |
None. |
|
| customer_order_no | string |
None. |
|
| motor_vehicle_no | string |
None. |
|
| bill_of_landing | string |
None. |
Request Formats
application/json, text/json
Sample:
{
"columnid": 1,
"po_number": 2,
"vendor_code": "sample string 3",
"pay_terms": "sample string 4",
"po_date": "sample string 5",
"po_amount": 6.1,
"gst_amount": 7.1,
"po_total": 8.1,
"contact_person": "sample string 9",
"conact_number": "sample string 10",
"transporter_code": "sample string 11",
"status": "sample string 12",
"update": "sample string 13",
"reference": "sample string 14",
"customer_order_no": "sample string 15",
"motor_vehicle_no": "sample string 16",
"bill_of_landing": "sample string 17"
}
text/html
Sample:
{"columnid":1,"po_number":2,"vendor_code":"sample string 3","pay_terms":"sample string 4","po_date":"sample string 5","po_amount":6.1,"gst_amount":7.1,"po_total":8.1,"contact_person":"sample string 9","conact_number":"sample string 10","transporter_code":"sample string 11","status":"sample string 12","update":"sample string 13","reference":"sample string 14","customer_order_no":"sample string 15","motor_vehicle_no":"sample string 16","bill_of_landing":"sample string 17"}
application/xml, text/xml
Sample:
<PurchaseHeaderPojo xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/DYCMProg.Models.PurchaseHeader"> <bill_of_landing>sample string 17</bill_of_landing> <columnid>1</columnid> <conact_number>sample string 10</conact_number> <contact_person>sample string 9</contact_person> <customer_order_no>sample string 15</customer_order_no> <gst_amount>7.1</gst_amount> <motor_vehicle_no>sample string 16</motor_vehicle_no> <pay_terms>sample string 4</pay_terms> <po_amount>6.1</po_amount> <po_date>sample string 5</po_date> <po_number>2</po_number> <po_total>8.1</po_total> <reference>sample string 14</reference> <status>sample string 12</status> <transporter_code>sample string 11</transporter_code> <update>sample string 13</update> <vendor_code>sample string 3</vendor_code> </PurchaseHeaderPojo>
application/x-www-form-urlencoded
Sample:
Sample not available.
Response Information
Resource Description
HttpResponseMessage| Name | Description | Type | Additional information |
|---|---|---|---|
| Version | Version |
None. |
|
| Content | HttpContent |
None. |
|
| StatusCode | HttpStatusCode |
None. |
|
| ReasonPhrase | string |
None. |
|
| Headers | Collection of Object |
None. |
|
| RequestMessage | HttpRequestMessage |
None. |
|
| IsSuccessStatusCode | boolean |
None. |