GET Integrations/CSV/V1/GetPurchaseInvoices

Returns the purchase invoices export data

Request Information

URI Parameters

Name Type Description Additional information
SiteIDs Collection of integer

List of Site IDs to get export data for

None.

StartDate date

Start time range for the export

None.

EndDate date

End time range for the export

None.

Body Parameters

CSVExportRequestCommand
Name Type Description Additional information
SiteIDs Collection of integer

List of Site IDs to get export data for

None.

StartDate date

Start time range for the export

None.

EndDate date

End time range for the export

None.

Request Formats

application/json, text/json

Sample:
{
  "SiteIDs": [
    1,
    2
  ],
  "StartDate": "2024-11-21T06:23:24.2587158+00:00",
  "EndDate": "2024-11-21T06:23:24.2587158+00:00"
}

application/xml, text/xml

Sample:
<CSVExportRequestCommand xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Tevalis.API.App.Models">
  <EndDate>2024-11-21T06:23:24.2587158+00:00</EndDate>
  <SiteIDs xmlns:d2p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
    <d2p1:int>1</d2p1:int>
    <d2p1:int>2</d2p1:int>
  </SiteIDs>
  <StartDate>2024-11-21T06:23:24.2587158+00:00</StartDate>
</CSVExportRequestCommand>

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

Resource Description

Collection of PurchaseInvoiceExportLineDto
Name Type Description Additional information
Site string

None.

PurchaseOrderID integer

None.

InvoiceNumber string

None.

CompanyCode string

None.

SupplierCode string

None.

DeliveryDateUtc date

None.

CurrencyCode string

None.

Description string

None.

AccountCode string

None.

CostCentreCode string

None.

Quantity decimal number

None.

UnitNetCost decimal number

None.

UnitVATAmount decimal number

None.

HandlingFeeNet decimal number

None.

HandlingFeeTax decimal number

None.

VATCode string

None.

Response Formats

application/json, text/json

Sample:
[
  {
    "Site": "sample string 1",
    "PurchaseOrderID": 2,
    "InvoiceNumber": "sample string 3",
    "CompanyCode": "sample string 4",
    "SupplierCode": "sample string 5",
    "DeliveryDateUtc": "2024-11-21T06:23:24.2744079+00:00",
    "CurrencyCode": "sample string 7",
    "Description": "sample string 8",
    "AccountCode": "sample string 9",
    "CostCentreCode": "sample string 10",
    "Quantity": 11.0,
    "UnitNetCost": 12.0,
    "UnitVATAmount": 13.0,
    "HandlingFeeNet": 14.0,
    "HandlingFeeTax": 15.0,
    "VATCode": "sample string 16"
  },
  {
    "Site": "sample string 1",
    "PurchaseOrderID": 2,
    "InvoiceNumber": "sample string 3",
    "CompanyCode": "sample string 4",
    "SupplierCode": "sample string 5",
    "DeliveryDateUtc": "2024-11-21T06:23:24.2744079+00:00",
    "CurrencyCode": "sample string 7",
    "Description": "sample string 8",
    "AccountCode": "sample string 9",
    "CostCentreCode": "sample string 10",
    "Quantity": 11.0,
    "UnitNetCost": 12.0,
    "UnitVATAmount": 13.0,
    "HandlingFeeNet": 14.0,
    "HandlingFeeTax": 15.0,
    "VATCode": "sample string 16"
  }
]

application/xml, text/xml

Sample:
<ArrayOfPurchaseInvoiceExportLineDto xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Tevalis.Integrations.Csv.Models.Dto">
  <PurchaseInvoiceExportLineDto>
    <AccountCode>sample string 9</AccountCode>
    <CompanyCode>sample string 4</CompanyCode>
    <CostCentreCode>sample string 10</CostCentreCode>
    <CurrencyCode>sample string 7</CurrencyCode>
    <DeliveryDateUtc>2024-11-21T06:23:24.2744079+00:00</DeliveryDateUtc>
    <Description>sample string 8</Description>
    <HandlingFeeNet>14</HandlingFeeNet>
    <HandlingFeeTax>15</HandlingFeeTax>
    <InvoiceNumber>sample string 3</InvoiceNumber>
    <PurchaseOrderID>2</PurchaseOrderID>
    <Quantity>11</Quantity>
    <Site>sample string 1</Site>
    <SupplierCode>sample string 5</SupplierCode>
    <UnitNetCost>12</UnitNetCost>
    <UnitVATAmount>13</UnitVATAmount>
    <VATCode>sample string 16</VATCode>
  </PurchaseInvoiceExportLineDto>
  <PurchaseInvoiceExportLineDto>
    <AccountCode>sample string 9</AccountCode>
    <CompanyCode>sample string 4</CompanyCode>
    <CostCentreCode>sample string 10</CostCentreCode>
    <CurrencyCode>sample string 7</CurrencyCode>
    <DeliveryDateUtc>2024-11-21T06:23:24.2744079+00:00</DeliveryDateUtc>
    <Description>sample string 8</Description>
    <HandlingFeeNet>14</HandlingFeeNet>
    <HandlingFeeTax>15</HandlingFeeTax>
    <InvoiceNumber>sample string 3</InvoiceNumber>
    <PurchaseOrderID>2</PurchaseOrderID>
    <Quantity>11</Quantity>
    <Site>sample string 1</Site>
    <SupplierCode>sample string 5</SupplierCode>
    <UnitNetCost>12</UnitNetCost>
    <UnitVATAmount>13</UnitVATAmount>
    <VATCode>sample string 16</VATCode>
  </PurchaseInvoiceExportLineDto>
</ArrayOfPurchaseInvoiceExportLineDto>