POST api/Invoice/ImportEInvoice

Request Information

URI Parameters

None.

Body Parameters

EInvoiceImportVM
NameDescriptionTypeAdditional information
InvoiceID

globally unique identifier

None.

InvoiceProducts

Collection of ImportInvoiceProductAddDto

None.

Request Formats

application/json, text/json

Sample:
{
  "invoiceID": "34a55926-0fbf-4790-bb50-7c387c2572de",
  "invoiceProducts": [
    {
      "title": "sample string 1",
      "code": "sample string 2",
      "currencyRate": 3.1,
      "quantity": 4.1,
      "amount": 5.1,
      "leanAmount": 6.1,
      "cost": 7.1,
      "discountRate": 8.1,
      "secondDiscountRate": 9.1,
      "thirdDiscountRate": 10.1,
      "fourthDiscountRate": 11.1,
      "fifthDiscountRate": 12.1,
      "discountAmount": 13.1,
      "secondDiscountAmount": 14.1,
      "thirdDiscountAmount": 15.1,
      "fourthDiscountAmount": 16.1,
      "fifthDiscountAmount": 17.1,
      "discountedUnitPrice": 18.1,
      "discountedTotalPrice": 19.1,
      "isDiscountPercentage": true,
      "totalAmount": 21.1,
      "kdv": 0,
      "kdvAmount": 22.1,
      "oiv": 23.1,
      "oivAmount": 24.1,
      "oivCode": "sample string 25",
      "otv": 26.1,
      "otvAmount": 27.1,
      "otvCode": "sample string 28",
      "isOTVPercentage": true,
      "theWithholdingID": "e6b00961-76f4-4632-b28c-314f745e09ac",
      "theWithholdingAmount": 30.1,
      "noKDVReasonID": "26d9e241-28ed-4099-826c-848c682a0c48",
      "unit": {
        "name": "sample string 1",
        "code": "sample string 2",
        "id": "c593854a-e5a0-4821-8f80-a3e995f6347e",
        "companyID": "23fa7048-1d86-4fc2-9c72-1eefe8b89cb4"
      },
      "warehouseID": "55835d4f-0f0f-4b9e-968f-97a03d8506ee",
      "currencyID": "68f7bc46-9c7f-4f41-8f6f-f98ed3f0905e",
      "productID": "d19180fb-8883-44e8-8a10-a0bc8c635cd2",
      "productName": "sample string 31",
      "productType": 1,
      "isStockTracking": true,
      "description": "sample string 33",
      "invoiceID": "3fc1fc63-1ab4-418f-ac04-0128739e7f8d",
      "companyID": "586e86bb-edd5-40cd-9a17-384f85c70353",
      "toBeMappedProductId": "9fc9c3ec-49ef-41fe-ba40-1d01d25a6efa"
    },
    {
      "title": "sample string 1",
      "code": "sample string 2",
      "currencyRate": 3.1,
      "quantity": 4.1,
      "amount": 5.1,
      "leanAmount": 6.1,
      "cost": 7.1,
      "discountRate": 8.1,
      "secondDiscountRate": 9.1,
      "thirdDiscountRate": 10.1,
      "fourthDiscountRate": 11.1,
      "fifthDiscountRate": 12.1,
      "discountAmount": 13.1,
      "secondDiscountAmount": 14.1,
      "thirdDiscountAmount": 15.1,
      "fourthDiscountAmount": 16.1,
      "fifthDiscountAmount": 17.1,
      "discountedUnitPrice": 18.1,
      "discountedTotalPrice": 19.1,
      "isDiscountPercentage": true,
      "totalAmount": 21.1,
      "kdv": 0,
      "kdvAmount": 22.1,
      "oiv": 23.1,
      "oivAmount": 24.1,
      "oivCode": "sample string 25",
      "otv": 26.1,
      "otvAmount": 27.1,
      "otvCode": "sample string 28",
      "isOTVPercentage": true,
      "theWithholdingID": "e6b00961-76f4-4632-b28c-314f745e09ac",
      "theWithholdingAmount": 30.1,
      "noKDVReasonID": "26d9e241-28ed-4099-826c-848c682a0c48",
      "unit": {
        "name": "sample string 1",
        "code": "sample string 2",
        "id": "c593854a-e5a0-4821-8f80-a3e995f6347e",
        "companyID": "23fa7048-1d86-4fc2-9c72-1eefe8b89cb4"
      },
      "warehouseID": "55835d4f-0f0f-4b9e-968f-97a03d8506ee",
      "currencyID": "68f7bc46-9c7f-4f41-8f6f-f98ed3f0905e",
      "productID": "d19180fb-8883-44e8-8a10-a0bc8c635cd2",
      "productName": "sample string 31",
      "productType": 1,
      "isStockTracking": true,
      "description": "sample string 33",
      "invoiceID": "3fc1fc63-1ab4-418f-ac04-0128739e7f8d",
      "companyID": "586e86bb-edd5-40cd-9a17-384f85c70353",
      "toBeMappedProductId": "9fc9c3ec-49ef-41fe-ba40-1d01d25a6efa"
    }
  ]
}

