GET api/Products/Nested/GetBySupplier

Gets a list of nested products (unique with multiple salestypes) for the wholesaler by use of the supplier code

Request Information

URI Parameters

NameDescriptionTypeAdditional information
ArticleCode

Supplier article code

string

Required

Max length: 50

Id

The ID of the supplier

integer

Required

IsPackageProduct

Is the article code related to a package product?

boolean

Required

URI Example

api/Products/Nested/GetBySupplier?Id={Id}&ArticleCode={ArticleCode}&IsPackageProduct={IsPackageProduct}

Body Parameters

None.

Response Information

Resource Description

A wrapper class with the productlist

Oresto.API.Models.GET.Products.ProductNestedBySupplierData
NameDescriptionTypeAdditional information
Errors

Possible errors that were experienced when processing the request

Collection of string

None.

Products

A list of nested products

Collection of Oresto.API.Models.GET.Products.ProductNested

None.

RequestInformation

Additional information about the request

Oresto.API.Models.Shared.RequestInformation

None.

Response Formats

application/json, text/json

Sample:
{
  "Products": [
    null,
    {
      "Id": 1,
      "AmountOfUnitProduct": 1,
      "EanCode": "sample string 2",
      "TotalContent": 1.0,
      "VatPercentage": 1,
      "IsPackageProduct": true,
      "WholesalerArticleNumber": "sample string 4",
      "PackageProduct": null,
      "ContentType": null,
      "SalesPriceList": null,
      "SalesPriceListPromo": null,
      "PromoValidFrom": null,
      "PromoValidFromUtc": null,
      "PromoValidUntil": null,
      "PromoValidUntilUtc": null,
      "OnOrder": false,
      "UnitSalesPrice": null,
      "Brand": null,
      "Producer": null,
      "StorageCondition": null,
      "Suppliers": [],
      "Localizations": [],
      "WholesalerProductLocalizations": [],
      "Categories": [],
      "LastModified": "0001-01-01T00:00:00",
      "LastModifiedUtc": "0001-01-01T00:00:00"
    }
  ],
  "RequestInformation": {
    "RequestDuration": 1,
    "WholesalerId": 2,
    "UserId": 3
  },
  "Errors": [
    "sample string 1",
    "sample string 2"
  ]
}

application/xml, text/xml

Sample:
<ProductNestedBySupplierData xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Oresto.API.Models.GET.Products">
  <Errors xmlns:d2p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays" xmlns="http://schemas.datacontract.org/2004/07/Oresto.API.Models.Shared">
    <d2p1:string>sample string 1</d2p1:string>
    <d2p1:string>sample string 2</d2p1:string>
  </Errors>
  <RequestInformation xmlns="http://schemas.datacontract.org/2004/07/Oresto.API.Models.Shared">
    <RequestDuration>1</RequestDuration>
    <UserId>3</UserId>
    <WholesalerId>2</WholesalerId>
  </RequestInformation>
  <Products>
    <ProductNested i:nil="true" />
    <ProductNested>
      <AmountOfUnitProduct>1</AmountOfUnitProduct>
      <Brand i:nil="true" />
      <Categories />
      <ContentType i:nil="true" />
      <EanCode>sample string 2</EanCode>
      <Id>1</Id>
      <IsPackageProduct>true</IsPackageProduct>
      <LastModified>0001-01-01T00:00:00</LastModified>
      <LastModifiedUtc>0001-01-01T00:00:00</LastModifiedUtc>
      <Localizations />
      <OnOrder>false</OnOrder>
      <PackageProduct i:nil="true" />
      <Producer i:nil="true" />
      <PromoValidFrom i:nil="true" />
      <PromoValidFromUtc i:nil="true" />
      <PromoValidUntil i:nil="true" />
      <PromoValidUntilUtc i:nil="true" />
      <SalesPriceList i:nil="true" />
      <SalesPriceListPromo i:nil="true" />
      <StorageCondition i:nil="true" />
      <Suppliers />
      <TotalContent>1</TotalContent>
      <UnitSalesPrice i:nil="true" />
      <VatPercentage>1</VatPercentage>
      <WholesalerArticleNumber>sample string 4</WholesalerArticleNumber>
      <WholesalerProductLocalizations />
    </ProductNested>
  </Products>
</ProductNestedBySupplierData>