POST api/invoice/generatepdf

Request Information

URI Parameters

None.

Body Parameters

InvoiceDataModel
NameDescriptionTypeAdditional information
Header

InvoiceHeaderModel

None.

Lines

Collection of InvoiceLineModel

None.

Request Formats

application/json, text/json

Sample:
{
  "Header": {
    "InvoiceNumber": "sample string 1",
    "InvoiceDate": "sample string 2",
    "PaymentTerms": "sample string 3",
    "DueDate": "sample string 4",
    "BuyerName": "sample string 5",
    "BuyerStreet": "sample string 6",
    "BuyerCity": "sample string 7",
    "BuyerContact": "sample string 8",
    "SellerName": "sample string 9",
    "SellerStreet": "sample string 10",
    "SellerCity": "sample string 11",
    "SellerContact": "sample string 12",
    "LineTotalAmount": "sample string 13",
    "AllowanceTotalAmount": "sample string 14",
    "ChargeTotalAmount": "sample string 15",
    "TaxBasisAmount": "sample string 16",
    "TaxTotalAmount": "sample string 17",
    "GrandTotalAmount": "sample string 18",
    "BankDetails": "sample string 19",
    "VATDetails": "sample string 20",
    "Tax0": "sample string 21",
    "Tax1": "sample string 22",
    "Tax2": "sample string 23",
    "TaxAmount0": "sample string 24",
    "TaxAmount1": "sample string 25",
    "TaxAmount2": "sample string 26"
  },
  "Lines": [
    {
      "Name": "sample string 1",
      "SellerAssignedID": "sample string 2",
      "NetUnitPrice": "sample string 3",
      "GrossUnitPrice": "sample string 4",
      "Quantity": "sample string 5",
      "LineTotalAmount": "sample string 6",
      "DeliveryNoteId": "sample string 7",
      "DeliveryNoteDate": "sample string 8",
      "Comment": "sample string 9",
      "Reference": "sample string 10"
    },
    {
      "Name": "sample string 1",
      "SellerAssignedID": "sample string 2",
      "NetUnitPrice": "sample string 3",
      "GrossUnitPrice": "sample string 4",
      "Quantity": "sample string 5",
      "LineTotalAmount": "sample string 6",
      "DeliveryNoteId": "sample string 7",
      "DeliveryNoteDate": "sample string 8",
      "Comment": "sample string 9",
      "Reference": "sample string 10"
    }
  ]
}

application/xml, text/xml

Sample:
<InvoiceController.InvoiceDataModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/ONE4XFacturProcessorAPI.Controllers">
  <Header>
    <AllowanceTotalAmount>sample string 14</AllowanceTotalAmount>
    <BankDetails>sample string 19</BankDetails>
    <BuyerCity>sample string 7</BuyerCity>
    <BuyerContact>sample string 8</BuyerContact>
    <BuyerName>sample string 5</BuyerName>
    <BuyerStreet>sample string 6</BuyerStreet>
    <ChargeTotalAmount>sample string 15</ChargeTotalAmount>
    <DueDate>sample string 4</DueDate>
    <GrandTotalAmount>sample string 18</GrandTotalAmount>
    <InvoiceDate>sample string 2</InvoiceDate>
    <InvoiceNumber>sample string 1</InvoiceNumber>
    <LineTotalAmount>sample string 13</LineTotalAmount>
    <PaymentTerms>sample string 3</PaymentTerms>
    <SellerCity>sample string 11</SellerCity>
    <SellerContact>sample string 12</SellerContact>
    <SellerName>sample string 9</SellerName>
    <SellerStreet>sample string 10</SellerStreet>
    <Tax0>sample string 21</Tax0>
    <Tax1>sample string 22</Tax1>
    <Tax2>sample string 23</Tax2>
    <TaxAmount0>sample string 24</TaxAmount0>
    <TaxAmount1>sample string 25</TaxAmount1>
    <TaxAmount2>sample string 26</TaxAmount2>
    <TaxBasisAmount>sample string 16</TaxBasisAmount>
    <TaxTotalAmount>sample string 17</TaxTotalAmount>
    <VATDetails>sample string 20</VATDetails>
  </Header>
  <Lines>
    <InvoiceController.InvoiceLineModel>
      <Comment>sample string 9</Comment>
      <DeliveryNoteDate>sample string 8</DeliveryNoteDate>
      <DeliveryNoteId>sample string 7</DeliveryNoteId>
      <GrossUnitPrice>sample string 4</GrossUnitPrice>
      <LineTotalAmount>sample string 6</LineTotalAmount>
      <Name>sample string 1</Name>
      <NetUnitPrice>sample string 3</NetUnitPrice>
      <Quantity>sample string 5</Quantity>
      <Reference>sample string 10</Reference>
      <SellerAssignedID>sample string 2</SellerAssignedID>
    </InvoiceController.InvoiceLineModel>
    <InvoiceController.InvoiceLineModel>
      <Comment>sample string 9</Comment>
      <DeliveryNoteDate>sample string 8</DeliveryNoteDate>
      <DeliveryNoteId>sample string 7</DeliveryNoteId>
      <GrossUnitPrice>sample string 4</GrossUnitPrice>
      <LineTotalAmount>sample string 6</LineTotalAmount>
      <Name>sample string 1</Name>
      <NetUnitPrice>sample string 3</NetUnitPrice>
      <Quantity>sample string 5</Quantity>
      <Reference>sample string 10</Reference>
      <SellerAssignedID>sample string 2</SellerAssignedID>
    </InvoiceController.InvoiceLineModel>
  </Lines>
</InvoiceController.InvoiceDataModel>

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

Resource Description

IHttpActionResult

None.

Response Formats

application/json, text/json, application/xml, text/xml

Sample:

Sample not available.