GET api/CentralProducts/GetArticlecodesBySupplier

Gets a set of article codes, grouped by supplier.

Request Information

URI Parameters

NameDescriptionTypeAdditional information
MultiplicatorProducts

If the list should only contain multiplicator products (default false)

boolean

None.

OnlyEmptyEan

Should only articles with no EAN code be returned? (optional)

boolean

None.

URI Example

api/CentralProducts/GetArticlecodesBySupplier?OnlyEmptyEan={OnlyEmptyEan}&MultiplicatorProducts={MultiplicatorProducts}

Body Parameters

None.

Response Information

Resource Description

A wrapper class with the article codes

Oresto.API.Models.GET.CentralProducts.ProductBySupplierArticleCodesData
NameDescriptionTypeAdditional information
Errors

Possible errors that were experienced when processing the request

Collection of string

None.

RequestInformation

Additional information about the request

Oresto.API.Models.Shared.RequestInformation

None.

SupplierArticleCodes

A set of article codes grouped per supplier

Dictionary of integer [key] and Collection of string [value]

None.

Response Formats

application/json, text/json

Sample:
{
  "SupplierArticleCodes": {
    "1": [
      "sample string 1",
      "sample string 2"
    ],
    "2": [
      "sample string 1",
      "sample string 2"
    ]
  },
  "RequestInformation": {
    "RequestDuration": 1,
    "WholesalerId": 2,
    "UserId": 3
  },
  "Errors": [
    "sample string 1",
    "sample string 2"
  ]
}

application/xml, text/xml

Sample:
<ProductBySupplierArticleCodesData xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Oresto.API.Models.GET.CentralProducts">
  <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>
  <SupplierArticleCodes xmlns:d2p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
    <d2p1:KeyValueOfintArrayOfstringty7Ep6D1>
      <d2p1:Key>1</d2p1:Key>
      <d2p1:Value>
        <d2p1:string>sample string 1</d2p1:string>
        <d2p1:string>sample string 2</d2p1:string>
      </d2p1:Value>
    </d2p1:KeyValueOfintArrayOfstringty7Ep6D1>
    <d2p1:KeyValueOfintArrayOfstringty7Ep6D1>
      <d2p1:Key>2</d2p1:Key>
      <d2p1:Value>
        <d2p1:string>sample string 1</d2p1:string>
        <d2p1:string>sample string 2</d2p1:string>
      </d2p1:Value>
    </d2p1:KeyValueOfintArrayOfstringty7Ep6D1>
  </SupplierArticleCodes>
</ProductBySupplierArticleCodesData>