POST Api/Post_ARInvoice

Request Information

URI Parameters

None.

Body Parameters

ESPL_MODEL_AR_INVOICE
NameDescriptionTypeAdditional information
RefId

string

None.

IsDraft

string

None.

DraftKey

integer

None.

DocEntry

integer

None.

WeighmentEntry

integer

None.

DocNum

string

None.

Status

string

None.

PostingDate

string

None.

DeliveryDate

string

None.

DocumentDate

string

None.

SalesEmployee

integer

None.

PriceList

integer

None.

CardCode

string

None.

CustomerRefNo

string

None.

PlaceofSupply

string

None.

Warehouse

string

None.

Branch

integer

None.

BillToCode

string

None.

ShipToCode

string

None.

ShippingType

string

None.

PaymentTerms

string

None.

TransporterType

string

None.

ServiceProviderName

string

None.

VehicleNo

string

None.

DriverName

string

None.

DriverNo

string

None.

Remarks

string

None.

Discount

decimal number

None.

FrieghtCharges

string

None.

LoadingCharges

string

None.

CuttingCharges

string

None.

WeighmentCharges

string

None.

BendingCharges

string

None.

UnloadingCharges

string

None.

IsSync

string

None.

EwayBill_Status

string

None.

Distance

integer

None.

EWBCancelCode

string

None.

EWBCancelRemarks

string

None.

TranType

string

None.

ShipFromName

string

None.

ShipFrom

string

None.

ShipFromAddr2

string

None.

ShipFromState

string

None.

ShipFromZipCode

string

None.

ShipFromCity

string

None.

SSS_QTY

decimal number

None.

Items

Collection of ESPL_MODEL_AR_INV_ITEMS

None.

Freigth

Collection of ESPL_MODEL_AR_INV_FREIGHT

None.

TCS

Collection of ESPL_MODEL_AR_INV_TCS

None.

Request Formats

application/json, text/json

Sample:
{
  "RefId": "sample string 1",
  "IsDraft": "sample string 2",
  "DraftKey": 3,
  "DocEntry": 4,
  "WeighmentEntry": 5,
  "DocNum": "sample string 6",
  "Status": "sample string 7",
  "PostingDate": "sample string 8",
  "DeliveryDate": "sample string 9",
  "DocumentDate": "sample string 10",
  "SalesEmployee": 11,
  "PriceList": 12,
  "CardCode": "sample string 13",
  "CustomerRefNo": "sample string 14",
  "PlaceofSupply": "sample string 15",
  "Warehouse": "sample string 16",
  "Branch": 17,
  "BillToCode": "sample string 18",
  "ShipToCode": "sample string 19",
  "ShippingType": "sample string 20",
  "PaymentTerms": "sample string 21",
  "TransporterType": "sample string 22",
  "ServiceProviderName": "sample string 23",
  "VehicleNo": "sample string 24",
  "DriverName": "sample string 25",
  "DriverNo": "sample string 26",
  "Remarks": "sample string 27",
  "Discount": 28.1,
  "FrieghtCharges": "sample string 29",
  "LoadingCharges": "sample string 30",
  "CuttingCharges": "sample string 31",
  "WeighmentCharges": "sample string 32",
  "BendingCharges": "sample string 33",
  "UnloadingCharges": "sample string 34",
  "IsSync": "sample string 35",
  "EwayBill_Status": "sample string 36",
  "Distance": 37,
  "EWBCancelCode": "sample string 38",
  "EWBCancelRemarks": "sample string 39",
  "TranType": "sample string 40",
  "ShipFromName": "sample string 41",
  "ShipFrom": "sample string 42",
  "ShipFromAddr2": "sample string 43",
  "ShipFromState": "sample string 44",
  "ShipFromZipCode": "sample string 45",
  "ShipFromCity": "sample string 46",
  "SSS_QTY": 47.1,
  "Items": [
    {
      "LineNo": 1,
      "BaseLine": 2,
      "BaseDocNum": 3,
      "BaseEntry": 4,
      "BaseType": "sample string 5",
      "ItemCode": "sample string 6",
      "UOM": "sample string 7",
      "AlternateUOM": "sample string 8",
      "Quantity": 9.1,
      "Price": 10.1,
      "Discount": 11.1,
      "TaxCode": "sample string 12",
      "LineTotal": 13.1,
      "ActualPCS": 14.1,
      "BilledPCS": 15.1
    },
    {
      "LineNo": 1,
      "BaseLine": 2,
      "BaseDocNum": 3,
      "BaseEntry": 4,
      "BaseType": "sample string 5",
      "ItemCode": "sample string 6",
      "UOM": "sample string 7",
      "AlternateUOM": "sample string 8",
      "Quantity": 9.1,
      "Price": 10.1,
      "Discount": 11.1,
      "TaxCode": "sample string 12",
      "LineTotal": 13.1,
      "ActualPCS": 14.1,
      "BilledPCS": 15.1
    }
  ],
  "Freigth": [
    {
      "FreightCode": 1,
      "FreightName": "sample string 2",
      "TaxCode": "sample string 3",
      "Rate": 4.1,
      "Charges": 5.1,
      "GSTAmount": 6.1
    },
    {
      "FreightCode": 1,
      "FreightName": "sample string 2",
      "TaxCode": "sample string 3",
      "Rate": 4.1,
      "Charges": 5.1,
      "GSTAmount": 6.1
    }
  ],
  "TCS": [
    {
      "TCSCode": "sample string 1",
      "TCSRate": 2.1,
      "WTAmount": 3.1,
      "TaxableAmount": 4.1
    },
    {
      "TCSCode": "sample string 1",
      "TCSRate": 2.1,
      "WTAmount": 3.1,
      "TaxableAmount": 4.1
    }
  ]
}

