POST Api/Post_APInvoiceUDO

Request Information

URI Parameters

None.

Body Parameters

ESPL_MODEL_UDO_AP_INV
NameDescriptionTypeAdditional information
DocEntry

integer

None.

CardCode

string

None.

CardName

string

None.

PONO

string

None.

PODate

string

None.

POType

string

None.

PODocEntry

string

None.

InvoiceNo

string

None.

InvoiceDate

string

None.

PostingDate

string

None.

ASNNO

string

None.

ASNDate

string

None.

TransactionType

string

None.

VehicleNo

string

None.

DriverName

string

None.

DriverCntNo

string

None.

Remarks

string

None.

TotBeforeDis

string

None.

Discount

string

None.

Taxes

string

None.

Freight

string

None.

Insurance

string

None.

Other

string

None.

FreightTaxCode

string

None.

RoundOff

string

None.

GrandTotal

string

None.

Currency

string

None.

Items

Collection of ESPL_MODEL_AP_ITEMS

None.

Attachments

Collection of ESPL_MODEL_SALESORDER_ATCHMNTN

None.

Request Formats

application/json, text/json

Sample:
{
  "DocEntry": 1,
  "CardCode": "sample string 2",
  "CardName": "sample string 3",
  "PONO": "sample string 4",
  "PODate": "sample string 5",
  "POType": "sample string 6",
  "PODocEntry": "sample string 7",
  "InvoiceNo": "sample string 8",
  "InvoiceDate": "sample string 9",
  "PostingDate": "sample string 10",
  "ASNNO": "sample string 11",
  "ASNDate": "sample string 12",
  "TransactionType": "sample string 13",
  "VehicleNo": "sample string 14",
  "DriverName": "sample string 15",
  "DriverCntNo": "sample string 16",
  "Remarks": "sample string 17",
  "TotBeforeDis": "sample string 18",
  "Discount": "sample string 19",
  "Taxes": "sample string 20",
  "Freight": "sample string 21",
  "Insurance": "sample string 22",
  "Other": "sample string 23",
  "FreightTaxCode": "sample string 24",
  "RoundOff": "sample string 25",
  "GrandTotal": "sample string 26",
  "Currency": "sample string 27",
  "Items": [
    {
      "LineId": 1,
      "BaseLine": 2,
      "BaseEntry": 3,
      "BaseType": 4,
      "ItemCode": "sample string 5",
      "ItemName": "sample string 6",
      "DiscPercent": 7.0,
      "POQty": 8.0,
      "PendingQty": 9.0,
      "InvoiceQty": 10.0,
      "POPrice": 11.0,
      "Price": 12.0,
      "Tax": "sample string 13",
      "Remarks": "sample string 14"
    },
    {
      "LineId": 1,
      "BaseLine": 2,
      "BaseEntry": 3,
      "BaseType": 4,
      "ItemCode": "sample string 5",
      "ItemName": "sample string 6",
      "DiscPercent": 7.0,
      "POQty": 8.0,
      "PendingQty": 9.0,
      "InvoiceQty": 10.0,
      "POPrice": 11.0,
      "Price": 12.0,
      "Tax": "sample string 13",
      "Remarks": "sample string 14"
    }
  ],
  "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_UDO_AP_INV xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/ESPL_ERP_API">
  <ASNDate>sample string 12</ASNDate>
  <ASNNO>sample string 11</ASNNO>
  <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>
  <CardCode>sample string 2</CardCode>
  <CardName>sample string 3</CardName>
  <Currency>sample string 27</Currency>
  <Discount>sample string 19</Discount>
  <DocEntry>1</DocEntry>
  <DriverCntNo>sample string 16</DriverCntNo>
  <DriverName>sample string 15</DriverName>
  <Freight>sample string 21</Freight>
  <FreightTaxCode>sample string 24</FreightTaxCode>
  <GrandTotal>sample string 26</GrandTotal>
  <Insurance>sample string 22</Insurance>
  <InvoiceDate>sample string 9</InvoiceDate>
  <InvoiceNo>sample string 8</InvoiceNo>
  <Items>
    <ESPL_MODEL_AP_ITEMS>
      <BaseEntry>3</BaseEntry>
      <BaseLine>2</BaseLine>
      <BaseType>4</BaseType>
      <DiscPercent>7</DiscPercent>
      <InvoiceQty>10</InvoiceQty>
      <ItemCode>sample string 5</ItemCode>
      <ItemName>sample string 6</ItemName>
      <LineId>1</LineId>
      <POPrice>11</POPrice>
      <POQty>8</POQty>
      <PendingQty>9</PendingQty>
      <Price>12</Price>
      <Remarks>sample string 14</Remarks>
      <Tax>sample string 13</Tax>
    </ESPL_MODEL_AP_ITEMS>
    <ESPL_MODEL_AP_ITEMS>
      <BaseEntry>3</BaseEntry>
      <BaseLine>2</BaseLine>
      <BaseType>4</BaseType>
      <DiscPercent>7</DiscPercent>
      <InvoiceQty>10</InvoiceQty>
      <ItemCode>sample string 5</ItemCode>
      <ItemName>sample string 6</ItemName>
      <LineId>1</LineId>
      <POPrice>11</POPrice>
      <POQty>8</POQty>
      <PendingQty>9</PendingQty>
      <Price>12</Price>
      <Remarks>sample string 14</Remarks>
      <Tax>sample string 13</Tax>
    </ESPL_MODEL_AP_ITEMS>
  </Items>
  <Other>sample string 23</Other>
  <PODate>sample string 5</PODate>
  <PODocEntry>sample string 7</PODocEntry>
  <PONO>sample string 4</PONO>
  <POType>sample string 6</POType>
  <PostingDate>sample string 10</PostingDate>
  <Remarks>sample string 17</Remarks>
  <RoundOff>sample string 25</RoundOff>
  <Taxes>sample string 20</Taxes>
  <TotBeforeDis>sample string 18</TotBeforeDis>
  <TransactionType>sample string 13</TransactionType>
  <VehicleNo>sample string 14</VehicleNo>
</ESPL_MODEL_UDO_AP_INV>

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.