POST Api/Post_SalesOrder

Request Information

URI Parameters

None.

Body Parameters

ESPL_MODEL_SALESORDER_HEADER
NameDescriptionTypeAdditional information
RefId

string

None.

DocumentDate

string

None.

DeliveryDate

string

None.

ReferenceNo

string

None.

CustomerReference

string

None.

Branch

string

None.

CardCode

string

None.

Currency

string

None.

DocumentSeries

integer

None.

ContactPerson

string

None.

TotalBeforeDiscount

string

None.

DiscountPercent

string

None.

DiscountAmount

string

None.

TaxAmount

string

None.

GrossAmount

string

None.

SalesExecutive

string

None.

CreditLimit

string

None.

ImportSelected

string

None.

TransporterSelected

string

None.

PaymentTerm

string

None.

BillToAddress

string

None.

ShipToAddress

string

None.

ShippingType

string

None.

Remarks

string

None.

Items

Collection of ESPL_MODEL_SALESORDER_ITEMS

None.

Attachments

Collection of ESPL_MODEL_SALESORDER_ATCHMNTN

None.

Request Formats

application/json, text/json

Sample:
{
  "RefId": "sample string 1",
  "DocumentDate": "sample string 2",
  "DeliveryDate": "sample string 3",
  "ReferenceNo": "sample string 4",
  "CustomerReference": "sample string 5",
  "Branch": "sample string 6",
  "CardCode": "sample string 7",
  "Currency": "sample string 8",
  "DocumentSeries": 9,
  "ContactPerson": "sample string 10",
  "TotalBeforeDiscount": "sample string 11",
  "DiscountPercent": "sample string 12",
  "DiscountAmount": "sample string 13",
  "TaxAmount": "sample string 14",
  "GrossAmount": "sample string 15",
  "SalesExecutive": "sample string 16",
  "CreditLimit": "sample string 17",
  "ImportSelected": "sample string 18",
  "TransporterSelected": "sample string 19",
  "PaymentTerm": "sample string 20",
  "BillToAddress": "sample string 21",
  "ShipToAddress": "sample string 22",
  "ShippingType": "sample string 23",
  "Remarks": "sample string 24",
  "Items": [
    {
      "ItemCode": "sample string 1",
      "Quantity": 2.1,
      "Warehouse": "sample string 3",
      "Price": 4.1,
      "DiscountPercent": 5.1,
      "LineTotal": 6.1,
      "TaxCode": "sample string 7",
      "BaseRef": "sample string 8",
      "BaseEntry": "sample string 9",
      "BaseLine": "sample string 10",
      "DelDate": "sample string 11",
      "TaxAmount": 12.1,
      "Scheme": "sample string 13"
    },
    {
      "ItemCode": "sample string 1",
      "Quantity": 2.1,
      "Warehouse": "sample string 3",
      "Price": 4.1,
      "DiscountPercent": 5.1,
      "LineTotal": 6.1,
      "TaxCode": "sample string 7",
      "BaseRef": "sample string 8",
      "BaseEntry": "sample string 9",
      "BaseLine": "sample string 10",
      "DelDate": "sample string 11",
      "TaxAmount": 12.1,
      "Scheme": "sample string 13"
    }
  ],
  "Attachments": [
    {
      "AttachmentEntry": "sample string 1",
      "LineId": "sample string 2",
      "FileName": "sample string 3",
      "Extension": "sample string 4",
      "SourcePath": "sample string 5",
      "AttachmentType": "sample string 6",
      "AttachmentRemarks": "sample string 7"
    },
    {
      "AttachmentEntry": "sample string 1",
      "LineId": "sample string 2",
      "FileName": "sample string 3",
      "Extension": "sample string 4",
      "SourcePath": "sample string 5",
      "AttachmentType": "sample string 6",
      "AttachmentRemarks": "sample string 7"
    }
  ]
}

application/xml, text/xml