application/xml, text/xml

Sample:
<EInvoiceImportVM xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/TP.TulTrack.Core.Models">
  <InvoiceID>34a55926-0fbf-4790-bb50-7c387c2572de</InvoiceID>
  <InvoiceProducts xmlns:d2p1="http://schemas.datacontract.org/2004/07/TP.TulTrack.Core.Service.DTOs">
    <d2p1:ImportInvoiceProductAddDto>
      <d2p1:Amount>5.1</d2p1:Amount>
      <d2p1:Code>sample string 2</d2p1:Code>
      <d2p1:CompanyID>586e86bb-edd5-40cd-9a17-384f85c70353</d2p1:CompanyID>
      <d2p1:Cost>7.1</d2p1:Cost>
      <d2p1:CurrencyID>68f7bc46-9c7f-4f41-8f6f-f98ed3f0905e</d2p1:CurrencyID>
      <d2p1:CurrencyRate>3.1</d2p1:CurrencyRate>
      <d2p1:Description>sample string 33</d2p1:Description>
      <d2p1:DiscountAmount>13.1</d2p1:DiscountAmount>
      <d2p1:DiscountRate>8.1</d2p1:DiscountRate>
      <d2p1:DiscountedTotalPrice>19.1</d2p1:DiscountedTotalPrice>
      <d2p1:DiscountedUnitPrice>18.1</d2p1:DiscountedUnitPrice>
      <d2p1:FifthDiscountAmount>17.1</d2p1:FifthDiscountAmount>
      <d2p1:FifthDiscountRate>12.1</d2p1:FifthDiscountRate>
      <d2p1:FourthDiscountAmount>16.1</d2p1:FourthDiscountAmount>
      <d2p1:FourthDiscountRate>11.1</d2p1:FourthDiscountRate>
      <d2p1:InvoiceID>3fc1fc63-1ab4-418f-ac04-0128739e7f8d</d2p1:InvoiceID>
      <d2p1:IsDiscountPercentage>true</d2p1:IsDiscountPercentage>
      <d2p1:IsOTVPercentage>true</d2p1:IsOTVPercentage>
      <d2p1:IsStockTracking>true</d2p1:IsStockTracking>
      <d2p1:KDV>KDV0</d2p1:KDV>
      <d2p1:KDVAmount>22.1</d2p1:KDVAmount>
      <d2p1:LeanAmount>6.1</d2p1:LeanAmount>
      <d2p1:NoKDVReasonID>26d9e241-28ed-4099-826c-848c682a0c48</d2p1:NoKDVReasonID>
      <d2p1:OIV>23.1</d2p1:OIV>
      <d2p1:OIVAmount>24.1</d2p1:OIVAmount>
      <d2p1:OIVCode>sample string 25</d2p1:OIVCode>
      <d2p1:OTV>26.1</d2p1:OTV>
      <d2p1:OTVAmount>27.1</d2p1:OTVAmount>
      <d2p1:OTVCode>sample string 28</d2p1:OTVCode>
      <d2p1:ProductID>d19180fb-8883-44e8-8a10-a0bc8c635cd2</d2p1:ProductID>
      <d2p1:ProductName>sample string 31</d2p1:ProductName>
      <d2p1:ProductType>Product</d2p1:ProductType>
      <d2p1:Quantity>4.1</d2p1:Quantity>
      <d2p1:SecondDiscountAmount>14.1</d2p1:SecondDiscountAmount>
      <d2p1:SecondDiscountRate>9.1</d2p1:SecondDiscountRate>
      <d2p1:TheWithholdingAmount>30.1</d2p1:TheWithholdingAmount>
      <d2p1:TheWithholdingID>e6b00961-76f4-4632-b28c-314f745e09ac</d2p1:TheWithholdingID>
      <d2p1:ThirdDiscountAmount>15.1</d2p1:ThirdDiscountAmount>
      <d2p1:ThirdDiscountRate>10.1</d2p1:ThirdDiscountRate>
      <d2p1:Title>sample string 1</d2p1:Title>
      <d2p1:ToBeMappedProductId>9fc9c3ec-49ef-41fe-ba40-1d01d25a6efa</d2p1:ToBeMappedProductId>
      <d2p1:TotalAmount>21.1</d2p1:TotalAmount>
      <d2p1:Unit>
        <d2p1:CompanyID>23fa7048-1d86-4fc2-9c72-1eefe8b89cb4</d2p1:CompanyID>
        <d2p1:ID>c593854a-e5a0-4821-8f80-a3e995f6347e</d2p1:ID>
        <d2p1:Code>sample string 2</d2p1:Code>
        <d2p1:Name>sample string 1</d2p1:Name>
      </d2p1:Unit>
      <d2p1:WarehouseID>55835d4f-0f0f-4b9e-968f-97a03d8506ee</d2p1:WarehouseID>
    </d2p1:ImportInvoiceProductAddDto>
    <d2p1:ImportInvoiceProductAddDto>
      <d2p1:Amount>5.1</d2p1:Amount>
      <d2p1:Code>sample string 2</d2p1:Code>
      <d2p1:CompanyID>586e86bb-edd5-40cd-9a17-384f85c70353</d2p1:CompanyID>
      <d2p1:Cost>7.1</d2p1:Cost>
      <d2p1:CurrencyID>68f7bc46-9c7f-4f41-8f6f-f98ed3f0905e</d2p1:CurrencyID>
      <d2p1:CurrencyRate>3.1</d2p1:CurrencyRate>
      <d2p1:Description>sample string 33</d2p1:Description>
      <d2p1:DiscountAmount>13.1</d2p1:DiscountAmount>
      <d2p1:DiscountRate>8.1</d2p1:DiscountRate>
      <d2p1:DiscountedTotalPrice>19.1</d2p1:DiscountedTotalPrice>
      <d2p1:DiscountedUnitPrice>18.1</d2p1:DiscountedUnitPrice>
      <d2p1:FifthDiscountAmount>17.1</d2p1:FifthDiscountAmount>
      <d2p1:FifthDiscountRate>12.1</d2p1:FifthDiscountRate>
      <d2p1:FourthDiscountAmount>16.1</d2p1:FourthDiscountAmount>
      <d2p1:FourthDiscountRate>11.1</d2p1:FourthDiscountRate>
      <d2p1:InvoiceID>3fc1fc63-1ab4-418f-ac04-0128739e7f8d</d2p1:InvoiceID>
      <d2p1:IsDiscountPercentage>true</d2p1:IsDiscountPercentage>
      <d2p1:IsOTVPercentage>true</d2p1:IsOTVPercentage>
      <d2p1:IsStockTracking>true</d2p1:IsStockTracking>
      <d2p1:KDV>KDV0</d2p1:KDV>
      <d2p1:KDVAmount>22.1</d2p1:KDVAmount>
      <d2p1:LeanAmount>6.1</d2p1:LeanAmount>
      <d2p1:NoKDVReasonID>26d9e241-28ed-4099-826c-848c682a0c48</d2p1:NoKDVReasonID>
      <d2p1:OIV>23.1</d2p1:OIV>
      <d2p1:OIVAmount>24.1</d2p1:OIVAmount>
      <d2p1:OIVCode>sample string 25</d2p1:OIVCode>
      <d2p1:OTV>26.1</d2p1:OTV>
      <d2p1:OTVAmount>27.1</d2p1:OTVAmount>
      <d2p1:OTVCode>sample string 28</d2p1:OTVCode>
      <d2p1:ProductID>d19180fb-8883-44e8-8a10-a0bc8c635cd2</d2p1:ProductID>
      <d2p1:ProductName>sample string 31</d2p1:ProductName>
      <d2p1:ProductType>Product</d2p1:ProductType>
      <d2p1:Quantity>4.1</d2p1:Quantity>
      <d2p1:SecondDiscountAmount>14.1</d2p1:SecondDiscountAmount>
      <d2p1:SecondDiscountRate>9.1</d2p1:SecondDiscountRate>
      <d2p1:TheWithholdingAmount>30.1</d2p1:TheWithholdingAmount>
      <d2p1:TheWithholdingID>e6b00961-76f4-4632-b28c-314f745e09ac</d2p1:TheWithholdingID>
      <d2p1:ThirdDiscountAmount>15.1</d2p1:ThirdDiscountAmount>
      <d2p1:ThirdDiscountRate>10.1</d2p1:ThirdDiscountRate>
      <d2p1:Title>sample string 1</d2p1:Title>
      <d2p1:ToBeMappedProductId>9fc9c3ec-49ef-41fe-ba40-1d01d25a6efa</d2p1:ToBeMappedProductId>
      <d2p1:TotalAmount>21.1</d2p1:TotalAmount>
      <d2p1:Unit>
        <d2p1:CompanyID>23fa7048-1d86-4fc2-9c72-1eefe8b89cb4</d2p1:CompanyID>
        <d2p1:ID>c593854a-e5a0-4821-8f80-a3e995f6347e</d2p1:ID>
        <d2p1:Code>sample string 2</d2p1:Code>
        <d2p1:Name>sample string 1</d2p1:Name>
      </d2p1:Unit>
      <d2p1:WarehouseID>55835d4f-0f0f-4b9e-968f-97a03d8506ee</d2p1:WarehouseID>
    </d2p1:ImportInvoiceProductAddDto>
  </InvoiceProducts>
