GET api/CentralProducts/Nested/GetBySupplier
Gets a single nested product managed by oresto by use of the supplier code
Request Information
URI Parameters
| Name | Description | Type | Additional 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/CentralProducts/Nested/GetBySupplier?Id={Id}&ArticleCode={ArticleCode}&IsPackageProduct={IsPackageProduct}
Body Parameters
None.
Response Information
Resource Description
A wrapper class with the product
Oresto.API.Models.GET.CentralProducts.ProductNestedBySupplierData| Name | Description | Type | Additional information |
|---|---|---|---|
| Errors |
Possible errors that were experienced when processing the request |
Collection of string |
None. |
| Product |
The product information |
Oresto.API.Models.GET.CentralProducts.ProductNested |
None. |
| RequestInformation |
Additional information about the request |
Oresto.API.Models.Shared.RequestInformation |
None. |
Response Formats
application/json, text/json
Sample:
{
"Product": null,
"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.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>
<Product i:nil="true" />
</ProductNestedBySupplierData>