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": "90ee79a2-9faa-4faf-b08c-24f720bdb125",
  "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": "8683156d-7df0-4b63-a00d-c36d999a250c",
      "theWithholdingAmount": 30.1,
      "noKDVReasonID": "99500b59-5561-4597-9f4c-afa12dfe0d7f",
      "unit": {
        "name": "sample string 1",
        "code": "sample string 2",
        "id": "d84b925c-97ae-4c57-b8f0-e5a9b624edb4",
        "companyID": "0940d1e0-9159-4d8b-946c-39329b624a5d"
      },
      "warehouseID": "805cc0c0-c0f3-4e1c-8c8a-1566e44a2bf9",
      "currencyID": "c0bc8ad3-7731-4529-b333-f6ef04796fae",
      "productID": "03688718-ea95-4928-913b-32ea36b297ae",
      "productName": "sample string 31",
      "productType": 1,
      "isStockTracking": true,
      "description": "sample string 33",
      "invoiceID": "4e51d411-0ed4-48c3-9f6e-c3d17c175f9d",
      "companyID": "814b9ead-762b-4c63-8fbc-6ea666e5f3a5",
      "toBeMappedProductId": "c6f0ad1d-ee4b-4bca-91ee-f12057c33a0a"
    },
    {
      "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": "8683156d-7df0-4b63-a00d-c36d999a250c",
      "theWithholdingAmount": 30.1,
      "noKDVReasonID": "99500b59-5561-4597-9f4c-afa12dfe0d7f",
      "unit": {
        "name": "sample string 1",
        "code": "sample string 2",
        "id": "d84b925c-97ae-4c57-b8f0-e5a9b624edb4",
        "companyID": "0940d1e0-9159-4d8b-946c-39329b624a5d"
      },
      "warehouseID": "805cc0c0-c0f3-4e1c-8c8a-1566e44a2bf9",
      "currencyID": "c0bc8ad3-7731-4529-b333-f6ef04796fae",
      "productID": "03688718-ea95-4928-913b-32ea36b297ae",
      "productName": "sample string 31",
      "productType": 1,
      "isStockTracking": true,
      "description": "sample string 33",
      "invoiceID": "4e51d411-0ed4-48c3-9f6e-c3d17c175f9d",
      "companyID": "814b9ead-762b-4c63-8fbc-6ea666e5f3a5",
      "toBeMappedProductId": "c6f0ad1d-ee4b-4bca-91ee-f12057c33a0a"
    }
  ]
}

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>90ee79a2-9faa-4faf-b08c-24f720bdb125</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>814b9ead-762b-4c63-8fbc-6ea666e5f3a5</d2p1:CompanyID>
      <d2p1:Cost>7.1</d2p1:Cost>
      <d2p1:CurrencyID>c0bc8ad3-7731-4529-b333-f6ef04796fae</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>4e51d411-0ed4-48c3-9f6e-c3d17c175f9d</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>99500b59-5561-4597-9f4c-afa12dfe0d7f</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>03688718-ea95-4928-913b-32ea36b297ae</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>8683156d-7df0-4b63-a00d-c36d999a250c</d2p1:TheWithholdingID>
      <d2p1:ThirdDiscountAmount>15.1</d2p1:ThirdDiscountAmount>
      <d2p1:ThirdDiscountRate>10.1</d2p1:ThirdDiscountRate>
      <d2p1:Title>sample string 1</d2p1:Title>
      <d2p1:ToBeMappedProductId>c6f0ad1d-ee4b-4bca-91ee-f12057c33a0a</d2p1:ToBeMappedProductId>
      <d2p1:TotalAmount>21.1</d2p1:TotalAmount>
      <d2p1:Unit>
        <d2p1:CompanyID>0940d1e0-9159-4d8b-946c-39329b624a5d</d2p1:CompanyID>
        <d2p1:ID>d84b925c-97ae-4c57-b8f0-e5a9b624edb4</d2p1:ID>
        <d2p1:Code>sample string 2</d2p1:Code>
        <d2p1:Name>sample string 1</d2p1:Name>
      </d2p1:Unit>
      <d2p1:WarehouseID>805cc0c0-c0f3-4e1c-8c8a-1566e44a2bf9</d2p1:WarehouseID>
    </d2p1:ImportInvoiceProductAddDto>
    <d2p1:ImportInvoiceProductAddDto>
      <d2p1:Amount>5.1</d2p1:Amount>
      <d2p1:Code>sample string 2</d2p1:Code>
      <d2p1:CompanyID>814b9ead-762b-4c63-8fbc-6ea666e5f3a5</d2p1:CompanyID>
      <d2p1:Cost>7.1</d2p1:Cost>
      <d2p1:CurrencyID>c0bc8ad3-7731-4529-b333-f6ef04796fae</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>4e51d411-0ed4-48c3-9f6e-c3d17c175f9d</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>99500b59-5561-4597-9f4c-afa12dfe0d7f</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>03688718-ea95-4928-913b-32ea36b297ae</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>8683156d-7df0-4b63-a00d-c36d999a250c</d2p1:TheWithholdingID>
      <d2p1:ThirdDiscountAmount>15.1</d2p1:ThirdDiscountAmount>
      <d2p1:ThirdDiscountRate>10.1</d2p1:ThirdDiscountRate>
      <d2p1:Title>sample string 1</d2p1:Title>
      <d2p1:ToBeMappedProductId>c6f0ad1d-ee4b-4bca-91ee-f12057c33a0a</d2p1:ToBeMappedProductId>
      <d2p1:TotalAmount>21.1</d2p1:TotalAmount>
      <d2p1:Unit>
        <d2p1:CompanyID>0940d1e0-9159-4d8b-946c-39329b624a5d</d2p1:CompanyID>
        <d2p1:ID>d84b925c-97ae-4c57-b8f0-e5a9b624edb4</d2p1:ID>
        <d2p1:Code>sample string 2</d2p1:Code>
        <d2p1:Name>sample string 1</d2p1:Name>
      </d2p1:Unit>
      <d2p1:WarehouseID>805cc0c0-c0f3-4e1c-8c8a-1566e44a2bf9</d2p1:WarehouseID>
    </d2p1:ImportInvoiceProductAddDto>
  </InvoiceProducts>
