GET Integrations/CSV/V1/GetCreditNotes

Returns the credit notes 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 datetime

Start time range for the export

None.

EndDate datetime

End time range for the export

None.

StockLocationID integer

Stock Location ID filter

None.

SupplierCode string

Supplier Code filter

None.

SupplierID integer

Supplier ID filter

None.

Body Parameters

CSVExportRequestCommand
Name Type Description Additional information
SiteIDs Collection of integer

List of Site IDs to get export data for

None.

StartDate datetime

Start time range for the export

None.

EndDate datetime

End time range for the export

None.

StockLocationID integer

Stock Location ID filter

None.

SupplierCode string

Supplier Code filter

None.

SupplierID integer

Supplier ID filter

None.

Request Formats

application/json, text/json

Sample:
{
  "SiteIDs": [
    1,
    2
  ],
  "StartDate": "2026-09-09T22:13:01.5624413",
  "EndDate": "2026-09-09T22:13:01.5624413",
  "StockLocationID": 3,
  "SupplierCode": "sample string 4",
  "SupplierID": 5
}

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>2026-09-09T22:13:01.5624413</EndDate>
  <SiteIDs xmlns:d2p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
    <d2p1:int>1</d2p1:int>
    <d2p1:int>2</d2p1:int>
  </SiteIDs>
  <StartDate>2026-09-09T22:13:01.5624413</StartDate>
  <StockLocationID>3</StockLocationID>
  <SupplierCode>sample string 4</SupplierCode>
  <SupplierID>5</SupplierID>
</CSVExportRequestCommand>

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

Resource Description

Collection of CreditNoteExportLineDto
Name Type Description Additional information
Site string

None.

CreditNoteID integer

None.

Reference string

None.

CompanyCode string

None.

SupplierID integer

None.

SupplierCode string

None.

CreditDateUtc datetime

None.

CreditNoteLineID integer

None.

PurchaseOrderID integer

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.

VATCode string

None.

AcceptanceDateUtc datetime

None.

ApprovalDateUtc datetime

None.

CompleteDateUtc datetime

None.

LastModifiedUtc datetime

None.

LastModifiedBy string

None.

DeductStock boolean

None.

ProductTypeID integer

None.

ProductTypeName string

None.

ProductGroupID integer

None.

ProductGroupName string

None.

StockLocationID integer

None.

StockLocationName string

None.

Response Formats

application/json, text/json

Sample:
[
  {
    "Site": "sample string 1",
    "CreditNoteID": 2,
    "Reference": "sample string 3",
    "CompanyCode": "sample string 4",
    "SupplierID": 5,
    "SupplierCode": "sample string 6",
    "CreditDateUtc": "2026-09-09T22:13:01.5781124",
    "CreditNoteLineID": 7,
    "PurchaseOrderID": 1,
    "CurrencyCode": "sample string 8",
    "Description": "sample string 9",
    "AccountCode": "sample string 10",
    "CostCentreCode": "sample string 11",
    "Quantity": 12.0,
    "UnitNetCost": 13.0,
    "UnitVATAmount": 14.0,
    "VATCode": "sample string 15",
    "AcceptanceDateUtc": "2026-09-09T22:13:01.5781124",
    "ApprovalDateUtc": "2026-09-09T22:13:01.5781124",
    "CompleteDateUtc": "2026-09-09T22:13:01.5781124",
    "LastModifiedUtc": "2026-09-09T22:13:01.5781124",
    "LastModifiedBy": "sample string 16",
    "DeductStock": true,
    "ProductTypeID": 18,
    "ProductTypeName": "sample string 19",
    "ProductGroupID": 20,
    "ProductGroupName": "sample string 21",
    "StockLocationID": 22,
    "StockLocationName": "sample string 23"
  },
  {
    "Site": "sample string 1",
    "CreditNoteID": 2,
    "Reference": "sample string 3",
    "CompanyCode": "sample string 4",
    "SupplierID": 5,
    "SupplierCode": "sample string 6",
    "CreditDateUtc": "2026-09-09T22:13:01.5781124",
    "CreditNoteLineID": 7,
    "PurchaseOrderID": 1,
    "CurrencyCode": "sample string 8",
    "Description": "sample string 9",
    "AccountCode": "sample string 10",
    "CostCentreCode": "sample string 11",
    "Quantity": 12.0,
    "UnitNetCost": 13.0,
    "UnitVATAmount": 14.0,
    "VATCode": "sample string 15",
    "AcceptanceDateUtc": "2026-09-09T22:13:01.5781124",
    "ApprovalDateUtc": "2026-09-09T22:13:01.5781124",
    "CompleteDateUtc": "2026-09-09T22:13:01.5781124",
    "LastModifiedUtc": "2026-09-09T22:13:01.5781124",
    "LastModifiedBy": "sample string 16",
    "DeductStock": true,
    "ProductTypeID": 18,
    "ProductTypeName": "sample string 19",
    "ProductGroupID": 20,
    "ProductGroupName": "sample string 21",
    "StockLocationID": 22,
    "StockLocationName": "sample string 23"
  }
]

