POST Products/GetSuppliersForProduct
Verkrijg de leveranciers van een product.
Request Information
URI Parameters
None.
Body Parameters
integerRequest Formats
application/json, text/json
Sample:
1
application/xml, text/xml
Sample:
<int xmlns="http://schemas.microsoft.com/2003/10/Serialization/">1</int>
Response Information
Resource Description
Logic4ResponseListOfProductSupplierName | Description | Type | Additional information |
---|---|---|---|
Records | Collection of ProductSupplier |
None. |
|
RecordsCounter | integer |
None. |
|
ValidationMessages |
Eventuele foutmeldingen |
Collection of string |
None. |
Response Formats
application/json, text/json
Sample:
{ "Records": [ { "ProductId": 1, "CreditorName": "sample string 2", "CreditorProductCode": "sample string 3", "IsActive": true, "CreditorId": 5, "CreditorBuyPrices": [ { "Key": 1, "Value": 2.0 }, { "Key": 1, "Value": 2.0 } ] }, { "ProductId": 1, "CreditorName": "sample string 2", "CreditorProductCode": "sample string 3", "IsActive": true, "CreditorId": 5, "CreditorBuyPrices": [ { "Key": 1, "Value": 2.0 }, { "Key": 1, "Value": 2.0 } ] } ], "RecordsCounter": 2, "ValidationMessages": [ "sample string 1", "sample string 2" ] }
application/xml, text/xml
Sample:
<Logic4ResponseListOfProductSupplierLnN1pw8Y xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Webware.Logic4.Classes.ResponseModels"> <ValidationMessages xmlns:d2p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays"> <d2p1:string>sample string 1</d2p1:string> <d2p1:string>sample string 2</d2p1:string> </ValidationMessages> <Records xmlns:d2p1="http://schemas.datacontract.org/2004/07/Webware.Logic4.Classes.Models"> <d2p1:ProductSupplier> <d2p1:CreditorBuyPrices xmlns:d4p1="http://schemas.datacontract.org/2004/07/System.Collections.Generic"> <d4p1:KeyValuePairOfintdecimal> <d4p1:key>1</d4p1:key> <d4p1:value>2</d4p1:value> </d4p1:KeyValuePairOfintdecimal> <d4p1:KeyValuePairOfintdecimal> <d4p1:key>1</d4p1:key> <d4p1:value>2</d4p1:value> </d4p1:KeyValuePairOfintdecimal> </d2p1:CreditorBuyPrices> <d2p1:CreditorId>5</d2p1:CreditorId> <d2p1:CreditorName>sample string 2</d2p1:CreditorName> <d2p1:CreditorProductCode>sample string 3</d2p1:CreditorProductCode> <d2p1:IsActive>true</d2p1:IsActive> <d2p1:ProductId>1</d2p1:ProductId> </d2p1:ProductSupplier> <d2p1:ProductSupplier> <d2p1:CreditorBuyPrices xmlns:d4p1="http://schemas.datacontract.org/2004/07/System.Collections.Generic"> <d4p1:KeyValuePairOfintdecimal> <d4p1:key>1</d4p1:key> <d4p1:value>2</d4p1:value> </d4p1:KeyValuePairOfintdecimal> <d4p1:KeyValuePairOfintdecimal> <d4p1:key>1</d4p1:key> <d4p1:value>2</d4p1:value> </d4p1:KeyValuePairOfintdecimal> </d2p1:CreditorBuyPrices> <d2p1:CreditorId>5</d2p1:CreditorId> <d2p1:CreditorName>sample string 2</d2p1:CreditorName> <d2p1:CreditorProductCode>sample string 3</d2p1:CreditorProductCode> <d2p1:IsActive>true</d2p1:IsActive> <d2p1:ProductId>1</d2p1:ProductId> </d2p1:ProductSupplier> </Records> </Logic4ResponseListOfProductSupplierLnN1pw8Y>