Sample:
<ESPL_MODEL_SALESORDER_HEADER xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/ESPL_ERP_API">
  <Attachments>
    <ESPL_MODEL_SALESORDER_ATCHMNTN>
      <AttachmentEntry>sample string 1</AttachmentEntry>
      <AttachmentRemarks>sample string 7</AttachmentRemarks>
      <AttachmentType>sample string 6</AttachmentType>
      <Extension>sample string 4</Extension>
      <FileName>sample string 3</FileName>
      <LineId>sample string 2</LineId>
      <SourcePath>sample string 5</SourcePath>
    </ESPL_MODEL_SALESORDER_ATCHMNTN>
    <ESPL_MODEL_SALESORDER_ATCHMNTN>
      <AttachmentEntry>sample string 1</AttachmentEntry>
      <AttachmentRemarks>sample string 7</AttachmentRemarks>
      <AttachmentType>sample string 6</AttachmentType>
      <Extension>sample string 4</Extension>
      <FileName>sample string 3</FileName>
      <LineId>sample string 2</LineId>
      <SourcePath>sample string 5</SourcePath>
    </ESPL_MODEL_SALESORDER_ATCHMNTN>
  </Attachments>
  <BillToAddress>sample string 21</BillToAddress>
  <Branch>sample string 6</Branch>
  <CardCode>sample string 7</CardCode>
  <ContactPerson>sample string 10</ContactPerson>
  <CreditLimit>sample string 17</CreditLimit>
  <Currency>sample string 8</Currency>
  <CustomerReference>sample string 5</CustomerReference>
  <DeliveryDate>sample string 3</DeliveryDate>
  <DiscountAmount>sample string 13</DiscountAmount>
  <DiscountPercent>sample string 12</DiscountPercent>
  <DocumentDate>sample string 2</DocumentDate>
  <DocumentSeries>9</DocumentSeries>
  <GrossAmount>sample string 15</GrossAmount>
  <ImportSelected>sample string 18</ImportSelected>
  <Items>
    <ESPL_MODEL_SALESORDER_ITEMS>
      <BaseEntry>sample string 9</BaseEntry>
      <BaseLine>sample string 10</BaseLine>
      <BaseRef>sample string 8</BaseRef>
      <DelDate>sample string 11</DelDate>
      <DiscountPercent>5.1</DiscountPercent>
      <ItemCode>sample string 1</ItemCode>
      <LineTotal>6.1</LineTotal>
      <Price>4.1</Price>
      <Quantity>2.1</Quantity>
      <Scheme>sample string 13</Scheme>
      <TaxAmount>12.1</TaxAmount>
      <TaxCode>sample string 7</TaxCode>
      <Warehouse>sample string 3</Warehouse>
    </ESPL_MODEL_SALESORDER_ITEMS>
    <ESPL_MODEL_SALESORDER_ITEMS>
      <BaseEntry>sample string 9</BaseEntry>
      <BaseLine>sample string 10</BaseLine>
      <BaseRef>sample string 8</BaseRef>
      <DelDate>sample string 11</DelDate>
      <DiscountPercent>5.1</DiscountPercent>
      <ItemCode>sample string 1</ItemCode>
      <LineTotal>6.1</LineTotal>
      <Price>4.1</Price>
      <Quantity>2.1</Quantity>
      <Scheme>sample string 13</Scheme>
      <TaxAmount>12.1</TaxAmount>
      <TaxCode>sample string 7</TaxCode>
      <Warehouse>sample string 3</Warehouse>
    </ESPL_MODEL_SALESORDER_ITEMS>
  </Items>
  <PaymentTerm>sample string 20</PaymentTerm>
  <RefId>sample string 1</RefId>
  <ReferenceNo>sample string 4</ReferenceNo>
  <Remarks>sample string 24</Remarks>
  <SalesExecutive>sample string 16</SalesExecutive>
  <ShipToAddress>sample string 22</ShipToAddress>
  <ShippingType>sample string 23</ShippingType>
  <TaxAmount>sample string 14</TaxAmount>
  <TotalBeforeDiscount>sample string 11</TotalBeforeDiscount>
  <TransporterSelected>sample string 19</TransporterSelected>
</ESPL_MODEL_SALESORDER_HEADER>

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

Resource Description

HttpResponseMessage
NameDescriptionTypeAdditional information
Version

Version

None.

Content

HttpContent

None.

StatusCode

HttpStatusCode

None.

ReasonPhrase

string

None.

Headers

Collection of Object

None.

RequestMessage

HttpRequestMessage

None.

IsSuccessStatusCode

boolean

None.