application/xml, text/xml

Sample:
<ESPL_MODEL_AR_INVOICE xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/ESPL_ERP_API">
  <BendingCharges>sample string 33</BendingCharges>
  <BillToCode>sample string 18</BillToCode>
  <Branch>17</Branch>
  <CardCode>sample string 13</CardCode>
  <CustomerRefNo>sample string 14</CustomerRefNo>
  <CuttingCharges>sample string 31</CuttingCharges>
  <DeliveryDate>sample string 9</DeliveryDate>
  <Discount>28.1</Discount>
  <Distance>37</Distance>
  <DocEntry>4</DocEntry>
  <DocNum>sample string 6</DocNum>
  <DocumentDate>sample string 10</DocumentDate>
  <DraftKey>3</DraftKey>
  <DriverName>sample string 25</DriverName>
  <DriverNo>sample string 26</DriverNo>
  <EWBCancelCode>sample string 38</EWBCancelCode>
  <EWBCancelRemarks>sample string 39</EWBCancelRemarks>
  <EwayBill_Status>sample string 36</EwayBill_Status>
  <Freigth>
    <ESPL_MODEL_AR_INV_FREIGHT>
      <Charges>5.1</Charges>
      <FreightCode>1</FreightCode>
      <FreightName>sample string 2</FreightName>
      <GSTAmount>6.1</GSTAmount>
      <Rate>4.1</Rate>
      <TaxCode>sample string 3</TaxCode>
    </ESPL_MODEL_AR_INV_FREIGHT>
    <ESPL_MODEL_AR_INV_FREIGHT>
      <Charges>5.1</Charges>
      <FreightCode>1</FreightCode>
      <FreightName>sample string 2</FreightName>
      <GSTAmount>6.1</GSTAmount>
      <Rate>4.1</Rate>
      <TaxCode>sample string 3</TaxCode>
    </ESPL_MODEL_AR_INV_FREIGHT>
  </Freigth>
  <FrieghtCharges>sample string 29</FrieghtCharges>
  <IsDraft>sample string 2</IsDraft>
  <IsSync>sample string 35</IsSync>
  <Items>
    <ESPL_MODEL_AR_INV_ITEMS>
      <ActualPCS>14.1</ActualPCS>
      <AlternateUOM>sample string 8</AlternateUOM>
      <BaseDocNum>3</BaseDocNum>
      <BaseEntry>4</BaseEntry>
      <BaseLine>2</BaseLine>
      <BaseType>sample string 5</BaseType>
      <BilledPCS>15.1</BilledPCS>
      <Discount>11.1</Discount>
      <ItemCode>sample string 6</ItemCode>
      <LineNo>1</LineNo>
      <LineTotal>13.1</LineTotal>
      <Price>10.1</Price>
      <Quantity>9.1</Quantity>
      <TaxCode>sample string 12</TaxCode>
      <UOM>sample string 7</UOM>
    </ESPL_MODEL_AR_INV_ITEMS>
    <ESPL_MODEL_AR_INV_ITEMS>
      <ActualPCS>14.1</ActualPCS>
      <AlternateUOM>sample string 8</AlternateUOM>
      <BaseDocNum>3</BaseDocNum>
      <BaseEntry>4</BaseEntry>
      <BaseLine>2</BaseLine>
      <BaseType>sample string 5</BaseType>
      <BilledPCS>15.1</BilledPCS>
      <Discount>11.1</Discount>
      <ItemCode>sample string 6</ItemCode>
      <LineNo>1</LineNo>
      <LineTotal>13.1</LineTotal>
      <Price>10.1</Price>
      <Quantity>9.1</Quantity>
      <TaxCode>sample string 12</TaxCode>
      <UOM>sample string 7</UOM>
    </ESPL_MODEL_AR_INV_ITEMS>
  </Items>
  <LoadingCharges>sample string 30</LoadingCharges>
  <PaymentTerms>sample string 21</PaymentTerms>
  <PlaceofSupply>sample string 15</PlaceofSupply>
  <PostingDate>sample string 8</PostingDate>
  <PriceList>12</PriceList>
  <RefId>sample string 1</RefId>
  <Remarks>sample string 27</Remarks>
  <SSS_QTY>47.1</SSS_QTY>
  <SalesEmployee>11</SalesEmployee>
  <ServiceProviderName>sample string 23</ServiceProviderName>
  <ShipFrom>sample string 42</ShipFrom>
  <ShipFromAddr2>sample string 43</ShipFromAddr2>
  <ShipFromCity>sample string 46</ShipFromCity>
  <ShipFromName>sample string 41</ShipFromName>
  <ShipFromState>sample string 44</ShipFromState>
  <ShipFromZipCode>sample string 45</ShipFromZipCode>
  <ShipToCode>sample string 19</ShipToCode>
  <ShippingType>sample string 20</ShippingType>
  <Status>sample string 7</Status>
  <TCS>
    <ESPL_MODEL_AR_INV_TCS>
      <TCSCode>sample string 1</TCSCode>
      <TCSRate>2.1</TCSRate>
      <TaxableAmount>4.1</TaxableAmount>
      <WTAmount>3.1</WTAmount>
    </ESPL_MODEL_AR_INV_TCS>
    <ESPL_MODEL_AR_INV_TCS>
      <TCSCode>sample string 1</TCSCode>
      <TCSRate>2.1</TCSRate>
      <TaxableAmount>4.1</TaxableAmount>
      <WTAmount>3.1</WTAmount>
    </ESPL_MODEL_AR_INV_TCS>
  </TCS>
  <TranType>sample string 40</TranType>
  <TransporterType>sample string 22</TransporterType>
  <UnloadingCharges>sample string 34</UnloadingCharges>
  <VehicleNo>sample string 24</VehicleNo>
  <Warehouse>sample string 16</Warehouse>
  <WeighmentCharges>sample string 32</WeighmentCharges>
  <WeighmentEntry>5</WeighmentEntry>
</ESPL_MODEL_AR_INVOICE>

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.