POST Api/Post_PurchaseQuotation
Request Information
URI Parameters
None.
Body Parameters
ESPL_MODEL_POST_PQ| Name | Description | Type | Additional information |
|---|---|---|---|
| DocEntry | integer |
None. |
|
| CardCode | string |
None. |
|
| PostingDate | string |
None. |
|
| DeliveryDate | string |
None. |
|
| RequiredDate | string |
None. |
|
| Branch | integer |
None. |
|
| Remarks | string |
None. |
|
| Warehouse | string |
None. |
|
| DeliveryTerms | string |
None. |
|
| Items | Collection of ESPL_MODEL_PQ_ITEMS |
None. |
|
| Attachments | Collection of ESPL_MODEL_SALESORDER_ATCHMNTN |
None. |
Request Formats
application/json, text/json
Sample:
{
"DocEntry": 1,
"CardCode": "sample string 2",
"PostingDate": "sample string 3",
"DeliveryDate": "sample string 4",
"RequiredDate": "sample string 5",
"Branch": 6,
"Remarks": "sample string 7",
"Warehouse": "sample string 8",
"DeliveryTerms": "sample string 9",
"Items": [
{
"ItemCode": "sample string 1",
"Quantity": 2.0,
"RequiredQty": 3.0,
"Price": 4.0,
"UOM": "sample string 5",
"QuotedDate": "sample string 6",
"RequiredDate": "sample string 7",
"ItemRemarks": "sample string 8"
},
{
"ItemCode": "sample string 1",
"Quantity": 2.0,
"RequiredQty": 3.0,
"Price": 4.0,
"UOM": "sample string 5",
"QuotedDate": "sample string 6",
"RequiredDate": "sample string 7",
"ItemRemarks": "sample string 8"
}
],
"Attachments": [
{
"AttachmentEntry": "sample string 1",
"LineId": "sample string 2",
"FileName": "sample string 3",
"Extension": "sample string 4",
"AttachmentData": "sample string 5",
"AttachmentRemarks": "sample string 6"
},
{
"AttachmentEntry": "sample string 1",
"LineId": "sample string 2",
"FileName": "sample string 3",
"Extension": "sample string 4",
"AttachmentData": "sample string 5",
"AttachmentRemarks": "sample string 6"
}
]
}
application/xml, text/xml
Sample:
<ESPL_MODEL_POST_PQ xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/ESPL_ERP_API">
<Attachments>
<ESPL_MODEL_SALESORDER_ATCHMNTN>
<AttachmentData>sample string 5</AttachmentData>
<AttachmentEntry>sample string 1</AttachmentEntry>
<AttachmentRemarks>sample string 6</AttachmentRemarks>
<Extension>sample string 4</Extension>
<FileName>sample string 3</FileName>
<LineId>sample string 2</LineId>
</ESPL_MODEL_SALESORDER_ATCHMNTN>
<ESPL_MODEL_SALESORDER_ATCHMNTN>
<AttachmentData>sample string 5</AttachmentData>
<AttachmentEntry>sample string 1</AttachmentEntry>
<AttachmentRemarks>sample string 6</AttachmentRemarks>
<Extension>sample string 4</Extension>
<FileName>sample string 3</FileName>
<LineId>sample string 2</LineId>
</ESPL_MODEL_SALESORDER_ATCHMNTN>
</Attachments>
<Branch>6</Branch>
<CardCode>sample string 2</CardCode>
<DeliveryDate>sample string 4</DeliveryDate>
<DeliveryTerms>sample string 9</DeliveryTerms>
<DocEntry>1</DocEntry>
<Items>
<ESPL_MODEL_PQ_ITEMS>
<ItemCode>sample string 1</ItemCode>
<ItemRemarks>sample string 8</ItemRemarks>
<Price>4</Price>
<Quantity>2</Quantity>
<QuotedDate>sample string 6</QuotedDate>
<RequiredDate>sample string 7</RequiredDate>
<RequiredQty>3</RequiredQty>
<UOM>sample string 5</UOM>
</ESPL_MODEL_PQ_ITEMS>
<ESPL_MODEL_PQ_ITEMS>
<ItemCode>sample string 1</ItemCode>
<ItemRemarks>sample string 8</ItemRemarks>
<Price>4</Price>
<Quantity>2</Quantity>
<QuotedDate>sample string 6</QuotedDate>
<RequiredDate>sample string 7</RequiredDate>
<RequiredQty>3</RequiredQty>
<UOM>sample string 5</UOM>
</ESPL_MODEL_PQ_ITEMS>
</Items>
<PostingDate>sample string 3</PostingDate>
<Remarks>sample string 7</Remarks>
<RequiredDate>sample string 5</RequiredDate>
<Warehouse>sample string 8</Warehouse>
</ESPL_MODEL_POST_PQ>
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. |