application/xml, text/xml

Sample:
<ArrayOfCreditNoteExportLineDto xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Tevalis.Integrations.Csv.Models.Dto">
  <CreditNoteExportLineDto>
    <AcceptanceDateUtc>2026-09-09T22:13:01.5781124</AcceptanceDateUtc>
    <AccountCode>sample string 10</AccountCode>
    <ApprovalDateUtc>2026-09-09T22:13:01.5781124</ApprovalDateUtc>
    <CompanyCode>sample string 4</CompanyCode>
    <CompleteDateUtc>2026-09-09T22:13:01.5781124</CompleteDateUtc>
    <CostCentreCode>sample string 11</CostCentreCode>
    <CreditDateUtc>2026-09-09T22:13:01.5781124</CreditDateUtc>
    <CreditNoteID>2</CreditNoteID>
    <CreditNoteLineID>7</CreditNoteLineID>
    <CurrencyCode>sample string 8</CurrencyCode>
    <DeductStock>true</DeductStock>
    <Description>sample string 9</Description>
    <LastModifiedBy>sample string 16</LastModifiedBy>
    <LastModifiedUtc>2026-09-09T22:13:01.5781124</LastModifiedUtc>
    <ProductGroupID>20</ProductGroupID>
    <ProductGroupName>sample string 21</ProductGroupName>
    <ProductTypeID>18</ProductTypeID>
    <ProductTypeName>sample string 19</ProductTypeName>
    <PurchaseOrderID>1</PurchaseOrderID>
    <Quantity>12</Quantity>
    <Reference>sample string 3</Reference>
    <Site>sample string 1</Site>
    <StockLocationID>22</StockLocationID>
    <StockLocationName>sample string 23</StockLocationName>
    <SupplierCode>sample string 6</SupplierCode>
    <SupplierID>5</SupplierID>
    <UnitNetCost>13</UnitNetCost>
    <UnitVATAmount>14</UnitVATAmount>
    <VATCode>sample string 15</VATCode>
  </CreditNoteExportLineDto>
  <CreditNoteExportLineDto>
    <AcceptanceDateUtc>2026-09-09T22:13:01.5781124</AcceptanceDateUtc>
    <AccountCode>sample string 10</AccountCode>
    <ApprovalDateUtc>2026-09-09T22:13:01.5781124</ApprovalDateUtc>
    <CompanyCode>sample string 4</CompanyCode>
    <CompleteDateUtc>2026-09-09T22:13:01.5781124</CompleteDateUtc>
    <CostCentreCode>sample string 11</CostCentreCode>
    <CreditDateUtc>2026-09-09T22:13:01.5781124</CreditDateUtc>
    <CreditNoteID>2</CreditNoteID>
    <CreditNoteLineID>7</CreditNoteLineID>
    <CurrencyCode>sample string 8</CurrencyCode>
    <DeductStock>true</DeductStock>
    <Description>sample string 9</Description>
    <LastModifiedBy>sample string 16</LastModifiedBy>
    <LastModifiedUtc>2026-09-09T22:13:01.5781124</LastModifiedUtc>
    <ProductGroupID>20</ProductGroupID>
    <ProductGroupName>sample string 21</ProductGroupName>
    <ProductTypeID>18</ProductTypeID>
    <ProductTypeName>sample string 19</ProductTypeName>
    <PurchaseOrderID>1</PurchaseOrderID>
    <Quantity>12</Quantity>
    <Reference>sample string 3</Reference>
    <Site>sample string 1</Site>
    <StockLocationID>22</StockLocationID>
    <StockLocationName>sample string 23</StockLocationName>
    <SupplierCode>sample string 6</SupplierCode>
    <SupplierID>5</SupplierID>
    <UnitNetCost>13</UnitNetCost>
    <UnitVATAmount>14</UnitVATAmount>
    <VATCode>sample string 15</VATCode>
  </CreditNoteExportLineDto>
</ArrayOfCreditNoteExportLineDto>