</EInvoiceImportVM>

application/x-www-form-urlencoded

Sample:

Sample not available.

text/html

Sample:
{"invoiceID":"90ee79a2-9faa-4faf-b08c-24f720bdb125","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":"8683156d-7df0-4b63-a00d-c36d999a250c","theWithholdingAmount":30.1,"noKDVReasonID":"99500b59-5561-4597-9f4c-afa12dfe0d7f","unit":{"name":"sample string 1","code":"sample string 2","id":"d84b925c-97ae-4c57-b8f0-e5a9b624edb4","companyID":"0940d1e0-9159-4d8b-946c-39329b624a5d"},"warehouseID":"805cc0c0-c0f3-4e1c-8c8a-1566e44a2bf9","currencyID":"c0bc8ad3-7731-4529-b333-f6ef04796fae","productID":"03688718-ea95-4928-913b-32ea36b297ae","productName":"sample string 31","productType":1,"isStockTracking":true,"description":"sample string 33","invoiceID":"4e51d411-0ed4-48c3-9f6e-c3d17c175f9d","companyID":"814b9ead-762b-4c63-8fbc-6ea666e5f3a5","toBeMappedProductId":"c6f0ad1d-ee4b-4bca-91ee-f12057c33a0a"},{"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":"8683156d-7df0-4b63-a00d-c36d999a250c","theWithholdingAmount":30.1,"noKDVReasonID":"99500b59-5561-4597-9f4c-afa12dfe0d7f","unit":{"name":"sample string 1","code":"sample string 2","id":"d84b925c-97ae-4c57-b8f0-e5a9b624edb4","companyID":"0940d1e0-9159-4d8b-946c-39329b624a5d"},"warehouseID":"805cc0c0-c0f3-4e1c-8c8a-1566e44a2bf9","currencyID":"c0bc8ad3-7731-4529-b333-f6ef04796fae","productID":"03688718-ea95-4928-913b-32ea36b297ae","productName":"sample string 31","productType":1,"isStockTracking":true,"description":"sample string 33","invoiceID":"4e51d411-0ed4-48c3-9f6e-c3d17c175f9d","companyID":"814b9ead-762b-4c63-8fbc-6ea666e5f3a5","toBeMappedProductId":"c6f0ad1d-ee4b-4bca-91ee-f12057c33a0a"}]}

Response Information

Resource Description

IHttpActionResult

None.

Response Formats

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

Sample:

Sample not available.