Skip to main content
Version: 2025.003.000 (beta)

WebApi - LI

This is Swagger Docs for PriceList WebApi Teamsystemn Enterprise Cloud, more detail at https://swagger.io.

This C# SDK is automatically generated by the Swagger Codegen project:

  • API version: v2025.1000
  • SDK version: 1.0.0
  • Build package: io.swagger.codegen.v3.generators.dotnet.CSharpClientCodegen For more information, please visit https://mysupport.teamsystem.com/

Frameworks supported

  • .NET 4.7.1 or later

Dependencies

The DLLs included in the package may not be the latest version. We recommend using NuGet to obtain the latest version of the packages:

Install-Package RestSharp
Install-Package Newtonsoft.Json
Install-Package JsonSubTypes

NOTE: RestSharp versions greater than 105.1.0 have a bug which causes file uploads to fail. See RestSharp#742

Installation

Run the following commands to generate the DLL

cd src/IO.Swagger
dotnet restore
dotnet build

Then include the DLL (under the bin folder) in the C# project, and use the namespaces:

using Api;
using Client;
using Model;

Packaging

A .nuspec is included with the project. You can follow the Nuget quickstart to create and publish packages.

This .nuspec uses placeholders from the .csproj, so build the .csproj directly:

nuget pack -Build -OutputDirectory out csproj

Then, publish to a local feed or other host and consume the new package via Nuget as usual.

Getting Started

using System;
using System.Diagnostics;
using Api;
using Client;
using Model;

namespace Example
{
public class Example
{
public void main()
{
// Configure HTTP basic authorization: Basic
Configuration.Default.Username = "YOUR_USERNAME";
Configuration.Default.Password = "YOUR_PASSWORD";

var apiInstance = new IEImportLIApi();
var body = new ImportParameterDTO(); // ImportParameterDTO | Import price list parameters
var environment = environment_example; // string |
var authorizationScope = authorizationScope_example; // string | The environment where this operation will be executed. This must match with the environment in the url.
var company = company_example; // string | Company code (optional)
var user = user_example; // string | Application user (mandatory if the WebApi user does not have any mapped application user) (optional)
var acceptLanguage = acceptLanguage_example; // string | Example for multilanguage (optional) (default to it-IT)

try
{
// Import price lists based on the required parameters
ImportExportResultDTO result = apiInstance.ApiV1EnvironmentLIIEImportLIPricelistPost(body, environment, authorizationScope, company, user, acceptLanguage);
Debug.WriteLine(result);
}
catch (Exception e)
{
Debug.Print("Exception when calling IEImportLIApi.ApiV1EnvironmentLIIEImportLIPricelistPost: " + e.Message );
}
}
}
}

Documentation for API Endpoints

All URIs are relative to https://apicsdemo.teamsystem.io

ClassMethodHTTP requestDescription
IEImportLIApiApiV1EnvironmentLIIEImportLIPricelistPostPOST /api/v1/production/LI/IEImportLI/pricelistImport price lists based on the required parameters
PriceParametricLIApiApiV1EnvironmentLIPriceParametricLISearchPostPOST /api/v1/production/LI/PriceParametricLI/searchSearch prices based on the required parameters
PricePriorityLIApiApiV1EnvironmentLIPricePriorityLISearchPostPOST /api/v1/production/LI/PricePriorityLI/searchSearch prices based on the required parameters

Documentation for Models

Documentation for Authorization

Basic

  • Type: HTTP basic authentication

Bearer