</EInvoiceImportVM>

application/x-www-form-urlencoded

Sample:

Sample not available.

text/html

Sample:
{"invoiceID":"34a55926-0fbf-4790-bb50-7c387c2572de","invoiceProducts":[{"title":"sample string 1","code":"sample string 2","currencyRate":3.1,"quantity":4.1,"amount":5.1,"leanAmount":6.1,"cost":7.1,"discountRate":8.1,"secondDiscountRate":9.1,"thirdDiscountRate":10.1,"fourthDiscountRate":11.1,"fifthDiscountRate":12.1,"discountAmount":13.1,"secondDiscountAmount":14.1,"thirdDiscountAmount":15.1,"fourthDiscountAmount":16.1,"fifthDiscountAmount":17.1,"discountedUnitPrice":18.1,"discountedTotalPrice":19.1,"isDiscountPercentage":true,"totalAmount":21.1,"kdv":0,"kdvAmount":22.1,"oiv":23.1,"oivAmount":24.1,"oivCode":"sample string 25","otv":26.1,"otvAmount":27.1,"otvCode":"sample string 28","isOTVPercentage":true,"theWithholdingID":"e6b00961-76f4-4632-b28c-314f745e09ac","theWithholdingAmount":30.1,"noKDVReasonID":"26d9e241-28ed-4099-826c-848c682a0c48","unit":{"name":"sample string 1","code":"sample string 2","id":"c593854a-e5a0-4821-8f80-a3e995f6347e","companyID":"23fa7048-1d86-4fc2-9c72-1eefe8b89cb4"},"warehouseID":"55835d4f-0f0f-4b9e-968f-97a03d8506ee","currencyID":"68f7bc46-9c7f-4f41-8f6f-f98ed3f0905e","productID":"d19180fb-8883-44e8-8a10-a0bc8c635cd2","productName":"sample string 31","productType":1,"isStockTracking":true,"description":"sample string 33","invoiceID":"3fc1fc63-1ab4-418f-ac04-0128739e7f8d","companyID":"586e86bb-edd5-40cd-9a17-384f85c70353","toBeMappedProductId":"9fc9c3ec-49ef-41fe-ba40-1d01d25a6efa"},{"title":"sample string 1","code":"sample string 2","currencyRate":3.1,"quantity":4.1,"amount":5.1,"leanAmount":6.1,"cost":7.1,"discountRate":8.1,"secondDiscountRate":9.1,"thirdDiscountRate":10.1,"fourthDiscountRate":11.1,"fifthDiscountRate":12.1,"discountAmount":13.1,"secondDiscountAmount":14.1,"thirdDiscountAmount":15.1,"fourthDiscountAmount":16.1,"fifthDiscountAmount":17.1,"discountedUnitPrice":18.1,"discountedTotalPrice":19.1,"isDiscountPercentage":true,"totalAmount":21.1,"kdv":0,"kdvAmount":22.1,"oiv":23.1,"oivAmount":24.1,"oivCode":"sample string 25","otv":26.1,"otvAmount":27.1,"otvCode":"sample string 28","isOTVPercentage":true,"theWithholdingID":"e6b00961-76f4-4632-b28c-314f745e09ac","theWithholdingAmount":30.1,"noKDVReasonID":"26d9e241-28ed-4099-826c-848c682a0c48","unit":{"name":"sample string 1","code":"sample string 2","id":"c593854a-e5a0-4821-8f80-a3e995f6347e","companyID":"23fa7048-1d86-4fc2-9c72-1eefe8b89cb4"},"warehouseID":"55835d4f-0f0f-4b9e-968f-97a03d8506ee","currencyID":"68f7bc46-9c7f-4f41-8f6f-f98ed3f0905e","productID":"d19180fb-8883-44e8-8a10-a0bc8c635cd2","productName":"sample string 31","productType":1,"isStockTracking":true,"description":"sample string 33","invoiceID":"3fc1fc63-1ab4-418f-ac04-0128739e7f8d","companyID":"586e86bb-edd5-40cd-9a17-384f85c70353","toBeMappedProductId":"9fc9c3ec-49ef-41fe-ba40-1d01d25a6efa"}]}

Response Information

Resource Description

IHttpActionResult

None.

Response Formats

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

Sample:

Sample not available.